1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-25 07:49:18 +00:00
freebsd/usr.sbin/ndp
Boris Lytochkin 03cc3489a0 ndp(8): increase buffer size in rtsock mode
On a router with many connected devices (~10k+) `ndp -an` can fail
with ENOMEM because of some additional NDP records were added
between sysctl() buffer size estimate and data fetch calls.

Allocate more space based on size estimate: 1/64 (~2%) of additional
space, but not less that 4 m_rtmsg structures.

Obtained from:	Yandex LLC
MFC after:	2 weeks
Sponsored by:	Yandex LLC
Differential Revision:	https://reviews.freebsd.org/D43956
2024-02-19 10:44:52 +03:00
..
Makefile
Makefile.depend
ndp_netlink.c ndp: improve -c and -d handling in ndp_netlink 2023-10-23 22:58:29 +02:00
ndp.8
ndp.c ndp(8): increase buffer size in rtsock mode 2024-02-19 10:44:52 +03:00
ndp.h ndp: improve -c and -d handling in ndp_netlink 2023-10-23 22:58:29 +02:00