diff options
author | Maria Matejka <mq@ucw.cz> | 2022-11-07 10:09:01 +0100 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-11-07 10:09:01 +0100 |
commit | 34e803c6c32032cffeb9bd230d0f85861acd9222 (patch) | |
tree | e73c48ab8cfe3fb2f9cee11f4031953292481143 /proto/bgp/bgp.h | |
parent | d2d83c47776e1655a73e9134c87590bae084b03b (diff) | |
parent | 54430df953d6c590e5f446530a21d18277eeda56 (diff) |
Merge commit '54430df9' into thread-next
Diffstat (limited to 'proto/bgp/bgp.h')
-rw-r--r-- | proto/bgp/bgp.h | 3 |
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; } |