summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/dhcp-internal.h
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2014-02-25 13:33:24 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2014-03-19 10:52:40 +0200
commita838c939a3a50b7318efac7b960392ca8d13bb1e (patch)
tree158094fc37eaed287b8bc379094e2f3d4ce009f7 /src/libsystemd-network/dhcp-internal.h
parent4658568002357edfc7ea634ddafca925d185606b (diff)
libsystemd-network: Export checksum function to test case
Remove identical checksum function implementation from the test case code.
Diffstat (limited to 'src/libsystemd-network/dhcp-internal.h')
-rw-r--r--src/libsystemd-network/dhcp-internal.h2
1 files changed, 2 insertions, 0 deletions
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);