summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorShmulik Ladkani <shmulik.ladkani@gmail.com>2016-07-18 14:49:33 +0300
committerDavid S. Miller <davem@davemloft.net>2016-07-19 16:40:22 -0700
commit359ebda25aa06fe3a1d028f7e338a849165e661b (patch)
treef3bf5da129f7922ebd9aefd4f27c17d10934bff7 /include/net
parentdfa15378bd69c6b193a483725889dd90c1a7dd48 (diff)
downloadlinux-stable-359ebda25aa06fe3a1d028f7e338a849165e661b.tar.gz
linux-stable-359ebda25aa06fe3a1d028f7e338a849165e661b.tar.bz2
linux-stable-359ebda25aa06fe3a1d028f7e338a849165e661b.zip
net/ipv4: Introduce IPSKB_FRAG_SEGS bit to inet_skb_parm.flags
This flag indicates whether fragmentation of segments is allowed. Formerly this policy was hardcoded according to IPSKB_FORWARDED (set by either ip_forward or ipmr_forward). Cc: Hannes Frederic Sowa <hannes@stressinduktion.org> Cc: Florian Westphal <fw@strlen.de> Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com> Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/ip.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/ip.h b/include/net/ip.h
index 08f36cd2b874..9742b92dc933 100644
--- a/include/net/ip.h
+++ b/include/net/ip.h
@@ -47,6 +47,7 @@ struct inet_skb_parm {
#define IPSKB_REROUTED BIT(4)
#define IPSKB_DOREDIRECT BIT(5)
#define IPSKB_FRAG_PMTU BIT(6)
+#define IPSKB_FRAG_SEGS BIT(7)
u16 frag_max_size;
};