diff options
author | Alexander Chernavin <achernavin@netgate.com> | 2023-06-26 15:57:57 +0000 |
---|---|---|
committer | Neale Ranns <neale@graphiant.com> | 2023-06-29 05:11:10 +0000 |
commit | e1cc8753605a40b24f132a99e915a2650ce7df51 (patch) | |
tree | 517f4945e1948b691e77e0daf97ccac8d80f7447 /src/vnet/ip-neighbor/ip_neighbor.h | |
parent | c8767c42aadb5bd63206e117673991ef799e2d18 (diff) |
ip-neighbor: add api for getting neighbor db config
There is an API call to change neighbor database configuration (i.e.
limit on peer number, aging, and recycling). With this change, make
getting current values of these settings available via the API.
Type: improvement
Change-Id: Ie9394e086b68cf9b28ad98dea162f203f8043cbb
Signed-off-by: Alexander Chernavin <achernavin@netgate.com>
Diffstat (limited to 'src/vnet/ip-neighbor/ip_neighbor.h')
-rw-r--r-- | src/vnet/ip-neighbor/ip_neighbor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/ip-neighbor/ip_neighbor.h b/src/vnet/ip-neighbor/ip_neighbor.h index 8c07df86ba8..cc888ba2054 100644 --- a/src/vnet/ip-neighbor/ip_neighbor.h +++ b/src/vnet/ip-neighbor/ip_neighbor.h @@ -36,6 +36,8 @@ extern int ip_neighbor_del (const ip_address_t * ip, u32 sw_if_index); extern int ip_neighbor_config (ip_address_family_t af, u32 limit, u32 age, bool recycle); +extern int ip_neighbor_get_config (ip_address_family_t af, u32 *limit, + u32 *age, bool *recycle); extern void ip_neighbor_del_all (ip_address_family_t af, u32 sw_if_index); |