Extend the pt_entry api to handle flowspec.
authorclaudio <claudio@openbsd.org>
Wed, 19 Apr 2023 07:09:47 +0000 (07:09 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 19 Apr 2023 07:09:47 +0000 (07:09 +0000)
commit689ec283927616e99845e92a74e05263b4f954d8
tree0608f1166b13b1f299f9f861f3ca349d3670767c
parent1f31c15c37e32ea2efe7175fc1fb16788a1dacbe
Extend the pt_entry api to handle flowspec.
Introduce pt_get_flow() and pt_add_flow() to lookup and insert flowspec
objects. Add pt_getflowspec() which works somewhat similar to pt_getaddr()
to extract the flowspec NLRI from a pt_entry.
Make pt_getaddr() to return the destination prefix of the flowspec rule and
handle flowspec in pt_write().
OK tb@
usr.sbin/bgpd/rde.h
usr.sbin/bgpd/rde_prefix.c