]> Pileus Git - ~andy/linux/blobdiff - include/linux/skbuff.h
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394...
[~andy/linux] / include / linux / skbuff.h
index d20d9e7a9bbda130e4499813c10c8c3a82c1bebc..77eb60d2b496e0139a182d047077ea0b0949178e 100644 (file)
@@ -1379,6 +1379,11 @@ static inline int skb_network_offset(const struct sk_buff *skb)
        return skb_network_header(skb) - skb->data;
 }
 
+static inline int pskb_network_may_pull(struct sk_buff *skb, unsigned int len)
+{
+       return pskb_may_pull(skb, skb_network_offset(skb) + len);
+}
+
 /*
  * CPUs often take a performance hit when accessing unaligned memory
  * locations. The actual performance hit varies, it can be small if the