Bug 556824 - udpTable has wrong indexes
Summary: udpTable has wrong indexes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: net-snmp
Version: 5.4.z
Hardware: s390x
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Jan Safranek
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-01-19 15:11 UTC by Karel Srot
Modified: 2011-07-21 12:20 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 543352
: 1184433 (view as bug list)
Environment:
Last Closed: 2011-07-21 09:11:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1076 0 normal SHIPPED_LIVE net-snmp bug fix and enhancement update 2011-07-21 09:07:58 UTC

Description Karel Srot 2010-01-19 15:11:46 UTC
Similar problem can be reproduced on RHEL5.4 on s390x.

after executing following command in the test 58:
# /usr/src/redhat/BUILD/net-snmp-5.3.2.2/apps/snmpnetstat/snmpnetstat -Cn -Cp udp -v2c -c testcommunity udp:localhost:8791

The output is searched for "127.0.0.1.8791" therefore it should be something like:

Active Internet (udp) Connections
Proto Local Address               
... excluded several lines with open udp ports ...
udp   127.0.0.1.123         
udp   127.0.0.1.8791        

but instead of it the output is:

Active Internet (udp) Connections
Proto Local Address               
... excluded several lines with open udp ports ...
udp   *:123         
udp   *:8791        

and therefore the test fails

58:testing if snmpnetstat finds the running agent in udpTable...FAIL


Version of the component:
net-snmp-5.3.2.2-7.el5_4.2.s390x


How to reproduce:
1. build binaries from source
2. cd into "testing" directory  /usr/src/redhat/BUILD/net-snmp../testing
3. run the specified test using ./RUNTEST script


+++ This bug was initially created as a clone of Bug #543352 +++

Description of problem:
The package compilation fails on ppc64 in %check section where 'make test' is executed with following error:

58:testing if snmpnetstat finds the running agent in udpTable...FAIL

The reason is thet snmpd reports udpTable with all IP addresses in indexes '0.0.0.0' instead of real IP address:


"udpTable.udpEntry.udpLocalAddress.0.0.0.0.161 = IpAddress: 127.0.0.1"
shold be:
"udpTable.udpEntry.udpLocalAddress.127.0.0.1.161 = IpAddress: 127.0.0.1"

This affects only big endian systems.

Comment 4 RHEL Program Management 2011-01-11 20:34:51 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 5 RHEL Program Management 2011-01-11 23:07:33 UTC
This request was erroneously denied for the current release of
Red Hat Enterprise Linux.  The error has been fixed and this
request has been re-proposed for the current release.

Comment 6 Jan Safranek 2011-01-25 13:47:31 UTC
The root cause is that snmpd reports udpTable indexes always as 0.0.0.0, even something (=snmpd) listens on loopback only:

$ snmpwalk -v2c -c public localhost udp
Wrong:
UDP-MIB::udpLocalAddress.0.0.0.0.161 = IpAddress: 127.0.0.1
Correct:
UDP-MIB::udpLocalAddress.127.0.0.1.161 = IpAddress: 127.0.0.1

Comment 10 errata-xmlrpc 2011-07-21 09:11:47 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-2011-1076.html

Comment 11 errata-xmlrpc 2011-07-21 12:20:43 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-2011-1076.html


Note You need to log in before you can comment on or make changes to this bug.