bsnmpd returning strange IP address values

Wolfgang Zenker wolfgang at lyxys.ka.sub.org
Thu Nov 27 10:05:40 UTC 2014


Hi,

* Wolfgang Zenker <wolfgang at lyxys.ka.sub.org> [141125 23:35]:
> [..]
> When requesting that table from a host running net-snmpd the values returned
> make sense: [..]

> However, if I try this with a host running bsnmpd, I get something strange:

> $ bsnmpwalk -v 2c -s reader at juno.lyx ipAddrTable
> ipAdEntAddr[0.0.0.0] = 0.0.0.0
> ipAdEntIfIndex[0.0.0.0] = 1
> ipAdEntNetMask[0.0.0.0] = 48.0.0.0
> ipAdEntBcastAddr[0.0.0.0] = 0
> ipAdEntReasmMaxSize[0.0.0.0] = 65535

> All systems running 10.1-STABLE

this appears to be a regression. Testing against a host running 8.4-STABLE:

$ bsnmpwalk -v 2c -s reader at saturn.lyxys.ka.sub.org ipAddrTable
ipAdEntAddr[0.0.0.0] = 0.0.0.0
ipAdEntAddr[127.0.0.1] = 127.0.0.1
ipAdEntAddr[217.29.35.151] = 217.29.35.151
ipAdEntIfIndex[0.0.0.0] = 1
ipAdEntIfIndex[127.0.0.1] = 7
ipAdEntIfIndex[217.29.35.151] = 1
ipAdEntNetMask[0.0.0.0] = 0.0.0.0
ipAdEntNetMask[127.0.0.1] = 255.0.0.0
ipAdEntNetMask[217.29.35.151] = 255.255.255.0
ipAdEntBcastAddr[0.0.0.0] = 0
ipAdEntBcastAddr[127.0.0.1] = 1
ipAdEntBcastAddr[217.29.35.151] = 1
ipAdEntReasmMaxSize[0.0.0.0] = 65535
ipAdEntReasmMaxSize[127.0.0.1] = 65535
ipAdEntReasmMaxSize[217.29.35.151] = 65535

While the entries for [0.0.0.0] still look kind of weird, the other entries
are ok and hold the information that I want to have. I'll open a PR.

Wolfgang


More information about the freebsd-stable mailing list