diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-02-21 23:10:45 +0200 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-02-22 00:00:53 +0200 |
| commit | db5a5ee6e4665b5f951ed2a37398820da4b762f1 (patch) | |
| tree | bbe036bfd02e99c54a91607e953f7d26ecc6d95c /lib/netns_linux.c | |
| parent | 12906cb1c84b4de54874365d4a02a040ed9632d1 (diff) | |
bgpd: Pass global ASN for confederation peers if not AS_SPECIFIED
When we specify remote-as as external/internal, we need to set local_as to
bgp->as, instead of bgp->confed_id. Before this patch, (bgp->as != *as) is
always valid for such a case because *as is always 0.
Also, append peer->local_as as CONFED_SEQ to avoid other side withdrawing
the routes due to confederation own AS received and/or malformed as-path.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'lib/netns_linux.c')
0 files changed, 0 insertions, 0 deletions
