On Wed, 12 Jan 2005 18:20:33 +0200 Denis wrote: DZ> DZ>> I have some problems with snmpd on my FreBSD system, DZ> DZ>> Only 10 interfaces from 42. If I use next command I get: DZ> DZ> > I think this is a known issue. Try 5.2.1.rc2 or 5.2 with the patch DZ> > attached to this bug report: DZ> DZ> > http://sourceforge.net/tracker/index.php?func=detail&aid=1056927&group_id=12694&atid=312694 DZ> DZ> There is one mistake in that patch (for version 5.2): DZ> DZ> @@ -572,8 +573,9 @@ DZ> if (interface == MATCH_FAILED) DZ> return NULL; DZ> DZ> - if (Interface_Scan_By_Index(interface, &if_msg, if_name, &sifa) != 0) DZ> + if (Interface_Scan_By_Index(interface, &if_msg, if_name, NULL) != 0) DZ> return NULL; DZ> + if_ptr = netsnmp_access_interface_entry_overrides_get(Name); DZ> DZ> In the last line of that fragment of code variable Name is used but it DZ> is not defined yet.
Oops.. that was fixed later.. it should be if_name, instead of Name. DZ> Unfortunately without that line in DZ> interfaces.c but with another correction from patch I get the same DZ> result as described in my previous letter. Bummer. well then, you are going to have to get your hands dirty if you want to get this fixed. You can start by running with debug ( -DmibII/interfaces ) and see if that reveals anything. If nothing else it will give you a pattern before the problem occurs, which will help when you have to set breakpoints in Interface_Scan_By_Index(), which is where the problem probably is. Set a break point on each return 0 and see which one is causing the problem. -- Robert Story; NET-SNMP Junkie Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users