]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipv6: Add sysctl entry to disable MTU updates from RA
authorHarout Hedeshian <harouth@codeaurora.org>
Tue, 20 Jan 2015 17:06:05 +0000 (10:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Jan 2015 22:54:41 +0000 (14:54 -0800)
commitaa4bdf80c315383fe2fe7d0dad30ce35f8886a8f
tree1ff92b3129af4b9b711063cf2caf5c14e64fb4b4
parent158859059713ea0f9b1952f160036225c7f65cdc
net: ipv6: Add sysctl entry to disable MTU updates from RA

The kernel forcefully applies MTU values received in router
advertisements provided the new MTU is less than the current. This
behavior is undesirable when the user space is managing the MTU. Instead
a sysctl flag 'accept_ra_mtu' is introduced such that the user space
can control whether or not RA provided MTU updates should be applied. The
default behavior is unchanged; user space must explicitly set this flag
to 0 for RA MTUs to be ignored.

Signed-off-by: Harout Hedeshian <harouth@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/networking/ip-sysctl.txt
include/linux/ipv6.h
include/uapi/linux/ipv6.h
net/ipv6/addrconf.c
net/ipv6/ndisc.c