diff options
author | Tom Gundersen <teg@jklm.no> | 2015-05-19 17:47:19 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-05-19 18:00:26 +0200 |
commit | 9ee18af3a036074c4021c82ae2e67f5ccaa9ea9d (patch) | |
tree | 73fd1989f68c85cac33487634ca8e242f0bdde78 /src/libsystemd-network/dhcp-identifier.h | |
parent | 69301c17439d276e1596f76b9a137396b268267b (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.h | 3 |
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); |