diff options
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); |