]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dhcp-packet: drop unused dhcp_packet_verify_headers() 42128/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 1 Apr 2026 19:20:59 +0000 (04:20 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 16 May 2026 16:31:43 +0000 (01:31 +0900)
src/libsystemd-network/dhcp-packet.c
src/libsystemd-network/dhcp-packet.h

index 27b09a25bbb4faa9f2f70e3964de6f7160962b3a..3186d93b7ac2ab5fadc8f3e173835cd56daa8d8c 100644 (file)
@@ -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);
-}
index 90ea2caac987ac46130d513df7b6d6649dafc0b6..fceeb6473bc043b7dbb1a63b5c7e271b66bc218f 100644 (file)
@@ -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);