summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/dhcp-internal.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-11-25 17:29:30 +0100
committerTom Gundersen <teg@jklm.no>2015-11-25 18:30:31 +0100
commitf693e9b38f13575b988335e3324a50dcc8772d48 (patch)
treefee9386c766685ad7cf7c0dc15c78711d4dd8855 /src/libsystemd-network/dhcp-internal.h
parentcddf4d81eacfc81cf761619fcb67bc07a744a6d1 (diff)
sd-dhcp: parse error message in DECLINE or NAK
If a client sends a DECLINE or a server sends a NAK, they can include a string with a message to explain the error. Parse this and print it at debug level.
Diffstat (limited to 'src/libsystemd-network/dhcp-internal.h')
-rw-r--r--src/libsystemd-network/dhcp-internal.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsystemd-network/dhcp-internal.h b/src/libsystemd-network/dhcp-internal.h
index a5daaa543a..7038212bcf 100644
--- a/src/libsystemd-network/dhcp-internal.h
+++ b/src/libsystemd-network/dhcp-internal.h
@@ -47,8 +47,7 @@ int dhcp_option_append(DHCPMessage *message, size_t size, size_t *offset, uint8_
typedef int (*dhcp_option_cb_t)(uint8_t code, uint8_t len,
const void *option, void *userdata);
-int dhcp_option_parse(DHCPMessage *message, size_t len,
- dhcp_option_cb_t cb, void *userdata);
+int dhcp_option_parse(DHCPMessage *message, size_t len, dhcp_option_cb_t cb, void *userdata, char **error_message);
int dhcp_message_init(DHCPMessage *message, uint8_t op, uint32_t xid,
uint8_t type, uint16_t arp_type, size_t optlen,