Remove usage of fatalx() in here. This code will be shared with bgpctl.
authorclaudio <claudio@openbsd.org>
Wed, 19 Apr 2023 09:31:58 +0000 (09:31 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 19 Apr 2023 09:31:58 +0000 (09:31 +0000)
commite7bb5ee493a5c31c85893b1b86023d4d615fc88d
tree74c37ee6bbd886a833d1a86e0d9be62f7c92a1a9
parent211fe81c234be826d24047e5d0f0a70dae72b045
Remove usage of fatalx() in here. This code will be shared with bgpctl.
In flowspec_cmp() make sure a deterministic sort is possible. Most error
cases are unreachable if flowspec NLRI are validated first (flowspec_valid).
In flowspec_valid() replace the assert like check with an error return.
OK tb@
usr.sbin/bgpd/flowspec.c