Merge branch 'rfc4760' into fdn-mods
This commit is contained in:
commit
ae7d3c9fca
1 changed files with 5 additions and 1 deletions
6
bgp.c
6
bgp.c
|
|
@ -1383,7 +1383,11 @@ static int bgp_send_open(struct bgp_peer *peer)
|
||||||
data.version = BGP_VERSION;
|
data.version = BGP_VERSION;
|
||||||
data.as = htons(our_as);
|
data.as = htons(our_as);
|
||||||
data.hold_time = htons(peer->hold);
|
data.hold_time = htons(peer->hold);
|
||||||
data.identifier = my_address;
|
/* use the source IP we use as identifier, if available */
|
||||||
|
if (peer->source_addr != INADDR_ANY)
|
||||||
|
data.identifier = peer->source_addr;
|
||||||
|
else
|
||||||
|
data.identifier = my_address;
|
||||||
|
|
||||||
/* if we know peer doesn't support MP (mp_handling == DoesntHandleIPv6Routes)
|
/* if we know peer doesn't support MP (mp_handling == DoesntHandleIPv6Routes)
|
||||||
then don't add this parameter */
|
then don't add this parameter */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue