summaryrefslogtreecommitdiff
path: root/nest/iface.c
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2020-05-11 04:29:36 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2020-05-11 04:29:36 +0200
commitb8bbbbaf569799ab8faff0ee185528b6a2129154 (patch)
tree300e4b88c161b5d430735a736053bce408b8ef8a /nest/iface.c
parentf7c34aa227693194e53ca0435dba52c2a839bae8 (diff)
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.
Diffstat (limited to 'nest/iface.c')
-rw-r--r--nest/iface.c4
1 files changed, 2 insertions, 2 deletions
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