From d37513a372b0d5b133f59293af185ec831e2456f Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Mon, 24 Jan 2022 15:48:18 +0100 Subject: Neighbors: Locking and asynchronous notifications --- sysdep/bsd/krt-sock.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sysdep/bsd') 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) { -- cgit v1.2.3