netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 1/2] ipv6: add missing netconf notif when 'all' is updated
@ 2016-08-29 10:05 Nicolas Dichtel
  2016-08-29 10:05 ` [PATCH net 2/2] netconf: add a notif when settings are created Nicolas Dichtel
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Nicolas Dichtel @ 2016-08-29 10:05 UTC (permalink / raw)
  To: davem; +Cc: netdev, Nicolas Dichtel

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>
---
 net/ipv6/addrconf.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index f418d2eaeddd..299f0656e87f 100644
--- 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_dftl = net->ipv6.devconf_dflt->forwarding;
+
 		net->ipv6.devconf_dflt->forwarding = newf;
+		if ((!newf) ^ (!old_dftl))
+			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,
-- 
2.8.1

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-09-02 19:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-29 10:05 [PATCH net 1/2] ipv6: add missing netconf notif when 'all' is updated Nicolas Dichtel
2016-08-29 10:05 ` [PATCH net 2/2] netconf: add a notif when settings are created Nicolas Dichtel
2016-08-29 13:00 ` [PATCH net 1/2] ipv6: add missing netconf notif when 'all' is updated Sergei Shtylyov
2016-08-29 13:42   ` Nicolas Dichtel
2016-08-29 14:13   ` 吉藤英明
2016-08-29 16:50     ` Sergei Shtylyov
2016-08-30  2:51 ` YOSHIFUJI Hideaki
2016-08-30  7:41   ` Nicolas Dichtel
2016-08-30  8:09 ` [PATCH net v2 " Nicolas Dichtel
2016-08-30  8:09   ` [PATCH net v2 2/2] netconf: add a notif when settings are created Nicolas Dichtel
2016-09-01 22:18     ` David Miller
2016-09-01 22:18   ` [PATCH net v2 1/2] ipv6: add missing netconf notif when 'all' is updated David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).