summaryrefslogtreecommitdiff
path: root/proto/bgp/bgp.h
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-11-07 10:09:01 +0100
committerMaria Matejka <mq@ucw.cz>2022-11-07 10:09:01 +0100
commit34e803c6c32032cffeb9bd230d0f85861acd9222 (patch)
treee73c48ab8cfe3fb2f9cee11f4031953292481143 /proto/bgp/bgp.h
parentd2d83c47776e1655a73e9134c87590bae084b03b (diff)
parent54430df953d6c590e5f446530a21d18277eeda56 (diff)
Merge commit '54430df9' into thread-next
Diffstat (limited to 'proto/bgp/bgp.h')
-rw-r--r--proto/bgp/bgp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h
index b76ffe99..c7b8e40b 100644
--- a/proto/bgp/bgp.h
+++ b/proto/bgp/bgp.h
@@ -500,6 +500,9 @@ struct bgp_parse_state {
#define BGP_RX_BUFFER_EXT_SIZE 65535
#define BGP_TX_BUFFER_EXT_SIZE 65535
+#define BGP_CF_WALK_CHANNELS(P,C) WALK_LIST(C, P->c.channels) if (C->c.channel == &channel_bgp)
+#define BGP_WALK_CHANNELS(P,C) WALK_LIST(C, P->p.channels) if (C->c.channel == &channel_bgp)
+
static inline int bgp_channel_is_ipv4(struct bgp_channel *c)
{ return BGP_AFI(c->afi) == BGP_AFI_IPV4; }