From 06b44be71db4033db8c855491a95f3cf0e7e4595 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Sun, 23 Feb 2014 14:15:05 +0100 Subject: sd-dhcp: equally verify udp and raw dhcp messages Also be more explicit about why packages are ignored. --- src/libsystemd-dhcp/dhcp-internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsystemd-dhcp/dhcp-internal.h') diff --git a/src/libsystemd-dhcp/dhcp-internal.h b/src/libsystemd-dhcp/dhcp-internal.h index efb8ea5411..9a997c10c4 100644 --- a/src/libsystemd-dhcp/dhcp-internal.h +++ b/src/libsystemd-dhcp/dhcp-internal.h @@ -48,8 +48,8 @@ int dhcp_option_parse(DHCPMessage *message, size_t len, int dhcp_message_init(DHCPMessage *message, uint8_t op, uint32_t xid, uint8_t type, uint16_t secs, uint8_t **opt, size_t *optlen); -void dhcp_packet_append_ip_headers(DHCPPacket *packet, uint8_t op, uint16_t len); +void dhcp_packet_append_ip_headers(DHCPPacket *packet, uint16_t len); -int dhcp_packet_verify_headers(DHCPPacket *packet, uint8_t op, size_t len); +int dhcp_packet_verify_headers(DHCPPacket *packet, size_t len); #define log_dhcp_client(client, fmt, ...) log_meta(LOG_DEBUG, __FILE__, __LINE__, __func__, "DHCP CLIENT: " fmt, ##__VA_ARGS__) -- cgit v1.2.3-54-g00ecf