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-packet.c | |
parent | 2688ef60de061bf188c1153c58fb41a78919b97e (diff) |
sd-dhcp: option_append - support falling back to 'sname' and 'file'
Diffstat (limited to 'src/libsystemd-network/dhcp-packet.c')
-rw-r--r-- | src/libsystemd-network/dhcp-packet.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsystemd-network/dhcp-packet.c b/src/libsystemd-network/dhcp-packet.c index 10b645759e..3e2fb96c27 100644 --- a/src/libsystemd-network/dhcp-packet.c +++ b/src/libsystemd-network/dhcp-packet.c @@ -38,7 +38,7 @@ #define DHCP_CLIENT_MIN_OPTIONS_SIZE 312 int dhcp_message_init(DHCPMessage *message, uint8_t op, uint32_t xid, - uint8_t type, uint8_t options[], size_t optlen, size_t *optoffset) { + uint8_t type, size_t optlen, size_t *optoffset) { size_t offset = 0; int r; @@ -50,8 +50,8 @@ int dhcp_message_init(DHCPMessage *message, uint8_t op, uint32_t xid, message->xid = htobe32(xid); message->magic = htobe32(DHCP_MAGIC_COOKIE); - r = dhcp_option_append(message->options, optlen, &offset, - DHCP_OPTION_MESSAGE_TYPE, 1, &type); + r = dhcp_option_append(message, optlen, &offset, 0, + DHCP_OPTION_MESSAGE_TYPE, 1, &type); if (r < 0) return r; |