mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 03:53:38 +00:00
bgpd: Actually respect RFC 6286 for router_id
The RFC states: The BGP Identifier is a 4-octet, unsigned, non-zero integer that should be unique within an AS. The value of the BGP Identifier for a BGP speaker is determined on startup and is the same for every local interface and every BGP peer. We were going slightly beyond this and ensuring that the address was a specific range of addresses which is no longer relevant. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
93b35ca9f8
commit
b5c2113e47
@ -1214,7 +1214,6 @@ static int bgp_open_receive(struct peer *peer, bgp_size_t size)
|
|||||||
* "Bad BGP Identifier".
|
* "Bad BGP Identifier".
|
||||||
*/
|
*/
|
||||||
if (remote_id.s_addr == INADDR_ANY
|
if (remote_id.s_addr == INADDR_ANY
|
||||||
|| IPV4_CLASS_DE(ntohl(remote_id.s_addr))
|
|
||||||
|| (peer->sort == BGP_PEER_IBGP
|
|| (peer->sort == BGP_PEER_IBGP
|
||||||
&& ntohl(peer->local_id.s_addr) == ntohl(remote_id.s_addr))) {
|
&& ntohl(peer->local_id.s_addr) == ntohl(remote_id.s_addr))) {
|
||||||
if (bgp_debug_neighbor_events(peer))
|
if (bgp_debug_neighbor_events(peer))
|
||||||
|
Loading…
Reference in New Issue
Block a user