diff options
Diffstat (limited to 'include/linux/if_pppox.h')
-rw-r--r-- | include/linux/if_pppox.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/if_pppox.h b/include/linux/if_pppox.h index e33ee763c052..7044f8ab30a0 100644 --- a/include/linux/if_pppox.h +++ b/include/linux/if_pppox.h | |||
@@ -112,6 +112,13 @@ struct pppoe_hdr { | |||
112 | } __attribute__ ((packed)); | 112 | } __attribute__ ((packed)); |
113 | 113 | ||
114 | #ifdef __KERNEL__ | 114 | #ifdef __KERNEL__ |
115 | #include <linux/skbuff.h> | ||
116 | |||
117 | static inline struct pppoe_hdr *pppoe_hdr(const struct sk_buff *skb) | ||
118 | { | ||
119 | return (struct pppoe_hdr *)skb->nh.raw; | ||
120 | } | ||
121 | |||
115 | struct pppoe_opt { | 122 | struct pppoe_opt { |
116 | struct net_device *dev; /* device associated with socket*/ | 123 | struct net_device *dev; /* device associated with socket*/ |
117 | int ifindex; /* ifindex of device associated with socket */ | 124 | int ifindex; /* ifindex of device associated with socket */ |