summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_pppoe.h
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-09-23 18:54:32 +0000
committeralfred <alfred@FreeBSD.org>2002-09-23 18:54:32 +0000
commitac315391ceb9f2631fcaa72a6ab3da6255a6598d (patch)
tree8158103cc2a98a399f6b85e558005d61c5a4bb29 /sys/netgraph/ng_pppoe.h
parent5dc0248605e168960cde445de06c93cf34d5030b (diff)
downloadFreeBSD-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.h6
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;
OpenPOWER on IntegriCloud