From: Hannes Frederic Sowa Date: Thu, 9 Jan 2014 09:01:17 +0000 (+0100) Subject: ipv4: introduce hardened ip_no_pmtu_disc mode X-Git-Tag: firefly_0821_release~176^2~4570^2~228^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8ed1dc44d3e9e8387a104b1ae8f92e9a3fbf1b1e;hp=8ed1dc44d3e9e8387a104b1ae8f92e9a3fbf1b1e;p=firefly-linux-kernel-4.4.55.git ipv4: introduce hardened ip_no_pmtu_disc mode This new ip_no_pmtu_disc mode only allowes fragmentation-needed errors to be honored by protocols which do more stringent validation on the ICMP's packet payload. This knob is useful for people who e.g. want to run an unmodified DNS server in a namespace where they need to use pmtu for TCP connections (as they are used for zone transfers or fallback for requests) but don't want to use possibly spoofed UDP pmtu information. Currently the whitelisted protocols are TCP, SCTP and DCCP as they check if the returned packet is in the window or if the association is valid. Cc: Eric Dumazet Cc: David Miller Cc: John Heffner Suggested-by: Florian Weimer Signed-off-by: Hannes Frederic Sowa Signed-off-by: David S. Miller ---