aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/adj
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2018-04-26 08:26:52 -0700
committerDamjan Marion <dmarion.lists@gmail.com>2018-05-17 06:29:13 +0000
commitf9d0568344b4766bc1ddc1be9a7e9afd00e2d832 (patch)
tree6266d507999c3fff98c6d8da849c0b4b9ed116a6 /src/vnet/adj
parent78c568905724af785e90185fd89fa8717b3b35c2 (diff)
tcp: handle link-local addresses
Change-Id: I9ede6bc861350c7d9e78fa4d96cd584c2816d06f Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/adj')
-rw-r--r--src/vnet/adj/adj_nbr.c2
-rw-r--r--src/vnet/adj/adj_nbr.h8
2 files changed, 9 insertions, 1 deletions
diff --git a/src/vnet/adj/adj_nbr.c b/src/vnet/adj/adj_nbr.c
index 29cd8123414..eff7d4ce1fb 100644
--- a/src/vnet/adj/adj_nbr.c
+++ b/src/vnet/adj/adj_nbr.c
@@ -93,7 +93,7 @@ adj_nbr_remove (adj_index_t ai,
BV(clib_bihash_add_del) (adj_nbr_tables[nh_proto][sw_if_index], &kv, 0);
}
-static adj_index_t
+adj_index_t
adj_nbr_find (fib_protocol_t nh_proto,
vnet_link_t link_type,
const ip46_address_t *nh_addr,
diff --git a/src/vnet/adj/adj_nbr.h b/src/vnet/adj/adj_nbr.h
index 293766b8519..5d0f8444ec3 100644
--- a/src/vnet/adj/adj_nbr.h
+++ b/src/vnet/adj/adj_nbr.h
@@ -162,6 +162,14 @@ adj_nbr_walk_nh6 (u32 sw_if_index,
void *ctx);
/**
+ * @brief Lookup neighbor adjancency.
+ */
+adj_index_t
+adj_nbr_find (fib_protocol_t nh_proto,
+ vnet_link_t link_type,
+ const ip46_address_t *nh_addr,
+ u32 sw_if_index);
+/**
* @brief
* Module initialisation
*/