Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jan 2011 14:30:14 +0100
From:      Harti Brandt <hartmut.brandt@dlr.de>
To:        Eugene Grosbein <egrosbein@rdtc.ru>
Cc:        "net@freebsd.org" <net@freebsd.org>
Subject:   Re: bsnmpd: ifTable and if_nametoindex() inconsistency
Message-ID:  <20110124142837.R47002@beagle.kn.op.dlr.de>
In-Reply-To: <4D3B255E.1000709@rdtc.ru>
References:  <4D3B20C0.8090907@rdtc.ru> <4D3B255E.1000709@rdtc.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110124142837.R47002>