From 692f884e3d5e0a5a7cc1a78a38a95fb75c626142 Mon Sep 17 00:00:00 2001 From: claudio Date: Sun, 23 Apr 2023 11:39:10 +0000 Subject: [PATCH] Add the same AID filter to prefix_flowspec_dump() like in the other prefix/rib dump functions. OK tb@ --- usr.sbin/bgpd/rde_rib.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/usr.sbin/bgpd/rde_rib.c b/usr.sbin/bgpd/rde_rib.c index f04c2519647..cd56b20300b 100644 --- a/usr.sbin/bgpd/rde_rib.c +++ b/usr.sbin/bgpd/rde_rib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_rib.c,v 1.259 2023/04/19 13:23:33 claudio Exp $ */ +/* $OpenBSD: rde_rib.c,v 1.260 2023/04/23 11:39:10 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker @@ -1197,8 +1197,11 @@ prefix_flowspec_dump(uint8_t aid, void *arg, { struct rib_entry *re, *next; - RB_FOREACH_SAFE(re, rib_tree, rib_tree(&flowrib), next) + RB_FOREACH_SAFE(re, rib_tree, rib_tree(&flowrib), next) { + if (aid != AID_UNSPEC && aid != re->prefix->aid) + continue; call(re, arg); + } if (done != NULL) done(arg, aid); } -- 2.20.1