remove packed attribute as it will cause data be unaligned
This commit is contained in:
parent
a1e7e17b3e
commit
d5e0a4aba9
|
@ -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 @@ struct sockaddr_pack {
|
|||
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 };
|
||||
|
||||
|
|
Loading…
Reference in New Issue