When filling prefixes with pt_writebuf() keep 2 bytes reserved in the
authorclaudio <claudio@openbsd.org>
Tue, 25 Jun 2024 13:21:18 +0000 (13:21 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 25 Jun 2024 13:21:18 +0000 (13:21 +0000)
commita48c3ad520a06455cd53ecf8a67a6b70290f8f52
tree0fb2904142b1c052b31873e5f665cc2901755bf7
parent3d310523b415eeee9db46a5b67eecf8f9fdd5c8f
When filling prefixes with pt_writebuf() keep 2 bytes reserved in the
withdraw case. Those bytes are needed for the attribute length field.
Without this withdraw messages can become overfull and are dropped
without notice.

Problem found and fix tested by denis@
OK denis@ tb@
usr.sbin/bgpd/rde_prefix.c