diff options
author | alfred <alfred@FreeBSD.org> | 2002-09-23 18:54:32 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-09-23 18:54:32 +0000 |
commit | ac315391ceb9f2631fcaa72a6ab3da6255a6598d (patch) | |
tree | 8158103cc2a98a399f6b85e558005d61c5a4bb29 /sys/netgraph/ng_pppoe.h | |
parent | 5dc0248605e168960cde445de06c93cf34d5030b (diff) | |
download | FreeBSD-src-ac315391ceb9f2631fcaa72a6ab3da6255a6598d.zip FreeBSD-src-ac315391ceb9f2631fcaa72a6ab3da6255a6598d.tar.gz |
use __packed.
Diffstat (limited to 'sys/netgraph/ng_pppoe.h')
-rw-r--r-- | sys/netgraph/ng_pppoe.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netgraph/ng_pppoe.h b/sys/netgraph/ng_pppoe.h index 78865b5..4f3a916 100644 --- a/sys/netgraph/ng_pppoe.h +++ b/sys/netgraph/ng_pppoe.h @@ -197,7 +197,7 @@ struct pppoe_tag { u_int16_t tag_type; u_int16_t tag_len; char tag_data[0]; -}__attribute ((packed)); +}__packed; struct pppoe_hdr{ u_int8_t ver:4; @@ -206,13 +206,13 @@ struct pppoe_hdr{ u_int16_t sid; u_int16_t length; struct pppoe_tag tag[0]; -}__attribute__ ((packed)); +}__packed; struct pppoe_full_hdr { struct ether_header eh; struct pppoe_hdr ph; -}__attribute__ ((packed)); +}__packed; union packet { struct pppoe_full_hdr pkt_header; |