Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1184433 - udpTable has wrong indices
udpTable has wrong indices
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: net-snmp (Show other bugs)
7.0
s390x Linux
medium Severity medium
: rc
: ---
Assigned To: Jan Safranek
Dalibor Pospíšil
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-01-21 06:34 EST by Dalibor Pospíšil
Modified: 2015-11-19 06:45 EST (History)
4 users (show)

See Also:
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 06:45:45 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2345 normal SHIPPED_LIVE Moderate: net-snmp security and bug fix update 2015-11-19 05:30:06 EST

  None (edit)
Description Dalibor Pospíšil 2015-01-21 06:34:39 EST
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 05:49:12 EDT
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 06:45:45 EST
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

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