From owner-freebsd-net@FreeBSD.ORG Mon Jan 24 13:42:21 2011 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46EB3106564A for ; Mon, 24 Jan 2011 13:42:21 +0000 (UTC) (envelope-from Hartmut.Brandt@dlr.de) Received: from smtp2.dlr.de (smtp1.dlr.de [129.247.252.32]) by mx1.freebsd.org (Postfix) with ESMTP id CE34A8FC16 for ; Mon, 24 Jan 2011 13:42:20 +0000 (UTC) Received: from DLREXHUB01.intra.dlr.de ([172.21.152.130]) by smtp2.dlr.de with Microsoft SMTPSVC(6.0.3790.4675); Mon, 24 Jan 2011 14:30:14 +0100 Received: from beagle.kn.op.dlr.de (129.247.178.136) by smtp.dlr.de (172.21.152.151) with Microsoft SMTP Server (TLS) id 14.1.270.1; Mon, 24 Jan 2011 14:30:13 +0100 Date: Mon, 24 Jan 2011 14:30:14 +0100 From: Harti Brandt X-X-Sender: brandt_h@beagle.kn.op.dlr.de To: Eugene Grosbein In-Reply-To: <4D3B255E.1000709@rdtc.ru> Message-ID: <20110124142837.R47002@beagle.kn.op.dlr.de> References: <4D3B20C0.8090907@rdtc.ru> <4D3B255E.1000709@rdtc.ru> X-OpenPGP-Key: harti@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Originating-IP: [129.247.178.136] X-OriginalArrivalTime: 24 Jan 2011 13:30:14.0864 (UTC) FILETIME=[D56C8D00:01CBBBCA] Cc: "net@freebsd.org" Subject: Re: bsnmpd: ifTable and if_nametoindex() inconsistency X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Harti Brandt List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2011 13:42:21 -0000 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