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 a56aeb19..1e234b16 100644 --- a/proto/bgp/attrs.c +++ b/proto/bgp/attrs.c @@ -1725,6 +1725,10 @@ bgp_preexport(struct channel *C, rte *e) struct bgp_proto *src = (SRC->proto == &proto_bgp) ? (struct bgp_proto *) SRC : NULL; 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; @@ -1922,6 +1926,10 @@ bgp_rt_notify(struct proto *P, struct channel *C, net *n, rte *new, rte *old) struct bgp_prefix *px; u32 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->eattrs, tmp_linpool); |