iproute2/misc
Pavel Emelyanov 77a8ca8118 iproute: Fix Netid value for multi-families output
When requesting simultaneous output of TCP and UDP sockets
the netid field shows "tcp" always.

[root@xemvm1 iproute2]# ./misc/ss -a -tu
Netid State      Recv-Q Send-Q                            Local Address:Port                                Peer Address:Port
tcp   UNCONN     0      0                                             *:32713                                          *:*
tcp   UNCONN     0      0                                             *:bootpc                                         *:*
tcp   UNCONN     0      0                                            :::57879                                         :::*
tcp   LISTEN     0      128                                           *:ssh                                            *:*
tcp   ESTAB      0      48                                      1.2.3.5:ssh                                      1.2.3.4:45826
tcp   ESTAB      0      0                                       1.2.3.5:ssh                                      1.2.3.4:45814
tcp   LISTEN     0      128                                          :::ssh                                           :::*

While the 1st 3 sockets are UDP ones:

[root@xemvm1 iproute2]# ./misc/ss -a -u
State       Recv-Q Send-Q                              Local Address:Port                                  Peer Address:Port
UNCONN      0      0                                               *:32713                                            *:*
UNCONN      0      0                                               *:bootpc                                           *:*
UNCONN      0      0                                              :::57879                                           :::*

Reported-by: François-Xavier Le Bail <fx.lebail@yahoo.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Tested-by: François-Xavier Le Bail <fx.lebail@yahoo.com>
2014-02-10 14:47:54 -08:00
..
.gitignore Add ignore files to make using git easier 2006-08-08 12:04:38 -07:00
Makefile iproute2: cleanup dependencies 2012-02-27 08:27:54 -08:00
arpd.c check return value of rtnl_send and related functions 2013-12-20 08:24:44 -08:00
ifstat.c ifstat: add json output format 2013-09-24 11:55:13 -07:00
lnstat.c lnstat: add json output format 2013-09-24 11:55:27 -07:00
lnstat.h add const to find_field 2004-10-19 20:47:13 +00:00
lnstat_util.c Remove trailing whitespace 2006-12-05 10:10:22 -08:00
nstat.c nstat: revise json output 2013-09-24 11:54:45 -07:00
rtacct.c ip: make local functions static 2013-02-12 11:38:35 -08:00
ss.c iproute: Fix Netid value for multi-families output 2014-02-10 14:47:54 -08:00
ssfilter.h (Logical change 1.3) 2004-04-15 20:56:59 +00:00
ssfilter.y Remove trailing whitespace 2006-12-05 10:10:22 -08:00