]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Remove packed from these structs.
authorRoy Marples <roy@marples.name>
Wed, 5 Oct 2016 14:06:20 +0000 (14:06 +0000)
committerRoy Marples <roy@marples.name>
Wed, 5 Oct 2016 14:06:20 +0000 (14:06 +0000)
ipv6nd.c

index 103b332f4ed3218f53f09501597ca9bd73766e33..7ec87b5e2ceb4d322cbeba37dfdc12cca285b5f1 100644 (file)
--- 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 */