Re: Change bgpd_addr encoding of VPN v4 and v6 addresses

2021-01-14 Thread Claudio Jeker
On Thu, Jan 14, 2021 at 08:22:45PM +0100, Denis Fondras wrote: > Le Tue, Jan 12, 2021 at 10:06:46AM +0100, Claudio Jeker a écrit : > > On Tue, Jan 05, 2021 at 11:17:22AM +0100, Claudio Jeker wrote: > > > While changing log_addr() I noticed that struct bgpd_addr could benefit > > > from changing

Re: Change bgpd_addr encoding of VPN v4 and v6 addresses

2021-01-14 Thread Denis Fondras
Le Tue, Jan 12, 2021 at 10:06:46AM +0100, Claudio Jeker a écrit : > On Tue, Jan 05, 2021 at 11:17:22AM +0100, Claudio Jeker wrote: > > While changing log_addr() I noticed that struct bgpd_addr could benefit > > from changing the encoding of AID_VPN_IPv4 and AID_VPN_IPv6 addrs. > > Instead of

Re: Change bgpd_addr encoding of VPN v4 and v6 addresses

2021-01-12 Thread Claudio Jeker
On Tue, Jan 05, 2021 at 11:17:22AM +0100, Claudio Jeker wrote: > While changing log_addr() I noticed that struct bgpd_addr could benefit > from changing the encoding of AID_VPN_IPv4 and AID_VPN_IPv6 addrs. > Instead of having independent route distinguishers and labelstacks use > common fields for

Change bgpd_addr encoding of VPN v4 and v6 addresses

2021-01-05 Thread Claudio Jeker
While changing log_addr() I noticed that struct bgpd_addr could benefit from changing the encoding of AID_VPN_IPv4 and AID_VPN_IPv6 addrs. Instead of having independent route distinguishers and labelstacks use common fields for those and use the v4 and v6 addresses for the prefix. This is a bit