aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/if_pppox.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-08-23 01:37:04 -0400
committerDavid S. Miller <davem@davemloft.net>2010-08-23 01:37:04 -0400
commit2d4833aae65589ba4317dd325fe20c8b25c14173 (patch)
tree231672eb67197387f94bfda9a0995ddd002dbfbd /include/linux/if_pppox.h
parentf3c58aceaa3f237ba43735805f4677950327b8ee (diff)
parent6a6d01d374d03bd2f90030200cb78567444addc4 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: include/linux/if_pppox.h Fix conflict between Changli's __packed header file fixes and the new PPTP driver. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_pppox.h')
-rw-r--r--include/linux/if_pppox.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/linux/if_pppox.h b/include/linux/if_pppox.h
index 770e8fa669d2..29bcd55851eb 100644
--- a/include/linux/if_pppox.h
+++ b/include/linux/if_pppox.h
@@ -69,7 +69,7 @@ struct sockaddr_pppox {
69 struct pppoe_addr pppoe; 69 struct pppoe_addr pppoe;
70 struct pptp_addr pptp; 70 struct pptp_addr pptp;
71 } sa_addr; 71 } sa_addr;
72} __packed; 72} __attribute__((packed));
73 73
74/* The use of the above union isn't viable because the size of this 74/* The use of the above union isn't viable because the size of this
75 * struct must stay fixed over time -- applications use sizeof(struct 75 * struct must stay fixed over time -- applications use sizeof(struct
@@ -80,7 +80,7 @@ struct sockaddr_pppol2tp {
80 sa_family_t sa_family; /* address family, AF_PPPOX */ 80 sa_family_t sa_family; /* address family, AF_PPPOX */
81 unsigned int sa_protocol; /* protocol identifier */ 81 unsigned int sa_protocol; /* protocol identifier */
82 struct pppol2tp_addr pppol2tp; 82 struct pppol2tp_addr pppol2tp;
83} __packed; 83} __attribute__((packed));
84 84
85/* The L2TPv3 protocol changes tunnel and session ids from 16 to 32 85/* The L2TPv3 protocol changes tunnel and session ids from 16 to 32
86 * bits. So we need a different sockaddr structure. 86 * bits. So we need a different sockaddr structure.
@@ -89,7 +89,7 @@ struct sockaddr_pppol2tpv3 {
89 sa_family_t sa_family; /* address family, AF_PPPOX */ 89 sa_family_t sa_family; /* address family, AF_PPPOX */
90 unsigned int sa_protocol; /* protocol identifier */ 90 unsigned int sa_protocol; /* protocol identifier */
91 struct pppol2tpv3_addr pppol2tp; 91 struct pppol2tpv3_addr pppol2tp;
92} __packed; 92} __attribute__((packed));
93 93
94/********************************************************************* 94/*********************************************************************
95 * 95 *
@@ -111,7 +111,7 @@ struct pppoe_tag {
111 __be16 tag_type; 111 __be16 tag_type;
112 __be16 tag_len; 112 __be16 tag_len;
113 char tag_data[0]; 113 char tag_data[0];
114} __packed; 114} __attribute__ ((packed));
115 115
116/* Tag identifiers */ 116/* Tag identifiers */
117#define PTT_EOL __cpu_to_be16(0x0000) 117#define PTT_EOL __cpu_to_be16(0x0000)
@@ -139,7 +139,7 @@ struct pppoe_hdr {
139 __be16 sid; 139 __be16 sid;
140 __be16 length; 140 __be16 length;
141 struct pppoe_tag tag[0]; 141 struct pppoe_tag tag[0];
142} __packed; 142} __attribute__((packed));
143 143
144/* Length of entire PPPoE + PPP header */ 144/* Length of entire PPPoE + PPP header */
145#define PPPOE_SES_HLEN 8 145#define PPPOE_SES_HLEN 8