lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:	Fri, 08 Feb 2013 11:20:38 -0700
From:	Jonathan <jdccdevel@...il.com>
To:	netdev@...r.kernel.org
Subject: SS utility and UDP Sockets

Hello:

I apologize in advance if this isn't the right mailing list for this 
question.

I think I've found a bug in the "ss" command from the iproute2 package.

The "ss" command is not listing UDP sockets when given the "-4 -a" 
option combination. Since TCP and UDP sockets can both be IPv4, this is 
somewhat unexpected.

As you can see below, this seems to be a bug in the option parsing, as 
it works as expected when combined with the "-tu" or "-u" options. (I 
expected the output of "ss -4 -a" and "ss -tu -4 -a" to be identical.)

[root@...ter-20130128 xinetd.d]# ss -4 -a
State       Recv-Q Send-Q                                  Local 
Address:Port                                      Peer Address:Port
LISTEN      0 64 *:time                                                 *:*
LISTEN      0 128 *:ssh                                                  
*:*
ESTAB       0      0 172.30.1.72:ssh 172.30.1.61:43687
ESTAB       0      0 172.30.1.72:ssh 172.30.1.61:43602
[root@...ter-20130128 xinetd.d]# ss -tu -4 -a
Netid State      Recv-Q Send-Q                                Local 
Address:Port                                    Peer Address:Port
udp   UNCONN     0 0 
*:time                                               *:*
tcp   LISTEN     0 64 
*:time                                               *:*
tcp   LISTEN     0 128 
*:ssh                                                *:*
tcp   ESTAB      0      0 172.30.1.72:ssh 172.30.1.61:43687
tcp   ESTAB      0      0 172.30.1.72:ssh 172.30.1.61:43602
[root@...ter-20130128 xinetd.d]# ss -4 -u -a
State       Recv-Q Send-Q                                  Local 
Address:Port                                      Peer Address:Port
UNCONN      0 0 *:time                                                 *:*

I'm using the "iproute2 3.6.0-2" package from Arch Linux.

Thanks!

Jonathan


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ