On Mon, 18 Oct 2010 11:43:22 -0400 Robert wrote:
RS> On Wed, 13 Oct 2010 13:35:40 +0200 Niels wrote:
RS> NB> With Linux on x86(_64) hardware I get a bad netmask from the 
ipCidrRouteTable:
RS> NB> ...
RS> NB> It seems that there is a superflous htonl performed on the netmask in
RS> NB> agent/mibgroup/ip-forward-mib/data_access/route_linux.c around line 125
RS> NB> (it is suspicious that only the mask is subject to htonl)
RS> 
RS> With the htonl, everything works fine. Without it, the mask is completely
RS> wrong. Tested on 32 bit PPC.

So I went to test on an x86_64 bit system and I see the same issue you do, but
I think it's a kernel bug, not a net-snmp bug:

$ route -n |grep vir
192.168.122.0   0.0.0.0         255.255.255.0   U     0      0        0 virbr0

$ cat /proc/net/route |grep vir
virbr0  007AA8C0        00000000        0001    0       0       0       
00FFFFFF        0       0       0    

The mask is backwards in /proc/net/route! On my PPC 32 bit system, the mask is
the expected FFFFFF00.

------------------------------------------------------------------------------
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