From: Jon Loeliger Date: Tue, 3 Dec 2019 16:51:23 +0000 (-0600) Subject: ip6: Fix improper MCAST adj test in IPv6 router solicitation X-Git-Tag: v19.08.3~257 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=c2d00e343bb5fab4ad3a43ee21d8b24a72728f2f;p=vpp.git ip6: Fix improper MCAST adj test in IPv6 router solicitation Type: fix Fixes: cb9cadad578297ffd78fa8a33670bdf1ab669e7e Change-Id: Id6de9780da41db5d762fe042f533cfaf21ed7b73 Reported-by: Rajith PR Signed-off-by: Jon Loeliger (cherry picked from commit a90b26c1ee5bc4410c2753b6683a2e50e275daf6) --- 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 {