Periodic scan and probe of IP neighbors to maintain neighbor pools 76/12276/8
authorJohn Lo <loj@cisco.com>
Sat, 28 Apr 2018 05:19:24 +0000 (01:19 -0400)
committerFlorin Coras <florin.coras@gmail.com>
Fri, 11 May 2018 22:35:30 +0000 (22:35 +0000)
commit7f358b30b04aabe9a35680997cc1eeefb080a869
tree25b82c278355adf4a49289b31e3e3ca008bbc743
parent84c6204969898453aacfa900876e7b7eecd8be0e
Periodic scan and probe of IP neighbors to maintain neighbor pools

Scan IPv4 and IPv6 neigbor pool entries once a minute to keep them
up to date. The neighbor of an entry is probed if its time-stamp
is older than 1 minute. If the neighbor respond, its time-stamp
will be updated. If there is no response from a neighbor, its
entry will be deleted when the time-stamp of the entry become more
than 4 minutes old. Static neighbor entries are not probed nor
deleted.

Implemented CLI and API to enable and disable priodic scan of IPv4,
IPv6 or both types of IP neighbors. CLI is "ip scan-neighbor" and
API is "ip_scan_neighbor_enable_disable". Other IP neighbor scan
parameters can also be changed from their defaults via the CLI/API.

Change-Id: Id1a0a934ace15d03db845aa698bcbb9cdabebfcd
Signed-off-by: John Lo <loj@cisco.com>
14 files changed:
src/vat/api_format.c
src/vnet.am
src/vnet/ethernet/arp.c
src/vnet/ethernet/arp_packet.h
src/vnet/ip/ip.api
src/vnet/ip/ip6_neighbor.c
src/vnet/ip/ip6_neighbor.h
src/vnet/ip/ip_api.c
src/vnet/ip/ip_neighbor.c [new file with mode: 0644]
src/vnet/ip/ip_neighbor.h [new file with mode: 0644]
src/vnet/l2/l2_fib.c
src/vpp/api/custom_dump.c
src/vppinfra/pool.h
src/vppinfra/time.h