compat: add ipv6_hdr

This commit is contained in:
Jan Engelhardt
2008-04-08 11:33:26 +02:00
parent 2f6bc4c8cb
commit 9778022c37

View File

@@ -10,6 +10,7 @@
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 21)
# define ip_hdr(skb) ((skb)->nh.iph)
# define ip_hdrlen(skb) (ip_hdr(skb)->ihl * 4)
# define ipv6_hdr(skb) ((skb)->nh.ipv6h)
# define skb_network_header(skb) ((skb)->nh.raw)
static inline void skb_reset_network_header(struct sk_buff *skb)
{