netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ipip: ioctl: Remove superfluous IP-TTL handling.
@ 2015-12-18  0:46 Pravin B Shelar
  2015-12-18 21:08 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Pravin B Shelar @ 2015-12-18  0:46 UTC (permalink / raw)
  To: netdev; +Cc: Pravin B Shelar

IP-TTL case is already handled in ip_tunnel_ioctl() API.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
---
 net/ipv4/ipip.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c
index 1f06729..4044da6 100644
--- a/net/ipv4/ipip.c
+++ b/net/ipv4/ipip.c
@@ -252,9 +252,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;
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ipip: ioctl: Remove superfluous IP-TTL handling.
  2015-12-18  0:46 [PATCH] ipip: ioctl: Remove superfluous IP-TTL handling Pravin B Shelar
@ 2015-12-18 21:08 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2015-12-18 21:08 UTC (permalink / raw)
  To: pshelar; +Cc: netdev

From: Pravin B Shelar <pshelar@nicira.com>
Date: Thu, 17 Dec 2015 16:46:39 -0800

> IP-TTL case is already handled in ip_tunnel_ioctl() API.
> 
> Signed-off-by: Pravin B Shelar <pshelar@nicira.com>

Applied, thanks Pravin.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-18 21:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-18  0:46 [PATCH] ipip: ioctl: Remove superfluous IP-TTL handling Pravin B Shelar
2015-12-18 21:08 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).