diff options
author | Neale Ranns <neale.ranns@cisco.com> | 2018-09-07 11:04:52 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-09-13 00:32:57 +0000 |
commit | 0bdd319b3b5d7d4037605f9baba8889d30bd1717 (patch) | |
tree | b2fee9d4c96dfa6a72d138de865a6b04325275e4 /src/vnet/ip/ip_neighbor.h | |
parent | 9ce6a21aaa76cd40c95ebbcb5fc6e48a8f5dfdb9 (diff) |
IP-neighbor: add and delete internal API
Change-Id: I4d1ab5ff0c8f0756e91bf63e045f88513bb7d039
Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Diffstat (limited to 'src/vnet/ip/ip_neighbor.h')
-rw-r--r-- | src/vnet/ip/ip_neighbor.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/vnet/ip/ip_neighbor.h b/src/vnet/ip/ip_neighbor.h index d2790bcce5e..b865862c06e 100644 --- a/src/vnet/ip/ip_neighbor.h +++ b/src/vnet/ip/ip_neighbor.h @@ -35,6 +35,21 @@ 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); + +extern int ip_neighbor_del (const ip46_address_t * ip, + u8 is_ip6, u32 sw_if_index); + #endif /* included_ip_neighbor_h */ /* |