Assign a local path_id to all prefixes
authorclaudio <claudio@openbsd.org>
Fri, 8 Jul 2022 08:11:25 +0000 (08:11 +0000)
committerclaudio <claudio@openbsd.org>
Fri, 8 Jul 2022 08:11:25 +0000 (08:11 +0000)
commitca69ff0dd9096e3ac14c2db5373ee21b855fdfd7
treebe9b72c364fbb2e7b4e805146996a7aaa3fab3c3
parent4e688912392fe17d3423900c53adf08db876a6ac
Assign a local path_id to all prefixes

For add-path a unique path_id needs to be assigne to all prefixes.
Use a random number since the RFC explicitly mentions that there is no
meaning what the value means. The local path_id is inherited to all
the RIBs. Adj-RIB-Out handling is not yet down.
OK tb@
usr.sbin/bgpd/rde.c
usr.sbin/bgpd/rde.h
usr.sbin/bgpd/rde_rib.c