summaryrefslogtreecommitdiffstats
path: root/ipv6nd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2016-10-05 14:06:20 +0000
committerRoy Marples <roy@marples.name>2016-10-05 14:06:20 +0000
commit18fa35e173bb2863faa3bc4f17e9a503cc6a2641 (patch)
treeb88f33fbf12303ab62f9ca5125f8473b6e41562b /ipv6nd.c
parent007f0fddd394cf1dc64eecb73032bba27d4881f3 (diff)
downloaddhcpcd-18fa35e173bb2863faa3bc4f17e9a503cc6a2641.tar.xz
Remove packed from these structs.
Diffstat (limited to 'ipv6nd.c')
-rw-r--r--ipv6nd.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ipv6nd.c b/ipv6nd.c
index 103b332f..7ec87b5e 100644
--- a/ipv6nd.c
+++ b/ipv6nd.c
@@ -62,7 +62,8 @@ struct nd_opt_rdnss { /* RDNSS option RFC 6106 */
uint16_t nd_opt_rdnss_reserved;
uint32_t nd_opt_rdnss_lifetime;
/* followed by list of IP prefixes */
-} __packed;
+};
+__CTASSERT(sizeof(struct nd_opt_rdnss) == 8);
#endif
#ifndef ND_OPT_DNSSL
@@ -73,7 +74,8 @@ struct nd_opt_dnssl { /* DNSSL option RFC 6106 */
uint16_t nd_opt_dnssl_reserved;
uint32_t nd_opt_dnssl_lifetime;
/* followed by list of DNS servers */
-} __packed;
+};
+__CTASSERT(sizeof(struct nd_opt_rdnss) == 8);
#endif
/* Impossible options, so we can easily add extras */