From b8bbbbaf569799ab8faff0ee185528b6a2129154 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Mon, 11 May 2020 04:29:36 +0200 Subject: Nest: Fix neighbor handling for colliding ranges Resolve neighbors using longest prefix match. Although interface ranges should not generally collide, it may happen for unnumbered links. Thanks to Kenth Eriksson for the bugreport. --- nest/iface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nest/iface.c') diff --git a/nest/iface.c b/nest/iface.c index 46a49f8f..83a633a3 100644 --- a/nest/iface.c +++ b/nest/iface.c @@ -172,12 +172,12 @@ static inline void ifa_notify_change(unsigned c, struct ifa *a) { if (c & IF_CHANGE_DOWN) - neigh_ifa_update(a); + neigh_ifa_down(a); ifa_notify_change_(c, a); if (c & IF_CHANGE_UP) - neigh_ifa_update(a); + neigh_ifa_up(a); } static inline void -- cgit v1.2.3