netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* IPv4 tunnels: why IP-IP and SIT enforce DF bit, but GRE does not?
@ 2015-11-26 18:28 Konstantin Shemyak
  2015-12-01 10:15 ` Hannes Frederic Sowa
  0 siblings, 1 reply; 7+ messages in thread
From: Konstantin Shemyak @ 2015-11-26 18:28 UTC (permalink / raw)
  To: netdev@vger.kernel.org

The kernel has taken the decision to always enforce DF bit on IPv4 
tunnels, which have fixed (not inherited) TTL (e.g. 
net/ipv4/ipip.c:ipip_tunnel_ioctl()). Commment by Alexey Kuznetsov in 
the head of ip_gre.c explains that the reason is attempting to avoid 
network loops.

But the commit c54419321455631 removed this enforcing from GRE tunnels,
not changing this behavior for IP-IP (net/ipv4/ipip.c) and SIT 
(net/ipv6/sit.c).

It can be discussed whether such enforcing of DF bit is exactly the
desired behavior, but shouldn't it at least be identical across IPv4 
tunnels?

Konstantin Shemyak

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

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

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-26 18:28 IPv4 tunnels: why IP-IP and SIT enforce DF bit, but GRE does not? Konstantin Shemyak
2015-12-01 10:15 ` Hannes Frederic Sowa
2015-12-01 13:20   ` Konstantin Shemyak
2015-12-01 13:30     ` Hannes Frederic Sowa
2015-12-01 17:08       ` David Miller
2015-12-05 15:24         ` Konstantin Shemyak
2015-12-05 18:07           ` 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).