Implement a basic API to work with flowspec NLRI.
authorclaudio <claudio@openbsd.org>
Mon, 17 Apr 2023 08:02:21 +0000 (08:02 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 17 Apr 2023 08:02:21 +0000 (08:02 +0000)
commit0f144400c84c1dbab16a4727ceb219caff026970
treedcf9acb539ef6b573d231547f5dcf017a16376eb
parentbc2f47751dfcde797856264c3fe2530191263f0c
Implement a basic API to work with flowspec NLRI.

Flowspec is excessivly flexible and large so there is no way to convert
the flowspec data into a struct bgpd_addr and it is better to keep it in
wireformat and add a few functions to validate and extract information
from the NLRI encoding.
OK tb@
usr.sbin/bgpd/Makefile
usr.sbin/bgpd/bgpd.h
usr.sbin/bgpd/flowspec.c [new file with mode: 0644]
usr.sbin/bgpd/util.c