]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/skbuff.h
[SK_BUFF]: Introduce skb_reset_transport_header(skb)
[net-next-2.6.git] / include / linux / skbuff.h
index 31806a7ce40ef8021d2395e797e49e1f7bef84d1..7c1f1756e482dd587f00ea2237afd86f9b8e292a 100644 (file)
@@ -957,6 +957,11 @@ static inline void skb_reserve(struct sk_buff *skb, int len)
        skb->tail += len;
 }
 
+static inline void skb_reset_transport_header(struct sk_buff *skb)
+{
+       skb->h.raw = skb->data;
+}
+
 static inline unsigned char *skb_network_header(const struct sk_buff *skb)
 {
        return skb->nh.raw;