]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
The TCPPCAP debugging feature caches recently-used mbufs for use in
authorJonathan T. Looney <jtl@FreeBSD.org>
Wed, 6 Jul 2016 16:17:13 +0000 (16:17 +0000)
committerJonathan T. Looney <jtl@FreeBSD.org>
Wed, 6 Jul 2016 16:17:13 +0000 (16:17 +0000)
commit24b9bb56144191cb6d5848be6c05780fbf4b716b
tree07fe28c75503a38a1f8ebb5c23844e7a116e3470
parent7e12dfe5ef85463e4ab9c9a8ffd7f90d68d0815d
The TCPPCAP debugging feature caches recently-used mbufs for use in
debugging TCP connections. This commit provides a mechanism to free those
mbufs when the system is under memory pressure.

Because this will result in lost debugging information, the behavior is
controllable by a sysctl. The default setting is to free the mbufs.

Reviewed by: gnn
Approved by: re (gjb)
Differential Revision: https://reviews.freebsd.org/D6931
Input from: novice_techie.com
sys/netinet/tcp_pcap.c
sys/netinet/tcp_pcap.h
sys/netinet/tcp_subr.c