diff options
author | Maria Matejka <mq@ucw.cz> | 2022-01-12 14:06:49 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-02-03 10:30:33 +0100 |
commit | b6c9263543060141d79e205e1b3408099ad1afc4 (patch) | |
tree | bada190f4106905ebfd638a1777c8fb255c0e9f9 /nest/iface.c | |
parent | b5155d5cea6af783619144ca49648ad743cf4e38 (diff) |
Interfaces and neighbor notifications do properly enter protocol loops
Diffstat (limited to 'nest/iface.c')
-rw-r--r-- | nest/iface.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nest/iface.c b/nest/iface.c index dd4af243..bd2bb39a 100644 --- a/nest/iface.c +++ b/nest/iface.c @@ -166,7 +166,8 @@ ifa_notify_change_(unsigned c, struct ifa *a) DBG("IFA change notification (%x) for %s:%I\n", c, a->iface->name, a->ip); WALK_LIST(p, proto_list) - ifa_send_notify(p, c, a); + PROTO_LOCKED_FROM_MAIN(p) + ifa_send_notify(p, c, a); } static inline void @@ -226,7 +227,8 @@ if_notify_change(unsigned c, struct iface *i) ifa_notify_change_(IF_CHANGE_DOWN, a); WALK_LIST(p, proto_list) - if_send_notify(p, c, i); + PROTO_LOCKED_FROM_MAIN(p) + if_send_notify(p, c, i); if (c & IF_CHANGE_UP) WALK_LIST(a, i->addrs) |