bsnmpd: ifTable and if_nametoindex() inconsistency
Eugene Grosbein
egrosbein at rdtc.ru
Mon Jan 24 19:08:50 UTC 2011
On 24.01.2011 19:30, Harti Brandt wrote:
> On Sat, 22 Jan 2011, Eugene Grosbein wrote:
>
> EG>On 23.01.2011 00:24, Eugene Grosbein wrote:
> EG>> I really need quick method to obtain SNMP index within mpd55 code
> EG>> (for my local mpd hacks) and if_nametoindex() used to seem nice way...
> EG>> I need to export indexes via mpd's web interface so that they may be
> EG>> checked remotely using SNMP.
> EG>
> EG>Still wondering how to get SNMP index without way too slow walking ifTable over...
>
> We could implement a private table which maps sysindex -> ifIndex. That
> would then require one GET before accessing ifTable.
That would be nice :-)
More information about the freebsd-net
mailing list