diff options
author | zi <zi@FreeBSD.org> | 2011-11-24 21:06:52 +0800 |
---|---|---|
committer | zi <zi@FreeBSD.org> | 2011-11-24 21:06:52 +0800 |
commit | 717d9c5a22dfe85f7629753808f790e2a9e0bbb5 (patch) | |
tree | b7efe9437d6128f9f250393791ccae58669bf425 /net-mgmt | |
parent | f2e7095199f128657ccc96cc13c937cc2dc5cd14 (diff) | |
download | freebsd-ports-gnome-717d9c5a22dfe85f7629753808f790e2a9e0bbb5.tar.gz freebsd-ports-gnome-717d9c5a22dfe85f7629753808f790e2a9e0bbb5.tar.zst freebsd-ports-gnome-717d9c5a22dfe85f7629753808f790e2a9e0bbb5.zip |
- Fix TCP-MIB::tcpCurrEstab.0 reporting
PR: ports/160900
Submitted by: Petr Lampa <lampa@fit.vutbr.cz>
Obtained from: upstream commit 87a31bbc009c9515a26c86317475f8384bd70e1b
Approved by: maintainer (implicit)
Feature safe: yes
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/net-snmp/files/patch-agent__mibgroup__mibII__tcp.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net-mgmt/net-snmp/files/patch-agent__mibgroup__mibII__tcp.c b/net-mgmt/net-snmp/files/patch-agent__mibgroup__mibII__tcp.c new file mode 100644 index 000000000000..ccff42eeec32 --- /dev/null +++ b/net-mgmt/net-snmp/files/patch-agent__mibgroup__mibII__tcp.c @@ -0,0 +1,20 @@ +--- ./agent/mibgroup/mibII/tcp.c.orig 2011-11-24 07:57:25.000000000 -0500 ++++ ./agent/mibgroup/mibII/tcp.c 2011-11-24 07:57:51.000000000 -0500 +@@ -92,7 +92,7 @@ + int hz = 1000; + #endif + +-#ifdef NETSNMP_FEATURE_REMOVE_TCP_COUNT_CONNECTIONS ++#ifndef NETSNMP_FEATURE_REMOVE_TCP_COUNT_CONNECTIONS + extern int TCP_Count_Connections( void ); + #endif /* NETSNMP_FEATURE_REMOVE_TCP_COUNT_CONNECTIONS */ + /********************* +@@ -373,7 +373,7 @@ + #ifdef NETSNMP_FEATURE_CHECKING + netsnmp_feature_want(tcp_count_connections) + #endif +-#ifdef NETSNMP_FEATURE_HAS_TCP_COUNT_CONNECTIONS ++#ifndef NETSNMP_FEATURE_REMOVE_TCP_COUNT_CONNECTIONS + ret_value = TCP_Count_Connections(); + #else /* NETSNMP_FEATURE_HAS_TCP_COUNT_CONNECTIONS */ + ret_value = 0; |