Re: bsnmpd: ifTable and if_nametoindex() inconsistency

2011-01-24 Thread Eugene Grosbein
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

Re: bsnmpd: ifTable and if_nametoindex() inconsistency

2011-01-24 Thread Harti Brandt
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 tha

Re: bsnmpd: ifTable and if_nametoindex() inconsistency

2011-01-24 Thread Harti Brandt
On Sat, 22 Jan 2011, Eugene Grosbein wrote: EG>I run 8.2-PRERELEASE with bsnmpd and mpd55 serving PPPoE users. EG>I've noticed that sometimes snmpwalk shows interface indexes EG>that partially differ from what if_nametoindex(3) returns EG>with off-by-one or off-by-two. For example, just now this s

Re: bsnmpd: ifTable and if_nametoindex() inconsistency

2011-01-22 Thread Eugene Grosbein
On 23.01.2011 00:24, Eugene Grosbein wrote: > Hi! > > I run 8.2-PRERELEASE with bsnmpd and mpd55 serving PPPoE users. > I've noticed that sometimes snmpwalk shows interface indexes > that partially differ from what if_nametoindex(3) returns > with off-by-one or off-by-two. For example, just now th

bsnmpd: ifTable and if_nametoindex() inconsistency

2011-01-22 Thread Eugene Grosbein
Hi! I run 8.2-PRERELEASE with bsnmpd and mpd55 serving PPPoE users. I've noticed that sometimes snmpwalk shows interface indexes that partially differ from what if_nametoindex(3) returns with off-by-one or off-by-two. For example, just now this server has 813 connected PPPoE sessions (interfaces n