Adjust the disc_recv_packet() code to not use IBUF_READ_SIZE and to
authorclaudio <claudio@openbsd.org>
Tue, 19 Jan 2021 15:59:25 +0000 (15:59 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 19 Jan 2021 15:59:25 +0000 (15:59 +0000)
commit4ff910d1281c7e76ae61ed2608b8506628f514d5
tree156582b71fd10c5c1fe007975ff01c31e1dd8266
parent2b80d179bb6b16182a20a8f347a01996b4412a6d
Adjust the disc_recv_packet() code to not use IBUF_READ_SIZE and to
use a local recv_buf that is allocated on first call with malloc().
The memory returned from malloc() is properly aligned which may not
be the case for bss or stack memory.
usr.sbin/ldpd/ldpd.h
usr.sbin/ldpd/ldpe.c
usr.sbin/ldpd/ldpe.h
usr.sbin/ldpd/packet.c