On Thu, 12 May 2005 20:32:31 -0600 Bruce wrote: BS> >mibII/interfaces.c: In function `var_ifEntry': BS> >mibII/interfaces.c:1333: error: `Name' undeclared (first use in this BS> >function) BS> BS> Yeah, that's cause it's spelled wrong. The reference in line 1333 should BS> be"name". Problem is, there is a Name declared not far up above that looks BS> like it's supposed to be more global so I'm wonder why it isn't recognized. BS> BS> I tried it my way and it compiled and ran correctly. BS> BS> Is this a valid fix?
No. I've just checked in a fix, which is to remove the code referring to Name. The name is an OID, while Name is supposed to be the interface name (ie a string). The code was added so that the snmpd.conf interface token could override types and speeds. I had cut-n-pasted in this code, without realizing that solaris apparently doesn't use the Name variable. So, the interface token won't work on solaris til someone figures out how to get Name set up correctly. -- 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-coders> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
