Bug 1184433

Summary: udpTable has wrong indices
Product: Red Hat Enterprise Linux 7 Reporter: Dalibor Pospíšil <dapospis>
Component: net-snmpAssignee: Jan Safranek <jsafrane>
Status: CLOSED ERRATA QA Contact: Dalibor Pospíšil <dapospis>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: jsafrane, ksrot, qe-baseos-security, rvokal
Target Milestone: rc   
Target Release: ---   
Hardware: s390x   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: snmpd, the Net-SNMP daemon, wrongly converted IPv4 addresses into network format on big-endian platform when processing UDP-MIB::udpTable. Consequence: Indices in the table were always '0.0.0.0' on big-endian platform, instead of real local IP address of UDP socket. Fix: The IP address is now converted correctly. Result: UDP-MIB::udpTable now contains local IP addresses as indices of the table.
Story Points: ---
Clone Of: 556824 Environment:
Last Closed: 2015-11-19 11:45:45 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 Dalibor Pospíšil 2015-01-21 11:34:39 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.7.2-20.el7.s390x

Comment 2 Jan Safranek 2015-06-18 09:49:12 UTC
This applies also to ppc64:

# snmpwalk localhost udpTable
...
UDP-MIB::udpLocalAddress.0.0.0.0.323 = IpAddress: 127.0.0.1
...

The IP address in the index (0.0.0.0) should be the same as the value (127.0.0.1).

Comment 7 errata-xmlrpc 2015-11-19 11:45:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-2345.html