lkml.org 
[lkml]   [2020]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.4 195/312] ipv6: add missing netconf notif when all is updated
    Date
    From: Nicolas Dichtel <nicolas.dichtel@6wind.com>

    commit d26c638c16cb54f6fb1507e27df93ede692db572 upstream.

    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>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

    ---
    net/ipv6/addrconf.c | 7 +++++++
    1 file changed, 7 insertions(+)

    --- a/net/ipv6/addrconf.c
    +++ b/net/ipv6/addrconf.c
    @@ -771,7 +771,14 @@ static int addrconf_fixup_forwarding(str
    }

    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,

    \
     
     \ /
      Last update: 2020-05-08 15:16    [W:3.740 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site