Increase RTR PDU limit to 48k and limit number of SPAS to 10'000.
authorclaudio <claudio@openbsd.org>
Tue, 9 Apr 2024 12:09:19 +0000 (12:09 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 9 Apr 2024 12:09:19 +0000 (12:09 +0000)
commit623585da7ab87663ef3d39942e1ac201c5150bb6
tree4b9b129f3b4e87ed5f61d0225786c239f601fda4
parentbb1a6d1a5c7dbbfa47dce71d757f969e855e1dd9
Increase RTR PDU limit to 48k and limit number of SPAS to 10'000.

PDU larger then 48k will result in a session reset while ASPA records
with more than 10'000 entries will be implicitly withdrawn.

Also truncate RTR error PDUs to only include 256 bytes of the faulty PDU.
It makes no sense to include more to identify the issue.
OK tb@
usr.sbin/bgpd/bgpd.h
usr.sbin/bgpd/rtr_proto.c