From 4095391bd618a343364e0537f3057a3daaf8556a Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 2 Apr 2026 04:20:59 +0900 Subject: [PATCH] dhcp-packet: drop unused dhcp_packet_verify_headers() --- src/libsystemd-network/dhcp-packet.c | 4 ---- src/libsystemd-network/dhcp-packet.h | 2 -- 2 files changed, 6 deletions(-) diff --git a/src/libsystemd-network/dhcp-packet.c b/src/libsystemd-network/dhcp-packet.c index 27b09a25bb..3186d93b7a 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 90ea2caac9..fceeb6473b 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);