]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv6: allow sysctl to change link-local address generation mode
authorFelix Jia <felix.jia@alliedtelesis.co.nz>
Thu, 26 Jan 2017 03:59:17 +0000 (16:59 +1300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Jan 2017 15:25:34 +0000 (10:25 -0500)
commit87112f6f21f61452be858c292f87f5b0187e4cf9
tree05a09284869bd8748c80ef4941937b00b61f3adc
parenta403b1f3635113ab552b6d6e06af678ff92dabcc
net/ipv6: allow sysctl to change link-local address generation mode

The address generation mode for IPv6 link-local can only be configured
by netlink messages. This patch adds the ability to change the address
generation mode via sysctl.

v1 -> v2
Removed the rtnl lock and switch to use RCU lock to iterate through
the netdev list.

v2 -> v3
Removed the addrgenmode variable from the idev structure and use the
systcl storage for the flag.

Simplifed the logic for sysctl handling by removing the supported
for all operation.

Added support for more types of tunnel interfaces for link-local
address generation.

Based the patches from net-next.

v3 -> v4
Removed unnecessary whitespace changes.

Signed-off-by: Felix Jia <felix.jia@alliedtelesis.co.nz>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ipv6.h
include/net/if_inet6.h
include/uapi/linux/ipv6.h
net/ipv6/addrconf.c