]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ss: Fix case when UDP is printed as ipproto-xxx
authorVadim Kochan <vadim4j@gmail.com>
Thu, 8 Jan 2015 00:42:54 +0000 (02:42 +0200)
committerStephen Hemminger <shemming@brocade.com>
Wed, 14 Jan 2015 01:29:17 +0000 (17:29 -0800)
commitace5cb31b1f0f8f4e5644808234f9843409e86a6
tree987cde40489aa1bf1a5d7ea14ee6f9496e91ddcb
parent8c29ae7cc2494e251520584e83698c1a9f1912e5
ss: Fix case when UDP is printed as ipproto-xxx

When 'ss' prints UDP sockets info together with RAW sockets
e.g.:

    $ ss -a

then UDP sockets are resolved as "ipproto-xxx".

It was caused that dg_proto was set after printing UDP
socket info from netlink. So fixed issue by moving
setting dg_proto before printing info from Netlink.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
misc/ss.c