git: e178d8601b79 - stable/13 - tcp: fix TCPPCAP for kernels enabling VNET
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 01 Feb 2023 23:24:00 UTC
The branch stable/13 has been updated by tuexen:
URL: https://cgit.FreeBSD.org/src/commit/?id=e178d8601b79639de137e8f3f31f5463330dfa91
commit e178d8601b79639de137e8f3f31f5463330dfa91
Author: Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2022-06-15 21:28:54 +0000
Commit: Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2023-02-01 23:22:47 +0000
tcp: fix TCPPCAP for kernels enabling VNET
Reviewed by: rscheff
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D35503
(cherry picked from commit bf6c6162c7631b361f81e89b8539154dd738e828)
---
sys/netinet/tcp_pcap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/netinet/tcp_pcap.c b/sys/netinet/tcp_pcap.c
index b387faada0ab..1faa1500ec5a 100644
--- a/sys/netinet/tcp_pcap.c
+++ b/sys/netinet/tcp_pcap.c
@@ -75,7 +75,7 @@ SYSCTL_INT(_net_inet_tcp, OID_AUTO, tcp_pcap_alloc_new_mbuf,
VNET_DEFINE(int, tcp_pcap_packets) = 0;
#define V_tcp_pcap_packets VNET(tcp_pcap_packets)
SYSCTL_INT(_net_inet_tcp, OID_AUTO, tcp_pcap_packets,
- CTLFLAG_RW, &VNET_NAME(tcp_pcap_packets), 0,
+ CTLFLAG_VNET | CTLFLAG_RW, &VNET_NAME(tcp_pcap_packets), 0,
"Default number of packets saved per direction per TCPCB");
/* Initialize the values. */