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/attrs.c | |
parent | d2d83c47776e1655a73e9134c87590bae084b03b (diff) | |
parent | 54430df953d6c590e5f446530a21d18277eeda56 (diff) |
Merge commit '54430df9' into thread-next
Diffstat (limited to 'proto/bgp/attrs.c')
-rw-r--r-- | proto/bgp/attrs.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/proto/bgp/attrs.c b/proto/bgp/attrs.c index bfdd9ac5..a0d2f4d6 100644 --- a/proto/bgp/attrs.c +++ b/proto/bgp/attrs.c @@ -2025,6 +2025,10 @@ bgp_preexport(struct channel *C, rte *e) struct bgp_proto *src = bgp_rte_proto(e); struct bgp_channel *c = (struct bgp_channel *) C; + /* Ignore non-BGP channels */ + if (C->channel != &channel_bgp) + return -1; + /* Reject our routes */ if (src == p) return -1; @@ -2232,6 +2236,10 @@ bgp_rt_notify(struct proto *P, struct channel *C, const net_addr *n, rte *new, c struct bgp_bucket *buck; struct rte_src *path; + /* Ignore non-BGP channels */ + if (C->channel != &channel_bgp) + return; + if (new) { struct ea_list *attrs = bgp_update_attrs(p, c, new, new->attrs, tmp_linpool); |