--- zzzz-none-000/linux-4.1.52/net/ipv6/ndisc.c 2018-05-28 02:26:45.000000000 +0000 +++ bcm63-7530ax-731/linux-4.1.52/net/ipv6/ndisc.c 2022-03-02 11:37:13.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; /*