mirror of
https://github.com/opnsense/src.git
synced 2026-05-04 17:05:14 -04:00
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
|
||
|---|---|---|
| .. | ||
| bpf.c | ||
| common.c | ||
| common.h | ||
| if.c | ||
| inet.c | ||
| inet6.c | ||
| ipsec.c | ||
| main.c | ||
| Makefile | ||
| Makefile.depend | ||
| Makefile.depend.options | ||
| mbuf.c | ||
| mroute.c | ||
| mroute6.c | ||
| netgraph.c | ||
| netisr.c | ||
| netstat.1 | ||
| netstat.h | ||
| nhgrp.c | ||
| nhops.c | ||
| nlist_symbols | ||
| pfkey.c | ||
| route.c | ||
| sctp.c | ||
| unix.c | ||