aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ipip.c
diff options
context:
space:
mode:
authorPravin B Shelar <pshelar@nicira.com>2015-12-17 16:46:39 -0800
committerDavid S. Miller <davem@davemloft.net>2015-12-18 16:07:59 -0500
commit6d3c348a63685410b12bf961b97063efeef2f901 (patch)
treee241b5c72d881ef6b911c1cc03f551e6ede2a29a /net/ipv4/ipip.c
parentmkiss: Fix use after free in mkiss_close(). (diff)
downloadlinux-dev-6d3c348a63685410b12bf961b97063efeef2f901.tar.xz
linux-dev-6d3c348a63685410b12bf961b97063efeef2f901.zip
ipip: ioctl: Remove superfluous IP-TTL handling.
IP-TTL case is already handled in ip_tunnel_ioctl() API. Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ipip.c')
-rw-r--r--net/ipv4/ipip.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c
index f34c31defafe..a09fb0dec725 100644
--- a/net/ipv4/ipip.c
+++ b/net/ipv4/ipip.c
@@ -253,9 +253,6 @@ ipip_tunnel_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
p.i_key = p.o_key = 0;
p.i_flags = p.o_flags = 0;
- if (p.iph.ttl)
- p.iph.frag_off |= htons(IP_DF);
-
err = ip_tunnel_ioctl(dev, &p, cmd);
if (err)
return err;