ports/65487: net-snmp no longer sets tcp.tcpCurrEstab.0

Ken Stailey kstailey at yahoo.com
Tue Apr 13 12:20:19 UTC 2004


>Number:         65487
>Category:       ports
>Synopsis:       net-snmp no longer sets tcp.tcpCurrEstab.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 13 05:20:18 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Ken Stailey
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
self
>Environment:
System: FreeBSD hermes.trickster.gods 4.9-STABLE FreeBSD 4.9-STABLE #54: Thu Mar 25 10:46:59 EST 2004 kstailey at hermes.trickster.gods:/usr/obj/usr/src/sys/HERMES i386


	
>Description:

The mib element tcp.tcpCurrEstab.0 was not working, then it got fixed but
it's broken again.

>How-To-Repeat:

http://www.freshports.org/phorum/read.php?f=2&i=157&t=157

>Fix:

I think the Makefile needs to set --with-modules=mibII/tcpTable
so that in
ports/net-mgmt/net-snmp/work/net-snmp-5.1.1/agent/mibgroup/mibII/tcp.c
USING_MIBII_TCPTABLE_MODULE will be set and the code

 case TCPCURRESTAB:
#ifdef USING_MIBII_TCPTABLE_MODULE
ret_value = TCP_Count_Connections();
#else
ret_value = 0;
#endif

will be a call to TCP_Count_Connections() which will fill the mib element
tcp.tcpCurrEstab.0

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list