All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan <jdccdevel@gmail.com>
To: netdev@vger.kernel.org
Subject: SS utility and UDP Sockets
Date: Fri, 08 Feb 2013 11:20:38 -0700	[thread overview]
Message-ID: <511541F6.7080202@gmail.com> (raw)

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@router-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@router-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@router-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

                 reply	other threads:[~2013-02-08 18:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=511541F6.7080202@gmail.com \
    --to=jdccdevel@gmail.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.