diff options
Diffstat (limited to 'include/linux/if_pppox.h')
-rw-r--r-- | include/linux/if_pppox.h | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/include/linux/if_pppox.h b/include/linux/if_pppox.h index 397921b09ef..999ccd3fff3 100644 --- a/include/linux/if_pppox.h +++ b/include/linux/if_pppox.h | |||
@@ -27,6 +27,8 @@ | |||
27 | #include <linux/ppp_channel.h> | 27 | #include <linux/ppp_channel.h> |
28 | #endif /* __KERNEL__ */ | 28 | #endif /* __KERNEL__ */ |
29 | #include <linux/if_pppol2tp.h> | 29 | #include <linux/if_pppol2tp.h> |
30 | #include <linux/if_pppolac.h> | ||
31 | #include <linux/if_pppopns.h> | ||
30 | 32 | ||
31 | /* For user-space programs to pick up these definitions | 33 | /* For user-space programs to pick up these definitions |
32 | * which they wouldn't get otherwise without defining __KERNEL__ | 34 | * which they wouldn't get otherwise without defining __KERNEL__ |
@@ -60,7 +62,9 @@ struct pptp_addr { | |||
60 | #define PX_PROTO_OE 0 /* Currently just PPPoE */ | 62 | #define PX_PROTO_OE 0 /* Currently just PPPoE */ |
61 | #define PX_PROTO_OL2TP 1 /* Now L2TP also */ | 63 | #define PX_PROTO_OL2TP 1 /* Now L2TP also */ |
62 | #define PX_PROTO_PPTP 2 | 64 | #define PX_PROTO_PPTP 2 |
63 | #define PX_MAX_PROTO 3 | 65 | #define PX_PROTO_OLAC 3 |
66 | #define PX_PROTO_OPNS 4 | ||
67 | #define PX_MAX_PROTO 5 | ||
64 | 68 | ||
65 | struct sockaddr_pppox { | 69 | struct sockaddr_pppox { |
66 | sa_family_t sa_family; /* address family, AF_PPPOX */ | 70 | sa_family_t sa_family; /* address family, AF_PPPOX */ |
@@ -167,6 +171,25 @@ struct pptp_opt { | |||
167 | u32 seq_sent, seq_recv; | 171 | u32 seq_sent, seq_recv; |
168 | int ppp_flags; | 172 | int ppp_flags; |
169 | }; | 173 | }; |
174 | |||
175 | struct pppolac_opt { | ||
176 | __u32 local; | ||
177 | __u32 remote; | ||
178 | __u32 recv_sequence; | ||
179 | __u32 xmit_sequence; | ||
180 | atomic_t sequencing; | ||
181 | int (*backlog_rcv)(struct sock *sk_udp, struct sk_buff *skb); | ||
182 | }; | ||
183 | |||
184 | struct pppopns_opt { | ||
185 | __u16 local; | ||
186 | __u16 remote; | ||
187 | __u32 recv_sequence; | ||
188 | __u32 xmit_sequence; | ||
189 | void (*data_ready)(struct sock *sk_raw, int length); | ||
190 | int (*backlog_rcv)(struct sock *sk_raw, struct sk_buff *skb); | ||
191 | }; | ||
192 | |||
170 | #include <net/sock.h> | 193 | #include <net/sock.h> |
171 | 194 | ||
172 | struct pppox_sock { | 195 | struct pppox_sock { |
@@ -177,6 +200,8 @@ struct pppox_sock { | |||
177 | union { | 200 | union { |
178 | struct pppoe_opt pppoe; | 201 | struct pppoe_opt pppoe; |
179 | struct pptp_opt pptp; | 202 | struct pptp_opt pptp; |
203 | struct pppolac_opt lac; | ||
204 | struct pppopns_opt pns; | ||
180 | } proto; | 205 | } proto; |
181 | __be16 num; | 206 | __be16 num; |
182 | }; | 207 | }; |