diff options
author | Maria Matejka <mq@ucw.cz> | 2022-01-24 15:48:18 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-02-03 10:30:33 +0100 |
commit | d37513a372b0d5b133f59293af185ec831e2456f (patch) | |
tree | ef710a0adcc81bbf725b4a39e0fd3ae50df3117e /sysdep/bsd | |
parent | c651cef737c7c7578c26bd787c0abd3c364bf4b8 (diff) |
Neighbors: Locking and asynchronous notifications
Diffstat (limited to 'sysdep/bsd')
-rw-r--r-- | sysdep/bsd/krt-sock.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdep/bsd/krt-sock.c b/sysdep/bsd/krt-sock.c index a0f6a7cb..923001bf 100644 --- a/sysdep/bsd/krt-sock.c +++ b/sysdep/bsd/krt-sock.c @@ -242,6 +242,7 @@ krt_send_route(struct krt_proto *p, int cmd, const rte *e) */ if (!i) { + IFACE_LOCK; WALK_LIST(j, global_iface_list) { if (j->flags & IF_LOOPBACK) @@ -250,6 +251,7 @@ krt_send_route(struct krt_proto *p, int cmd, const rte *e) break; } } + IFACE_UNLOCK; if (!i) { |