freebsd-src/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 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ndp.8 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
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
ndp_netlink.c ndp: improve -c and -d handling in ndp_netlink 2023-10-23 22:58:29 +02:00