CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2021/01/18 05:15:36
Modified files:
usr.sbin/bgpd : bgpd.h kroute.c rde.c rde_prefix.c rde_rib.c
util.c
Log message:
Change struct bgpd_addr VPN encoding. Instead of including two almost
equal versions put the RD and lable stack right into struct bgpd_addr.
For non-VPN addresses these extra fields are ignored. Since VPN and non-VPN
addresses encode the prefix in the same way now some code can be simplified.
In most cases a fallthrough or reuse of encoding functions is now possible.
It should also reduce the size of struct bgpd_addr a bit.
OK denis@