Re: Help on getting an interface name

2009-06-15 Thread Robert Story
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

Help on getting an interface name

2009-06-01 Thread lanas
Hello all, In getName(int index) (mibgroup/tunnel.c) there are two ways to get the interface name. Here are excerpts: The first way: #ifndef USING_IF_MIB_IFTABLE_IFTABLE_MODULE oid name[MAX_OID_LEN] = { 1, 3, 6, 1, 2, 1, 2, 2, 1, 2 }; size_t length = 10; struct variable ifName_variable =