networkd: Keep track of static neighbors

System Internals / systemd - William A. Kennington III [wkennington.com] - 12 August 2019 11:28 EDT

We need to keep track of the static neighbors that are configured on the interface so that we can delete stale entries that were removed.

d1bdafd214 networkd: Keep track of static neighbors
src/libsystemd/sd-netlink/rtnl-message.c | 2 +-
src/libsystemd/sd-netlink/sd-netlink.c | 7 +
src/network/networkd-link.c | 39 ++++
src/network/networkd-link.h | 2 +
src/network/networkd-manager.c | 221 +++++++++++++++++++++++
src/network/networkd-manager.h | 2 +
src/network/networkd-neighbor.c | 225 +++++++++++++++++++++++-
src/network/networkd-neighbor.h | 16 +-
src/network/networkd.c | 4 +
test/test-network/conf/25-neighbor-next.network | 9 +
test/test-network/systemd-networkd-tests.py | 24 +++
11 files changed, 541 insertions(+), 10 deletions(-)

Upstream: github.com


  • Share