Change verification of communities a bit. Move the flag checking first since
authorclaudio <claudio@openbsd.org>
Wed, 5 Sep 2018 07:31:29 +0000 (07:31 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 5 Sep 2018 07:31:29 +0000 (07:31 +0000)
commit65ba595f63ea191b09693c662ba1f5ad23af7597
treec17c03e17c21a71a2a1f871cfd9c41c50a12397b
parent4fc18cd73c7608702ec124905707e20ce2357cac
Change verification of communities a bit. Move the flag checking first since
it is currently terminal and then do the length check. If that one triggers
do a treat-as-withdraw but at the same time drop the bad attribute since it
is better to not have invalid attributes in the Adj-RIB-In since most code
does not expect that.
OK benno@
usr.sbin/bgpd/rde.c