]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/skbuff.h
[SK_BUFF]: Introduce skb_reset_network_header(skb)
[net-next-2.6.git] / include / linux / skbuff.h
index dff81af454b7059994125c70a908d0cf3a4e2c06..6440c78fe625ddee7363bdfc7bc66b57995ce64c 100644 (file)
@@ -960,6 +960,11 @@ static inline void skb_reserve(struct sk_buff *skb, int len)
        skb->tail += len;
 }
 
+static inline void skb_reset_network_header(struct sk_buff *skb)
+{
+       skb->nh.raw = skb->data;
+}
+
 static inline unsigned char *skb_mac_header(const struct sk_buff *skb)
 {
        return skb->mac.raw;