]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/ipv6.h
[SK_BUFF]: Introduce ipipv6_hdr(), remove skb->h.ipv6h
[net-next-2.6.git] / include / linux / ipv6.h
index ec79c59b2077fe41fc41ce6864c5487f3586b80c..b768fcc0a4c414b72f81b36f1bde7308296ea23f 100644 (file)
@@ -228,6 +228,11 @@ static inline struct ipv6hdr *ipv6_hdr(const struct sk_buff *skb)
        return (struct ipv6hdr *)skb_network_header(skb);
 }
 
+static inline struct ipv6hdr *ipipv6_hdr(const struct sk_buff *skb)
+{
+       return (struct ipv6hdr *)skb->h.raw;
+}
+
 /* 
    This structure contains results of exthdrs parsing
    as offsets from skb->nh.