Be more consistent with RTR parse error reporting.
authorclaudio <claudio@openbsd.org>
Tue, 9 Jan 2024 14:15:15 +0000 (14:15 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 9 Jan 2024 14:15:15 +0000 (14:15 +0000)
commit4fa7a5b4af81f3dfdf7d6532c53e27a757107f49
tree573596fb069049428e60c6664d6bd5f0f0b6e433
parentbe25e90dc9a3c3ca2ed97f564f5ffdb984c6a561
Be more consistent with RTR parse error reporting.

Stop calling rtr_send_error() after a parse error in rtr_process_msg();
instead move the calls into the parse functions.
Use consistend and useful error text to most rtr_send_error() calls.
In parse header also check the minimal version for router key and ASPA pdus
before checking their length.

OK tb@
usr.sbin/bgpd/rtr_proto.c