From: Yu Watanabe Date: Wed, 1 Apr 2026 19:20:59 +0000 (+0900) Subject: dhcp-packet: drop unused dhcp_packet_verify_headers() X-Git-Tag: v261-rc1~136^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4095391bd618a343364e0537f3057a3daaf8556a;p=thirdparty%2Fsystemd.git dhcp-packet: drop unused dhcp_packet_verify_headers() --- diff --git a/src/libsystemd-network/dhcp-packet.c b/src/libsystemd-network/dhcp-packet.c index 27b09a25bbb..3186d93b7ac 100644 --- a/src/libsystemd-network/dhcp-packet.c +++ b/src/libsystemd-network/dhcp-packet.c @@ -115,7 +115,3 @@ int dhcp_packet_append_ip_headers( packet->udp = udp; return 0; } - -int dhcp_packet_verify_headers(DHCPPacket *packet, size_t len, bool checksum, uint16_t port) { - return udp_packet_verify(&IOVEC_MAKE(packet, len), port, checksum, /* ret_payload= */ NULL); -} diff --git a/src/libsystemd-network/dhcp-packet.h b/src/libsystemd-network/dhcp-packet.h index 90ea2caac98..fceeb6473bc 100644 --- a/src/libsystemd-network/dhcp-packet.h +++ b/src/libsystemd-network/dhcp-packet.h @@ -31,5 +31,3 @@ int dhcp_packet_append_ip_headers( uint16_t destination, uint16_t len, int ip_service_type); - -int dhcp_packet_verify_headers(DHCPPacket *packet, size_t len, bool checksum, uint16_t port);