X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fvnet%2Fip%2Fip_neighbor.h;h=9eeebdb1555deeedf0828b0e0deb3e7c2406aaf2;hb=8c8acc027871f97370ee549306876690030c3bbb;hp=d2790bcce5ee21214f93e1b4efae202fe2b4e851;hpb=7f358b30b04aabe9a35680997cc1eeefb080a869;p=vpp.git diff --git a/src/vnet/ip/ip_neighbor.h b/src/vnet/ip/ip_neighbor.h index d2790bcce5e..9eeebdb1555 100644 --- a/src/vnet/ip/ip_neighbor.h +++ b/src/vnet/ip/ip_neighbor.h @@ -35,6 +35,22 @@ typedef struct void ip_neighbor_scan_enable_disable (ip_neighbor_scan_arg_t * arg); +typedef enum ip_neighbor_flags_t_ +{ + IP_NEIGHBOR_FLAG_NODE = 0, + IP_NEIGHBOR_FLAG_STATIC = (1 << 0), + IP_NEIGHBOR_FLAG_NO_ADJ_FIB = (1 << 1), +} ip_neighbor_flags_t; + +extern int ip_neighbor_add (const ip46_address_t * ip, + u8 is_ip6, + const u8 * mac, + u32 sw_if_index, + ip_neighbor_flags_t flags, u32 * stats_index); + +extern int ip_neighbor_del (const ip46_address_t * ip, + u8 is_ip6, u32 sw_if_index); + #endif /* included_ip_neighbor_h */ /*