diff options
author | Tom Gundersen <teg@jklm.no> | 2014-03-09 22:51:07 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-03-11 12:03:46 +0100 |
commit | 63edaa623bee43c934a0c357e8c6498992429391 (patch) | |
tree | fd954cad50a6d4661e79fa0364c5af1995648970 /src/libsystemd-network/dhcp-internal.h | |
parent | a7b1c3971a30546fe633e320d45033aba8b2ca3c (diff) |
sd-dhcp: generalise ip header generation
This will be needed for sd-dhcp-server.
Diffstat (limited to 'src/libsystemd-network/dhcp-internal.h')
-rw-r--r-- | src/libsystemd-network/dhcp-internal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsystemd-network/dhcp-internal.h b/src/libsystemd-network/dhcp-internal.h index ce83b81631..3c3e1f649f 100644 --- a/src/libsystemd-network/dhcp-internal.h +++ b/src/libsystemd-network/dhcp-internal.h @@ -48,7 +48,9 @@ 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); -void dhcp_packet_append_ip_headers(DHCPPacket *packet, uint16_t 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); int dhcp_packet_verify_headers(DHCPPacket *packet, size_t len, bool checksum); |