X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fadj%2Fadj_nbr.h;h=3a89dc89a2215c7b14d9699a800553bceeaf9a89;hb=960eeea7ea48d91c1f2ec3a85a7a84f56619be2a;hp=293766b851910b0dfd4c2c6ee07fc0fed00badfc;hpb=7cd468a3d7dee7d6c92f69a0bb7061ae208ec727;p=vpp.git diff --git a/src/vnet/adj/adj_nbr.h b/src/vnet/adj/adj_nbr.h index 293766b8519..3a89dc89a22 100644 --- a/src/vnet/adj/adj_nbr.h +++ b/src/vnet/adj/adj_nbr.h @@ -91,7 +91,7 @@ typedef enum adj_nbr_rewrite_flag_t_ /** * An indication that the rewrite is complete, i.e. that it fully describes - * the link-layer addressing for the desintation. + * the link-layer addressing for the destintation. * The opposite of this is an incomplete rewrite that describes the ARP/ND * rewrite when probing. */ @@ -161,6 +161,14 @@ adj_nbr_walk_nh6 (u32 sw_if_index, adj_walk_cb_t cb, 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