On Wed, 13 Oct 2010 13:35:40 +0200 Niels wrote:
NB> With Linux on x86(_64) hardware I get a bad netmask from the 
ipCidrRouteTable:
NB> 
NB> $ snmpwalk -OX localhost:6161 ipCidrRouteTable
NB> IP-FORWARD-MIB::ipCidrRouteDest[0.0.0.0][0.0.0.0][0][172.18.0.1] = 
IpAddress: 0.0.0.0
NB> IP-FORWARD-MIB::ipCidrRouteDest[169.254.0.0][0.0.255.255][0][0.0.0.0] = 
IpAddress: 169.254.0.0
NB> IP-FORWARD-MIB::ipCidrRouteDest[172.18.0.0][0.0.255.255][0][0.0.0.0] = 
IpAddress: 172.18.0.0
NB> ...
NB> 
NB> It seems that there is a superflous htonl performed on the netmask in
NB> agent/mibgroup/ip-forward-mib/data_access/route_linux.c around line 125
NB> (it is suspicious that only the mask is subject to htonl)
NB> 
NB> But I would like to hear from someone with big-endian hardware before
NB> killing it :-)

With the htonl, everything works fine. Without it, the mask is completely
wrong. Tested on 32 bit PPC.

Robert

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to