summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/dhcp-identifier.h
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-05-19 17:47:19 +0200
committerTom Gundersen <teg@jklm.no>2015-05-19 18:00:26 +0200
commit9ee18af3a036074c4021c82ae2e67f5ccaa9ea9d (patch)
tree73fd1989f68c85cac33487634ca8e242f0bdde78 /src/libsystemd-network/dhcp-identifier.h
parent69301c17439d276e1596f76b9a137396b268267b (diff)
dhcp-identifier: fix for unaligned write
Reported by Michael Olbrich.
Diffstat (limited to 'src/libsystemd-network/dhcp-identifier.h')
-rw-r--r--src/libsystemd-network/dhcp-identifier.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsystemd-network/dhcp-identifier.h b/src/libsystemd-network/dhcp-identifier.h
index 643d4970d5..95117915f4 100644
--- a/src/libsystemd-network/dhcp-identifier.h
+++ b/src/libsystemd-network/dhcp-identifier.h
@@ -24,6 +24,7 @@
#include "macro.h"
#include "sparse-endian.h"
+#include "unaligned.h"
#include "sd-id128.h"
/* RFC 3315 section 9.1:
@@ -61,4 +62,4 @@ struct duid {
} _packed_;
int dhcp_identifier_set_duid_en(struct duid *duid, size_t *len);
-int dhcp_identifier_set_iaid(int ifindex, uint8_t *mac, size_t mac_len, uint32_t *_id);
+int dhcp_identifier_set_iaid(int ifindex, uint8_t *mac, size_t mac_len, void *_id);