Remove prefixlen2mask() uasge outside of util.c. Instead use inet4applymask().
authorclaudio <claudio@openbsd.org>
Thu, 16 Jun 2022 15:33:05 +0000 (15:33 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 16 Jun 2022 15:33:05 +0000 (15:33 +0000)
commitfa3a38bb164316b619dce3f95ba236c71cf9c182
tree4eeb4d3c8fdc40058f4979b9d14d87ec7b4f5283
parent93c5da169790d31212049652f62d31fd0e272596
Remove prefixlen2mask() uasge outside of util.c. Instead use inet4applymask().

Using inet4applymask() makes the code similar to the IPv6 version.
Also switch kroute{,6}_match() to use a struct bgpd_addr * as argument.
OK tb@
usr.sbin/bgpd/bgpd.h
usr.sbin/bgpd/kroute.c
usr.sbin/bgpd/util.c