opnsense-src/usr.bin/netstat
Arseny Smalyuk ed80803df4 netinet6: Fix mbuf leak in NDP
Mbufs leak when manually removing incomplete NDP records with pending packet via ndp -d.
It happens because lltable_drop_entry_queue() rely on `la_numheld`
counter when dropping NDP entries (lles). It turned out NDP code never
increased `la_numheld`, so the actual free never happened.

Fix the issue by introducing unified lltable_append_entry_queue(),
common for both ARP and NDP code, properly addressing packet queue
maintenance.

Reviewed By: melifaro
Differential Revision: https://reviews.freebsd.org/D35365
MFC after:	2 weeks

(cherry picked from commit d18b4bec98)
2023-05-09 11:05:03 +02:00
..
bpf.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
common.c usr.bin/netstat: use roundup2 when rounding up to power of 2. 2021-05-15 21:40:23 -07:00
common.h Introduce scalable route multipath. 2020-10-03 10:47:17 +00:00
if.c netstat -i: do not truncate interface names 2022-07-13 08:20:03 -05:00
inet.c netstat: Fix typo 2022-03-04 20:41:55 +01:00
inet6.c netinet6: Fix mbuf leak in NDP 2023-05-09 11:05:03 +02:00
ipsec.c ipsec(4): Fix a few typos in error messages 2022-02-13 08:54:53 +01:00
main.c Extend netstat to display TCP stack and detailed congestion state 2020-10-09 10:07:41 +00:00
Makefile Introduce scalable route multipath. 2020-10-03 10:47:17 +00:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options Add Makefile.depend.options 2019-12-11 17:37:37 +00:00
mbuf.c
mroute.c Fix netstat -gs with ip_mroute module and/or vnet 2019-11-12 01:03:08 +00:00
mroute6.c
netgraph.c
netisr.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
netstat.1 netstat -i: do not truncate interface names 2022-07-13 08:20:03 -05:00
netstat.h Extend netstat to display TCP stack and detailed congestion state 2020-10-09 10:07:41 +00:00
nhgrp.c Introduce scalable route multipath. 2020-10-03 10:47:17 +00:00
nhops.c netstat: fix nhop prepend printing. 2022-03-28 08:47:23 +00:00
nlist_symbols Fix netstat -rs reporting. 2021-04-04 08:44:01 +00:00
pfkey.c
route.c netstat: print path weight when showing routes in structured output. 2023-01-13 21:18:24 +00:00
sctp.c
unix.c Use uintptr_t alone when assigning to kvaddr_t variables. 2018-07-10 13:03:06 +00:00