From 1c0ee39e74f1b1c2941afb576eb33e0377fe0b4e Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 12 Jan 2007 07:20:25 +0000 Subject: [PATCH] Marked these as packed correctly --- sys/netinet6/esp_aesctr.c | 2 +- sys/netinet6/in6_cksum.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet6/esp_aesctr.c b/sys/netinet6/esp_aesctr.c index 9519bb0ac96..a8655bdc9d5 100644 --- a/sys/netinet6/esp_aesctr.c +++ b/sys/netinet6/esp_aesctr.c @@ -59,7 +59,7 @@ union cblock { u_int8_t nonce[4]; u_int8_t iv[8]; u_int32_t ctr; - } v __attribute__((__packed__)); + } __packed v; u_int8_t cblock[16]; }; diff --git a/sys/netinet6/in6_cksum.c b/sys/netinet6/in6_cksum.c index 19b73fabb20..17f4cf500cd 100644 --- a/sys/netinet6/in6_cksum.c +++ b/sys/netinet6/in6_cksum.c @@ -100,7 +100,7 @@ in6_cksum(struct mbuf *m, u_int8_t nxt, u_int32_t off, u_int32_t len) u_int32_t ph_len; u_int8_t ph_zero[3]; u_int8_t ph_nxt; - } ph __packed; + } __packed ph; } uph; union { u_int8_t c[2];