summaryrefslogtreecommitdiffstats
path: root/src/vnet/ip/ip.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-04-03 02:10:05 -0700
committerDave Barach <openvpp@barachs.net>2018-04-03 19:34:03 +0000
commita46b4c9b5ed1d14719d1d33b4586ab83b1e8b976 (patch)
tree948f48241e757e65b76ac07c5cf8a08ebc7f046f /src/vnet/ip/ip.c
parent57612ebcf3b5414c6a2f6153a3338803ac94d759 (diff)
session: use fib index in ip local test
Change-Id: I148cb40c8bea55dabe54fa6a662d46862e571640 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/ip/ip.c')
-rw-r--r--src/vnet/ip/ip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/ip/ip.c b/src/vnet/ip/ip.c
index accb2d6d70c..144bbcc405d 100644
--- a/src/vnet/ip/ip.c
+++ b/src/vnet/ip/ip.c
@@ -71,7 +71,7 @@ ip_is_local (u32 fib_index, ip46_address_t * ip46_address, u8 is_ip4)
}
clib_memcpy (&prefix.fp_addr, ip46_address, sizeof (ip46_address_t));
- fei = fib_table_lookup (0, &prefix);
+ fei = fib_table_lookup (fib_index, &prefix);
flags = fib_entry_get_flags (fei);
return (flags & FIB_ENTRY_FLAG_LOCAL);