summaryrefslogtreecommitdiff
path: root/zebra/zebra_ptm.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2025-03-20 12:48:47 -0400
committerGitHub <noreply@github.com>2025-03-20 12:48:47 -0400
commit37fd4519976d3428df1d21aee1858b53ecfb045f (patch)
treeb9c0acfa3ddf0de8bc2716e307bcdc6c7c8f9811 /zebra/zebra_ptm.c
parent361f80a64b69640dbbf472e77d6d04d2e62f409a (diff)
parent4d6f5c7e27b231b7bb4a8a2a10d80f08c63cbd42 (diff)
Merge pull request #18409 from donaldsharp/typesafe_zclient
Typesafe zclient
Diffstat (limited to 'zebra/zebra_ptm.c')
-rw-r--r--zebra/zebra_ptm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/zebra/zebra_ptm.c b/zebra/zebra_ptm.c
index d7d752f01e..9188921fe4 100644
--- a/zebra/zebra_ptm.c
+++ b/zebra/zebra_ptm.c
@@ -1224,7 +1224,6 @@ static void pp_free_all(void)
*/
static void zebra_ptm_send_bfdd(struct stream *msg)
{
- struct listnode *node;
struct zserv *client;
struct stream *msgc;
@@ -1232,7 +1231,7 @@ static void zebra_ptm_send_bfdd(struct stream *msg)
msgc = stream_dup(msg);
/* Send message to all running BFDd daemons. */
- for (ALL_LIST_ELEMENTS_RO(zrouter.client_list, node, client)) {
+ frr_each (zserv_client_list, &zrouter.client_list, client) {
if (client->proto != ZEBRA_ROUTE_BFD)
continue;
@@ -1248,7 +1247,6 @@ static void zebra_ptm_send_bfdd(struct stream *msg)
static void zebra_ptm_send_clients(struct stream *msg)
{
- struct listnode *node;
struct zserv *client;
struct stream *msgc;
@@ -1256,7 +1254,7 @@ static void zebra_ptm_send_clients(struct stream *msg)
msgc = stream_dup(msg);
/* Send message to all running client daemons. */
- for (ALL_LIST_ELEMENTS_RO(zrouter.client_list, node, client)) {
+ frr_each (zserv_client_list, &zrouter.client_list, client) {
if (!IS_BFD_ENABLED_PROTOCOL(client->proto))
continue;