Introduce a decision metric (dmetric) that classifies the relation of
authorclaudio <claudio@openbsd.org>
Thu, 7 Jul 2022 12:16:04 +0000 (12:16 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 7 Jul 2022 12:16:04 +0000 (12:16 +0000)
commitb1dddf40430065b498e8e9346d5bfcf956a86380
tree813abbb2cb21f98857baac22035fa19a1972933a
parent5749950726a4281c02ce372734c8d170917d1430
Introduce a decision metric (dmetric) that classifies the relation of
this prefix with respect to its previous one.

Currently the plan is to distinguish the best prefix (only one), ecmp
prefixes (currently the same as as-wide-multipath), as-wide-multipath
prefixes, valid prefixes and invalid prefixes.
This information will be used to implement add-path send but also for
ecmp support in bgpd.
OK tb@
usr.sbin/bgpd/bgpd.h
usr.sbin/bgpd/rde.c
usr.sbin/bgpd/rde.h
usr.sbin/bgpd/rde_decide.c