Subject: [PATCH 3/5] [IPV6]: Add skb_is_gso_v6

From: Brice Goglin <[email-masked]>
Date: Sat, 13 Oct 2007 12:33:32 +0200

Add skb_is_gso_v6().

Signed-off-by: Brice Goglin <[email-masked]>
---
 include/linux/skbuff.h |    5 +++++
 1 file changed, 5 insertions(+)

Index: linux-git/include/linux/skbuff.h
===================================================================
--- linux-git.orig/include/linux/skbuff.h	2007-10-13 12:24:37.000000000 +0200
+++ linux-git/include/linux/skbuff.h	2007-10-13 12:25:04.000000000 +0200
@@ -1781,6 +1781,11 @@
 	return skb_shinfo(skb)->gso_size;
 }
 
+static inline int skb_is_gso_v6(const struct sk_buff *skb)
+{
+	return skb_shinfo(skb)->gso_type & SKB_GSO_TCPV6;
+}
+
 static inline void skb_forward_csum(struct sk_buff *skb)
 {
 	/* Unfortunately we don't support this one.  Any brave souls? */