diff options
Diffstat (limited to 'include/linux/if_pppox.h')
| -rw-r--r-- | include/linux/if_pppox.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/if_pppox.h b/include/linux/if_pppox.h index e33ee763c052..6f987be60fe2 100644 --- a/include/linux/if_pppox.h +++ b/include/linux/if_pppox.h | |||
| @@ -111,7 +111,17 @@ struct pppoe_hdr { | |||
| 111 | struct pppoe_tag tag[0]; | 111 | struct pppoe_tag tag[0]; |
| 112 | } __attribute__ ((packed)); | 112 | } __attribute__ ((packed)); |
| 113 | 113 | ||
| 114 | /* Length of entire PPPoE + PPP header */ | ||
| 115 | #define PPPOE_SES_HLEN 8 | ||
| 116 | |||
| 114 | #ifdef __KERNEL__ | 117 | #ifdef __KERNEL__ |
| 118 | #include <linux/skbuff.h> | ||
| 119 | |||
| 120 | static inline struct pppoe_hdr *pppoe_hdr(const struct sk_buff *skb) | ||
| 121 | { | ||
| 122 | return (struct pppoe_hdr *)skb_network_header(skb); | ||
| 123 | } | ||
| 124 | |||
| 115 | struct pppoe_opt { | 125 | struct pppoe_opt { |
| 116 | struct net_device *dev; /* device associated with socket*/ | 126 | struct net_device *dev; /* device associated with socket*/ |
| 117 | int ifindex; /* ifindex of device associated with socket */ | 127 | int ifindex; /* ifindex of device associated with socket */ |
