summaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-04-04 16:41:55 +0200
committerMaria Matejka <mq@ucw.cz>2023-04-04 17:00:58 +0200
commitb8a230e478d41def757344bbe1eee7fa886682e5 (patch)
tree6d6c907275ef2d61884bf3edb7f2b2ac8a6d584d /proto
parenta26d307eabc9d670c8a39ade3b540cabde5851a3 (diff)
Interface subsystem locking
Diffstat (limited to 'proto')
-rw-r--r--proto/babel/babel.c4
-rw-r--r--proto/ospf/iface.c6
-rw-r--r--proto/radv/radv.c3
-rw-r--r--proto/rip/rip.c4
4 files changed, 5 insertions, 12 deletions
diff --git a/proto/babel/babel.c b/proto/babel/babel.c
index c2de7599..86306180 100644
--- a/proto/babel/babel.c
+++ b/proto/babel/babel.c
@@ -1944,9 +1944,7 @@ babel_reconfigure_iface(struct babel_proto *p, struct babel_iface *ifa, struct b
static void
babel_reconfigure_ifaces(struct babel_proto *p, struct babel_config *cf)
{
- struct iface *iface;
-
- WALK_LIST(iface, iface_list)
+ IFACE_WALK(iface)
{
if (p->p.vrf && p->p.vrf != iface->master)
continue;
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c
index 59255350..1919bccb 100644
--- a/proto/ospf/iface.c
+++ b/proto/ospf/iface.c
@@ -1225,10 +1225,9 @@ ospf_ifa_notify3(struct proto *P, uint flags, struct ifa *a)
static void
ospf_reconfigure_ifaces2(struct ospf_proto *p)
{
- struct iface *iface;
struct ifa *a;
- WALK_LIST(iface, iface_list)
+ IFACE_WALK(iface)
{
if (p->p.vrf && p->p.vrf != iface->master)
continue;
@@ -1274,10 +1273,9 @@ ospf_reconfigure_ifaces2(struct ospf_proto *p)
static void
ospf_reconfigure_ifaces3(struct ospf_proto *p)
{
- struct iface *iface;
struct ifa *a;
- WALK_LIST(iface, iface_list)
+ IFACE_WALK(iface)
{
if (p->p.vrf && p->p.vrf != iface->master)
continue;
diff --git a/proto/radv/radv.c b/proto/radv/radv.c
index a23b8945..434155dc 100644
--- a/proto/radv/radv.c
+++ b/proto/radv/radv.c
@@ -666,8 +666,7 @@ radv_reconfigure(struct proto *P, struct proto_config *CF)
if (!old->propagate_routes && new->propagate_routes)
channel_request_feeding(p->p.main_channel);
- struct iface *iface;
- WALK_LIST(iface, iface_list)
+ IFACE_WALK(iface)
{
if (p->p.vrf && p->p.vrf != iface->master)
continue;
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index e9aaf7b1..97d1dd80 100644
--- a/proto/rip/rip.c
+++ b/proto/rip/rip.c
@@ -807,9 +807,7 @@ rip_reconfigure_iface(struct rip_proto *p, struct rip_iface *ifa, struct rip_ifa
static void
rip_reconfigure_ifaces(struct rip_proto *p, struct rip_config *cf)
{
- struct iface *iface;
-
- WALK_LIST(iface, iface_list)
+ IFACE_WALK(iface)
{
if (p->p.vrf && p->p.vrf != iface->master)
continue;