Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 547698

Summary: snmpd reports IP addresses as 8 bytes in ipCidrRouteTable
Product: Red Hat Enterprise Linux 5 Reporter: Jan Safranek <jsafrane>
Component: net-snmpAssignee: Jan Safranek <jsafrane>
Status: CLOSED ERRATA QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: low Docs Contact:
Priority: low    
Version: 5.4CC: ksrot, rvokal
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-30 08:29:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Safranek 2009-12-15 13:15:30 UTC
Description of problem:

This is similar to bug #253880. On 64bit platforms, some OIDs in ipCidrRouteTable report IPv4 address as 8 bytes instead of 4.

Version-Release number of selected component (if applicable):
net-snmp-5.3.2.2-5.el5

How reproducible:
nearly always (it depends on routes, bigger routing table is better)

Steps to Reproduce:
1. find all OIDs with IpAddress type in ipCidrRouteTable:
$ snmpwalk -v2c -c public localhost ipCidrRouteTable
(e.g. IP-FORWARD-MIB::ipCidrRouteDest.0.0.0.0.0.0.0.0.0.192.168.100.1)


2. check that all these OIDs report IP address as 4 bytes:
$ snmpget -d -Ddump -v1 -c public localhost  <the OID>
- find its Value: in dumped messages and check, it's length (= second byte) is '04' and not '08':

...
dumpv_recv:            ObjID: IP-FORWARD-MIB::ipCidrRouteDest.169.254.0.0.0.0.255.255.0.0.0.0.0
dumph_recv:         Value
dumpx_recv:          40 08 A9 FE 00 00 00 00 00 00 
                 wrong ^^^^ - IP address has 4 bytes, not 8
...

...
dumpv_recv:            ObjID: IP-FORWARD-MIB::ipCidrRouteDest.169.254.0.0.0.0.255.255.0.0.0.0.0
dumph_recv:         Value
dumpx_recv:          40 04 A9 FE 00 00
               correct ^^^^
...

Comment 1 Jan Safranek 2009-12-15 13:16:23 UTC
It has been fixed by upstream in SVN rev. 17684.

Comment 6 errata-xmlrpc 2010-03-30 08:29:33 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0253.html