--- zzzz-none-000/linux-4.1.38/net/ipv6/ndisc.c 2017-01-18 18:48:06.000000000 +0000 +++ bcm63-7582-715/linux-4.1.38/net/ipv6/ndisc.c 2020-11-25 10:06:48.000000000 +0000 @@ -982,8 +982,12 @@ return; } +#if defined(CONFIG_BCM_KF_IP) + if (!idev->cnf.forwarding || (idev->dev->priv_flags & IFF_WANDEV)) +#else /* Don't accept RS if we're not in router mode */ if (!idev->cnf.forwarding) +#endif goto out; /*