fib: fix ADJ_NBR_ITF_OK param error 08/28608/2
authoryedg <yedg@wangsu.com>
Sat, 29 Aug 2020 06:12:20 +0000 (14:12 +0800)
committerNeale Ranns <nranns@cisco.com>
Wed, 2 Sep 2020 16:07:24 +0000 (16:07 +0000)
Type: fix
Signed-off-by: yedonggang <yedg@wangsu.com>
Change-Id: I3bf67070ed01df40626f3b90f2762158b6c3ce05

src/vnet/adj/adj_nbr.c

index ddaab14..921588a 100644 (file)
@@ -39,7 +39,7 @@ typedef struct adj_nbr_key_t_
 
 #define ADJ_NBR_ITF_OK(_proto, _itf)                   \
     (((_itf) < vec_len(adj_nbr_tables[_proto])) &&     \
-     (NULL != adj_nbr_tables[_proto][sw_if_index]))
+     (NULL != adj_nbr_tables[_proto][(_itf)]))
 
 #define ADJ_NBR_ASSERT_NH_PROTO(nh_proto, err)          \
   do {                                                  \