commit | 235c4453471a90017bac632462c7a208ba7573e8 | [log] [tgz] |
---|---|---|
author | Nikolay Aleksandrov <nikolay@cumulusnetworks.com> | Wed Jul 15 05:50:42 2015 -0700 |
committer | Stephen Hemminger <shemming@brocade.com> | Mon Jul 20 14:57:47 2015 -0700 |
tree | 4859eede83509e4a38f0c2ed21d755750c59ffc3 | |
parent | b0085d0ee9c2aafc9afac7d4c12abbb77337df2a [diff] |
ss: fix display of raw sockets After commit 8250bc9ff4e5 ("ss: Unify inet sockets output") raw sockets are displayed as udp because dgram_show_line() is used for both and thus IPPROTO_UDP is used for both so proto_name() returns "udp". Fix this by checking dg_proto which is set according to the caller of dgram_show_line(). Reported-by: Miha Marolt <miham@beyondsemi.com> Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>