]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ss: fix display of raw sockets
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Wed, 15 Jul 2015 12:50:42 +0000 (05:50 -0700)
committerStephen Hemminger <shemming@brocade.com>
Mon, 20 Jul 2015 21:57:47 +0000 (14:57 -0700)
commit235c4453471a90017bac632462c7a208ba7573e8
tree4859eede83509e4a38f0c2ed21d755750c59ffc3
parentb0085d0ee9c2aafc9afac7d4c12abbb77337df2a
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>
misc/ss.c