1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/net-mgmt/net-snmp/files/patch-tcpTable.c
Sylvio Cesar Teixeira fb8c450eda - Update to 5.7
PR:		ports/158714
Submitted by:	Garret Cooper <yanegomi@gmail.com>
2011-07-27 20:18:35 +00:00

14 lines
447 B
C

--- agent/mibgroup/mibII/tcpTable.c.orig 2011-07-01 19:35:46.000000000 -0300
+++ agent/mibgroup/mibII/tcpTable.c 2011-07-27 10:00:57.000000000 -0300
@@ -298,8 +298,10 @@
#ifndef NETSNMP_FEATURE_REMOVE_TCP_COUNT_CONNECTIONS
int
TCP_Count_Connections( void ) {
+#if (defined(CAN_USE_SYSCTL) && defined(TCPCTL_PCBLIST))
tcpTable_load(NULL, NULL);
return tcp_estab;
+#endif
}
#endif /* NETSNMP_FEATURE_REMOVE_TCP_COUNT_CONNECTIONS */