projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3ebc88
)
ipv6: add missing netconf notif when 'all' is updated
author
Nicolas Dichtel
<nicolas.dichtel@6wind.com>
Tue, 30 Aug 2016 08:09:21 +0000
(10:09 +0200)
committer
David S. Miller
<davem@davemloft.net>
Thu, 1 Sep 2016 22:18:08 +0000
(15:18 -0700)
The 'default' value was not advertised.
Fixes:
f3a1bfb11ccb
("rtnl/ipv6: use netconf msg to advertise forwarding status")
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/addrconf.c
b/net/ipv6/addrconf.c
index f418d2eaeddd70f259c4bec4efe3087fbf0abc52..2a688171a1880f787e8568e9684c319ad2421513 100644
(file)
--- a/
net/ipv6/addrconf.c
+++ b/
net/ipv6/addrconf.c
@@
-778,7
+778,14
@@
static int addrconf_fixup_forwarding(struct ctl_table *table, int *p, int newf)
}
if (p == &net->ipv6.devconf_all->forwarding) {
+ int old_dflt = net->ipv6.devconf_dflt->forwarding;
+
net->ipv6.devconf_dflt->forwarding = newf;
+ if ((!newf) ^ (!old_dflt))
+ inet6_netconf_notify_devconf(net, NETCONFA_FORWARDING,
+ NETCONFA_IFINDEX_DEFAULT,
+ net->ipv6.devconf_dflt);
+
addrconf_forward_change(net, newf);
if ((!newf) ^ (!old))
inet6_netconf_notify_devconf(net, NETCONFA_FORWARDING,