diff --git a/sys/netinet/tcp_pcap.c b/sys/netinet/tcp_pcap.c index c431f2444bd8..f0c651dab555 100644 --- a/sys/netinet/tcp_pcap.c +++ b/sys/netinet/tcp_pcap.c @@ -70,9 +70,9 @@ 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, - &V_tcp_pcap_packets, 0, "Default number of packets saved per direction " - "per TCPCB"); +SYSCTL_INT(_net_inet_tcp, OID_AUTO, tcp_pcap_packets, + CTLFLAG_RW, &VNET_NAME(tcp_pcap_packets), 0, + "Default number of packets saved per direction per TCPCB"); /* Initialize the values. */ static void