Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netinet remove packed attribute as it will cause data be...



details:   https://anonhg.NetBSD.org/src/rev/411b92424db3
branches:  trunk
changeset: 534632:411b92424db3
user:      itojun <itojun%NetBSD.org@localhost>
date:      Wed Jul 31 03:18:04 2002 +0000

description:
remove packed attribute as it will cause data be unaligned

diffstat:

 sys/netinet/ip_encap.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r fd3bd08435cf -r 411b92424db3 sys/netinet/ip_encap.c
--- a/sys/netinet/ip_encap.c    Wed Jul 31 01:49:48 2002 +0000
+++ b/sys/netinet/ip_encap.c    Wed Jul 31 03:18:04 2002 +0000
@@ -70,7 +70,7 @@
 #define USE_RADIX
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_encap.c,v 1.9 2002/06/09 16:33:39 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_encap.c,v 1.10 2002/07/31 03:18:04 itojun Exp $");
 
 #include "opt_mrouting.h"
 #include "opt_inet.h"
@@ -118,18 +118,18 @@
        u_int8_t sp_len;
        u_int8_t sp_family;     /* not really used */
        /* followed by variable-length data */
-} __attribute__((__packed__));
+};
 
 struct pack4 {
        struct sockaddr_pack p;
        struct sockaddr_in mine;
        struct sockaddr_in yours;
-} __attribute__((__packed__));
+};
 struct pack6 {
        struct sockaddr_pack p;
        struct sockaddr_in6 mine;
        struct sockaddr_in6 yours;
-} __attribute__((__packed__));
+};
 
 enum direction { INBOUND, OUTBOUND };
 



Home | Main Index | Thread Index | Old Index