diff options
| author | Warner Losh <imp@FreeBSD.org> | 2006-12-01 07:06:35 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2006-12-01 07:06:35 +0000 |
| commit | a20538a08a664dddf00a325f406449d0098bd82e (patch) | |
| tree | c9b9aac833be3430057db844e91aceacbe30c000 | |
| parent | d2d6d8d537a01921ff5c653420bfe8add5b746b7 (diff) | |
Notes
| -rw-r--r-- | sys/net/ethernet.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/net/ethernet.h b/sys/net/ethernet.h index 8d512c06e66e..1b89416b9b64 100644 --- a/sys/net/ethernet.h +++ b/sys/net/ethernet.h @@ -68,7 +68,12 @@ struct ether_header { */ struct ether_addr { u_char octet[ETHER_ADDR_LEN]; -}; +} __packed; + +#ifdef CTASSERT +CTASSERT(sizeof (struct ether_header) == ETHER_ADDR_LEN * 2 + 2); +CTASSERT(sizeof (struct ether_addr) == ETHER_ADDR_LEN); +#endif #define ETHER_IS_MULTICAST(addr) (*(addr) & 0x01) /* is address mcast/bcast? */ |
