From: <no...@so...> - 2001-08-31 17:27:09
|
Bugs item #457290, was opened at 2001-08-31 08:51 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112694&aid=457290&group_id=12694 Category: agent Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Interface_Scan_Get_Count problem Initial Comment: Hi, We are on a Linux system utilizing UCD 4.2.1 SNMP agent. In the mibII/interfaces.c there is a problem with the (linux compiled) Interface_Scan_Get_Count() function in that it does not reinitialize the count. If I start up the agent, and read the interface list, and add a new interface, a walk of the ifDescr will not show the new device. Debugging proves to me that Interface_Scan_Init found the device and added it to the list. The problem is in the code below: static int Interface_Count=0; static int Interface_Scan_Get_Count (void) { if (!Interface_Count) { Interface_Scan_Init(); while (Interface_Scan_Next(NULL, NULL, NULL, NULL) != 0) { Interface_Count++; } } return(Interface_Count); } The Interface_Count is only set to zero at initialization. Afterwards, the loop is never entered. pjweber ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112694&aid=457290&group_id=12694 |