mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-08 12:18:42 +00:00
BGP: Free bind applies also to outbound connections
Even though the free bind option is primarily meant to alleviate problems with addresses assigned too late, it's also possible to use BIRD with AnyIP configuration, assigning whole ranges to the machine. Therefore free bind allows also to create an outbound connection from specific address even though such address is not assigned.
This commit is contained in:
parent
6b38285f58
commit
2b712554d1
@ -1109,6 +1109,7 @@ bgp_connect(struct bgp_proto *p) /* Enter Connect state and start establishing c
|
|||||||
s->tos = IP_PREC_INTERNET_CONTROL;
|
s->tos = IP_PREC_INTERNET_CONTROL;
|
||||||
s->password = p->cf->password;
|
s->password = p->cf->password;
|
||||||
s->tx_hook = bgp_connected;
|
s->tx_hook = bgp_connected;
|
||||||
|
s->flags = p->cf->free_bind ? SKF_FREEBIND : 0;
|
||||||
BGP_TRACE(D_EVENTS, "Connecting to %I%J from local address %I%J",
|
BGP_TRACE(D_EVENTS, "Connecting to %I%J from local address %I%J",
|
||||||
s->daddr, ipa_is_link_local(s->daddr) ? p->cf->iface : NULL,
|
s->daddr, ipa_is_link_local(s->daddr) ? p->cf->iface : NULL,
|
||||||
s->saddr, ipa_is_link_local(s->saddr) ? s->iface : NULL);
|
s->saddr, ipa_is_link_local(s->saddr) ? s->iface : NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user