ip6-nd: only respond to RS if sending RA is enabled 89/33389/3
authorOle Troan <ot@cisco.com>
Fri, 6 Aug 2021 07:58:09 +0000 (09:58 +0200)
committerMatthew Smith <mgsmith@netgate.com>
Mon, 9 Aug 2021 18:40:23 +0000 (18:40 +0000)
commit5d280d5b51ace57f73ac1b43caf6c37c6ae11529
treef341b5587c3c1e26e80ce64947b3aec579345dee
parent1885f795ed16515eff389cc49c0b1a9611cf587e
ip6-nd: only respond to RS if sending RA is enabled

Even when periodic RAs are disabled VPP would respond to
router solicitations. Making it impossible to have an IPv6
enabled interface with hosts connected to it without VPP
acting as a default router.

This change drops RS messages if the radv_info->send_radv is
off.

Type: fix
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: I9a68f8e12c93c1c00125b54f8fd454f48fa22caa
Signed-off-by: Ole Troan <ot@cisco.com>
src/vnet/ip6-nd/ip6_ra.c
test/test_ip6.py