Bug 1063927
Summary: | backport: ss: udp sockets are reported as tcp | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Hubert Kario <hkario> |
Component: | iproute | Assignee: | Pavel Šimerda (pavlix) <psimerda> |
Status: | CLOSED ERRATA | QA Contact: | Jaroslav Aster <jaster> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | htaira, jaster, kmoriwak, ksrot, mori, msrivast, ori, ovasik, psimerda, psutter, thozza, tsekiyam |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | iproute-3.10.0-24.el7 | Doc Type: | Bug Fix |
Doc Text: |
UDP sockets were previously marked as "tcp" in the "Netid" column of the "ss -a" command output. The "ss" utility source code has been modified to fix this problem, and UDP sockets are now correctly marked as "udp" in the "ss -a" output.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2015-11-19 14:41:02 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1215006 | ||
Bug Blocks: | 1039625, 1279974 |
Description
Hubert Kario
2014-02-11 16:14:28 UTC
The UDP sockets are not listed by default and you need to explcitly request them with -u. Also note -a doesn't mean 'all socket types' but 'all socket states'. Plus, when you request just one type explicitly (-u, -t, -d), no other sockets but those are listed and the type column is not present. What you want to do is `ss -anut', which is indeed buggy and shows the `tcp' flag for both TCP and UDP sockets. The `ss' utility needs a lot of love; there are many issues with it. I hope to fix this in the next release. It's too late for 7.0 now. I seem that easy to fix this issue. Do you have any updates? Upstream already has fix. http://git.kernel.org/cgit/linux/kernel/git/shemminger/iproute2.git/commit/?id=77a8ca81189197e8d5e75fe19951efd0aea337d5 Fixed as part of bug #1215006. # ss -an | grep udp udp UNCONN 0 0 :::58 :::* udp UNCONN 0 0 *:68 *:* udp UNCONN 0 0 *:5353 *:* udp UNCONN 0 0 *:48379 *:* udp UNCONN 0 0 *:56679 *:* udp UNCONN 0 0 :::24735 :::* # ss -anu State Recv-Q Send-Q Local Address:Port Peer Address:Port UNCONN 0 0 *:68 *:* UNCONN 0 0 *:5353 *:* UNCONN 0 0 *:48379 *:* UNCONN 0 0 *:56679 *:* UNCONN 0 0 :::24735 :::* 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/RHBA-2015-2117.html |