Split rde_filterstate_prep() into three functions.
authorclaudio <claudio@openbsd.org>
Thu, 12 Jan 2023 17:35:51 +0000 (17:35 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 12 Jan 2023 17:35:51 +0000 (17:35 +0000)
commit977f29ed7546c9c348223a264fff14c7e4951078
tree92b6e95ea41b180b671e6aed8cd3852bc2167865
parent0c4617f4c8d66d0c67f44f9dfa83f98c4379b865
Split rde_filterstate_prep() into three functions.
- rde_filterstate_init(): initialize a filterstate to default values
- rde_filterstate_copy(): copy from a filterstate into a new state object
- rde_filterstate_prep(): set filtersate based on prefix passed as argument.

This makes the code a bit easier to read.
OK tb@
usr.sbin/bgpd/rde.c
usr.sbin/bgpd/rde.h
usr.sbin/bgpd/rde_filter.c
usr.sbin/bgpd/rde_update.c