diff options
author | Jon Loeliger <jdl@netgate.com> | 2019-12-03 10:51:23 -0600 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2020-08-12 00:22:25 +0000 |
commit | c2d00e343bb5fab4ad3a43ee21d8b24a72728f2f (patch) | |
tree | e4ab56a732fed9fbf756425939c54a6b3927bab2 /src/vnet/ip | |
parent | fab234754ccf4233cb00c6321ae580f26941a821 (diff) |
ip6: Fix improper MCAST adj test in IPv6 router solicitation
Type: fix
Fixes: cb9cadad578297ffd78fa8a33670bdf1ab669e7e
Change-Id: Id6de9780da41db5d762fe042f533cfaf21ed7b73
Reported-by: Rajith PR <rajith@rtbrick.com>
Signed-off-by: Jon Loeliger <jdl@netgate.com>
(cherry picked from commit a90b26c1ee5bc4410c2753b6683a2e50e275daf6)
Diffstat (limited to 'src/vnet/ip')
-rw-r--r-- | src/vnet/ip/ip6_neighbor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/ip/ip6_neighbor.c b/src/vnet/ip/ip6_neighbor.c index efc687a038b..507d1155078 100644 --- a/src/vnet/ip/ip6_neighbor.c +++ b/src/vnet/ip/ip6_neighbor.c @@ -1854,7 +1854,7 @@ icmp6_router_solicitation (vlib_main_t * vm, else { adj_index0 = radv_info->mcast_adj_index; - if (adj_index0 == 0) + if (adj_index0 == ADJ_INDEX_INVALID) error0 = ICMP6_ERROR_DST_LOOKUP_MISS; else { |