diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2010-11-03 01:40:36 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2010-11-03 01:40:36 +0100 |
commit | a244c5524b30874e24fc4dfbdb8cef243bd33178 (patch) | |
tree | 2856262ff6d1cbb9470dde9e7f4cabd3030ef973 /proto/bgp/bgp.c | |
parent | 938b191b9282b138cbdd30dfc11b78c0467d6380 (diff) | |
download | bird-a244c5524b30874e24fc4dfbdb8cef243bd33178.tar bird-a244c5524b30874e24fc4dfbdb8cef243bd33178.zip |
Added support for sending and handling the multicast capability
Diffstat (limited to 'proto/bgp/bgp.c')
-rw-r--r-- | proto/bgp/bgp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c index ba5d755..cbffc65 100644 --- a/proto/bgp/bgp.c +++ b/proto/bgp/bgp.c @@ -408,6 +408,8 @@ bgp_send_open(struct bgp_conn *conn) conn->start_state = conn->bgp->start_state; conn->want_as4_support = conn->bgp->cf->enable_as4 && (conn->start_state != BSS_CONNECT_NOCAP); conn->peer_as4_support = 0; // Default value, possibly changed by receiving capability. + conn->want_multicast_support = conn->bgp->cf->c.global->enable_multicast && conn->bgp->cf->enable_multicast && (conn->start_state != BSS_CONNECT_NOCAP); + conn->peer_multicast_support = 0; // Default value, possibly changed by receiving capability. conn->advertised_as = 0; DBG("BGP: Sending open\n"); @@ -1067,9 +1069,10 @@ bgp_show_proto_info(struct proto *P) cli_msg(-1006, " Neighbor ID: %R", p->remote_id); cli_msg(-1006, " Neighbor address: %I", p->cf->remote_ip); cli_msg(-1006, " Source address: %I", p->source_addr); - cli_msg(-1006, " Neighbor caps: %s%s", + cli_msg(-1006, " Neighbor caps: %s%s%s", c->peer_refresh_support ? " refresh" : "", - c->peer_as4_support ? " AS4" : ""); + c->peer_as4_support ? " AS4" : "", + c->peer_multicast_support ? " multicast" : ""); if (p->cf->route_limit) cli_msg(-1006, " Route limit: %d/%d", p->p.stats.imp_routes, p->cf->route_limit); |