diff options
author | Felix Jia <felix.jia@alliedtelesis.co.nz> | 2017-01-26 16:59:17 +1300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-27 10:25:34 -0500 |
commit | d35a00b8e33dab7385f724e713ae71c8be0a49f4 (patch) | |
tree | 05a09284869bd8748c80ef4941937b00b61f3adc /include/uapi/linux/ipv6.h | |
parent | 6a4bc2b4c3c9afd643e8da44dd2318a5c5f22cd0 (diff) | |
download | lwn-d35a00b8e33dab7385f724e713ae71c8be0a49f4.tar.gz lwn-d35a00b8e33dab7385f724e713ae71c8be0a49f4.zip |
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>
Diffstat (limited to 'include/uapi/linux/ipv6.h')
-rw-r--r-- | include/uapi/linux/ipv6.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/ipv6.h b/include/uapi/linux/ipv6.h index eaf65dc82e22..8ef9e75e004e 100644 --- a/include/uapi/linux/ipv6.h +++ b/include/uapi/linux/ipv6.h @@ -182,6 +182,7 @@ enum { DEVCONF_SEG6_ENABLED, DEVCONF_SEG6_REQUIRE_HMAC, DEVCONF_ENHANCED_DAD, + DEVCONF_ADDR_GEN_MODE, DEVCONF_MAX }; |