mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-15 13:31:54 +00:00
temporarily disabling stream at all to fix crashes on shutdown
This commit is contained in:
parent
b905df3e6a
commit
ebc54950aa
@ -640,6 +640,7 @@ bmp_add_peer(struct bmp_proto *p, ea_list *bgp_attr)
|
|||||||
|
|
||||||
int proto_id = ea_get_int(bgp_attr, &ea_proto_id, 0);
|
int proto_id = ea_get_int(bgp_attr, &ea_proto_id, 0);
|
||||||
|
|
||||||
|
#if 0 /* XXXXX FIXME */
|
||||||
struct channel_attrs *chan_attr;
|
struct channel_attrs *chan_attr;
|
||||||
log("before while id %i, eattrs %i", proto_id, proto_state_table->channels_attrs[proto_id]);
|
log("before while id %i, eattrs %i", proto_id, proto_state_table->channels_attrs[proto_id]);
|
||||||
WALK_LIST(chan_attr, proto_state_table->channels_attrs[proto_id])
|
WALK_LIST(chan_attr, proto_state_table->channels_attrs[proto_id])
|
||||||
@ -654,6 +655,7 @@ bmp_add_peer(struct bmp_proto *p, ea_list *bgp_attr)
|
|||||||
if (p->monitoring_rib.in_post_policy && ch_table)
|
if (p->monitoring_rib.in_post_policy && ch_table)
|
||||||
bmp_add_stream(p, bp, ea_get_int(chan_attr->attrs, &ea_bgp_afi, 0), true, ch_table, chan_attr->attrs, 0);
|
bmp_add_stream(p, bp, ea_get_int(chan_attr->attrs, &ea_bgp_afi, 0), true, ch_table, chan_attr->attrs, 0);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return bp;
|
return bp;
|
||||||
}
|
}
|
||||||
@ -661,9 +663,11 @@ bmp_add_peer(struct bmp_proto *p, ea_list *bgp_attr)
|
|||||||
static void
|
static void
|
||||||
bmp_remove_peer(struct bmp_proto *p, struct bmp_peer *bp)
|
bmp_remove_peer(struct bmp_proto *p, struct bmp_peer *bp)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
struct bmp_stream *bs, *bs_next;
|
struct bmp_stream *bs, *bs_next;
|
||||||
WALK_LIST_DELSAFE(bs, bs_next, bp->streams)
|
WALK_LIST_DELSAFE(bs, bs_next, bp->streams)
|
||||||
bmp_remove_stream(p, bs);
|
bmp_remove_stream(p, bs);
|
||||||
|
*/
|
||||||
|
|
||||||
HASH_REMOVE(p->peer_map, HASH_PEER, bp);
|
HASH_REMOVE(p->peer_map, HASH_PEER, bp);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user