From a838c939a3a50b7318efac7b960392ca8d13bb1e Mon Sep 17 00:00:00 2001 From: Patrik Flykt Date: Tue, 25 Feb 2014 13:33:24 +0200 Subject: libsystemd-network: Export checksum function to test case Remove identical checksum function implementation from the test case code. --- src/libsystemd-network/dhcp-internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libsystemd-network/dhcp-internal.h') diff --git a/src/libsystemd-network/dhcp-internal.h b/src/libsystemd-network/dhcp-internal.h index 3c3e1f649f..064b13b59f 100644 --- a/src/libsystemd-network/dhcp-internal.h +++ b/src/libsystemd-network/dhcp-internal.h @@ -48,6 +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, uint8_t **opt, size_t *optlen); +uint16_t dhcp_packet_checksum(void *buf, int len); + void dhcp_packet_append_ip_headers(DHCPPacket *packet, be32_t source_addr, uint16_t source, be32_t destination_addr, uint16_t destination, uint16_t len); -- cgit v1.2.3-54-g00ecf