Enfroce proper encoding of ASPA announce/withdraw PDU.
authorclaudio <claudio@openbsd.org>
Tue, 10 Sep 2024 08:41:13 +0000 (08:41 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 10 Sep 2024 08:41:13 +0000 (08:41 +0000)
commitd9facda501b800416a1611d8ee6b8d9cffedae0f
tree744ef601306e078055846b29cc03f376202972ae
parentc2b3ae36d499a4e66af4549410c1f29e6323565d
Enfroce proper encoding of ASPA announce/withdraw PDU.

An announce PDU requires at least one provider ASnum while a withdraw
must not include any provider ASnums. The first is mandated by the ASPA
profile and the 2nd by the 8210bis draft.

Further cleanup some leftovers from the old per-AFI split of ASPA.
OK tb@
usr.sbin/bgpd/rtr_proto.c