iproute2/misc
Phil Sutter 6c6bbc30f4 ss: Fix for added diag support check
Commit 9f66764e30 ("libnetlink: Add test for error code returned from
netlink reply") changed rtnl_dump_filter_l() to return an error in case
NLMSG_DONE would contain one, even if it was ENOENT.

This in turn breaks ss when it tries to dump DCCP sockets on a system
without support for it: The function tcp_show(), which is shared between
TCP and DCCP, will start parsing /proc since inet_show_netlink() returns
an error - yet it parses /proc/net/tcp which doesn't make sense for DCCP
sockets at all.

On my system, a call to 'ss' without further arguments prints the list
of connected TCP sockets twice.

Fix this by introducing a dedicated function dccp_show() which does not
have a fallback to /proc, just like sctp_show(). And since tcp_show()
is no longer "multi-purpose", drop it's socktype parameter.

Fixes: 9f66764e30 ("libnetlink: Add test for error code returned from netlink reply")
Signed-off-by: Phil Sutter <phil@nwl.cc>
2017-08-30 08:18:13 -07:00
..
.gitignore Add ignore files to make using git easier 2006-08-08 12:04:38 -07:00
Makefile change how Config is used in Makefile's 2017-08-09 09:10:52 -07:00
arpd.c Use C99 style initializers everywhere 2016-07-20 12:05:24 -07:00
ifstat.c ifstat, nstat: Check fdopen() return value 2017-08-24 14:49:43 -07:00
lnstat.c Replace malloc && memset by calloc 2016-07-20 12:05:24 -07:00
lnstat.h iproute2: various header include fixes for compiling with musl libc 2014-05-28 16:51:39 -07:00
lnstat_util.c lnstat_util: Simplify alloc_and_open() a bit 2017-08-24 14:53:14 -07:00
nstat.c ifstat, nstat: Check fdopen() return value 2017-08-24 14:49:43 -07:00
rtacct.c misc: fix style issues 2016-03-21 11:56:36 -07:00
ss.c ss: Fix for added diag support check 2017-08-30 08:18:13 -07:00
ssfilter.h ss: Support displaying and filtering on socket marks. 2016-09-22 16:34:40 -07:00
ssfilter.y ss: Support displaying and filtering on socket marks. 2016-09-22 16:34:40 -07:00