bsnmpd: ifTable and if_nametoindex() inconsistency

Harti Brandt hartmut.brandt at dlr.de
Mon Jan 24 13:42:21 UTC 2011


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.

harti


More information about the freebsd-net mailing list