Change the way as_compare() and aspath_match() handle 'neighbor-as'. Instead
authorclaudio <claudio@openbsd.org>
Wed, 5 Sep 2018 09:49:57 +0000 (09:49 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 5 Sep 2018 09:49:57 +0000 (09:49 +0000)
commit052562fe3d2f91fb3aa9e099095c9e9eddc142d3
tree0e22ca273fb9f0e74a2dd97975aa15a416a6f566
parent635a4d25fa560f6310694d18e0563c96c1f6f3bf
Change the way as_compare() and aspath_match() handle 'neighbor-as'. Instead
of doing the condition before calling aspath_match() just pass the neighbor-as
down to as_compare() which then has all needed data for the lookup. While
doing this also remove one of the as fields in struct filter_as since the
min/max fields can be reused for unary operations.
OK denis@ phessler@
usr.sbin/bgpd/bgpd.h
usr.sbin/bgpd/parse.y
usr.sbin/bgpd/printconf.c
usr.sbin/bgpd/rde.c
usr.sbin/bgpd/rde_filter.c
usr.sbin/bgpd/util.c