Reverse the polarity of flowspec_cmp() so it works better with our
authorclaudio <claudio@openbsd.org>
Mon, 17 Apr 2023 20:54:57 +0000 (20:54 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 17 Apr 2023 20:54:57 +0000 (20:54 +0000)
commit01840ecf79e2bb877d5fbaccacb5c62a26a01d74
tree6034ed4e59887a8ba7eb21b01a0cefcb3973b6b5
parent4bec30b6d97c43070ce6facec227cd8cb2a5a470
Reverse the polarity of flowspec_cmp() so it works better with our
RB trees. Mainly RB_FOREACH() walks form RB_MIN to RB_MAX so the most
preferred entry should be at RB_MIN.
OK tb@
usr.sbin/bgpd/flowspec.c