On Mon, 1 Jun 2009 06:09:56 -0400 lanas wrote:
L> In getName(int index) (mibgroup/tunnel.c) there are two ways to
L> get the interface name.  Here are excerpts:
L> 
L> The first way:
L> 
L> #ifndef USING_IF_MIB_IFTABLE_IFTABLE_MODULE

note that the default is to use the iftable module, so this code won't work
unless you've explicitly configured net-snmp to use the old style ifTable.

L> Or there is also:
L> 
L> netsnmp_access_interface_name_find(index);

That's the one you want.

L> My puzzling revolves around:
L> 
L> Why would there be two ways of getting the interface name ?

The code was re-written, and the old code left in place but not compiled in
unless explicity configured.

L> Any insight on this would be greatly appreciated as I'm having a
L> problem getting a WAN interface name

I believe we figured this out in the IRC channel, right? It was unrelated to
the net-snmp code.


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to