diff options
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index d9a550bf3e8e..7514b9c37a39 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -1912,6 +1912,15 @@ static inline int dev_parse_header(const struct sk_buff *skb, | |||
1912 | return dev->header_ops->parse(skb, haddr); | 1912 | return dev->header_ops->parse(skb, haddr); |
1913 | } | 1913 | } |
1914 | 1914 | ||
1915 | static inline int dev_rebuild_header(struct sk_buff *skb) | ||
1916 | { | ||
1917 | const struct net_device *dev = skb->dev; | ||
1918 | |||
1919 | if (!dev->header_ops || !dev->header_ops->rebuild) | ||
1920 | return 0; | ||
1921 | return dev->header_ops->rebuild(skb); | ||
1922 | } | ||
1923 | |||
1915 | typedef int gifconf_func_t(struct net_device * dev, char __user * bufptr, int len); | 1924 | typedef int gifconf_func_t(struct net_device * dev, char __user * bufptr, int len); |
1916 | int register_gifconf(unsigned int family, gifconf_func_t *gifconf); | 1925 | int register_gifconf(unsigned int family, gifconf_func_t *gifconf); |
1917 | static inline int unregister_gifconf(unsigned int family) | 1926 | static inline int unregister_gifconf(unsigned int family) |