diff options
author | yedg <yedg@wangsu.com> | 2020-08-29 14:12:20 +0800 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2020-09-02 16:07:24 +0000 |
commit | f6698d2674a502d354905655ef09857c33bb566f (patch) | |
tree | 6feabff9057fa833a868fd5992d7539785c49fce /src | |
parent | ea7178631ef292530993e0c91bf86f1ca9ae99d4 (diff) |
fib: fix ADJ_NBR_ITF_OK param error
Type: fix
Signed-off-by: yedonggang <yedg@wangsu.com>
Change-Id: I3bf67070ed01df40626f3b90f2762158b6c3ce05
Diffstat (limited to 'src')
-rw-r--r-- | src/vnet/adj/adj_nbr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/adj/adj_nbr.c b/src/vnet/adj/adj_nbr.c index ddaab14ee11..921588a7ef7 100644 --- a/src/vnet/adj/adj_nbr.c +++ b/src/vnet/adj/adj_nbr.c @@ -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 { \ |