diff options
author | Tom Gundersen <teg@jklm.no> | 2014-05-21 15:55:02 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-05-21 16:09:05 +0200 |
commit | 04b28be1a306fd2ba454d3ee333d63df71aa3873 (patch) | |
tree | 68b782fb9ee67a09284386a6a2ab3ab8cc3ec2c5 /src/libsystemd-network/dhcp-internal.h | |
parent | 2688ef60de061bf188c1153c58fb41a78919b97e (diff) |
sd-dhcp: option_append - support falling back to 'sname' and 'file'
Diffstat (limited to 'src/libsystemd-network/dhcp-internal.h')
-rw-r--r-- | src/libsystemd-network/dhcp-internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsystemd-network/dhcp-internal.h b/src/libsystemd-network/dhcp-internal.h index 56423a2cce..76d357a6ed 100644 --- a/src/libsystemd-network/dhcp-internal.h +++ b/src/libsystemd-network/dhcp-internal.h @@ -36,7 +36,7 @@ int dhcp_network_send_raw_socket(int s, const union sockaddr_union *link, int dhcp_network_send_udp_socket(int s, be32_t address, uint16_t port, const void *packet, size_t len); -int dhcp_option_append(uint8_t options[], size_t size, size_t *offset, +int dhcp_option_append(DHCPMessage *message, size_t size, size_t *offset, uint8_t overload, uint8_t code, size_t optlen, const void *optval); typedef int (*dhcp_option_cb_t)(uint8_t code, uint8_t len, @@ -46,7 +46,7 @@ int dhcp_option_parse(DHCPMessage *message, size_t len, dhcp_option_cb_t cb, void *user_data); int dhcp_message_init(DHCPMessage *message, uint8_t op, uint32_t xid, uint8_t type, - uint8_t options[], size_t optlen, size_t *optoffset); + size_t optlen, size_t *optoffset); uint16_t dhcp_packet_checksum(void *buf, size_t len); |