]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
ss: Detect IPPROTO_ICMPV6 sockets
authorPhil Sutter <phil@nwl.cc>
Wed, 18 Oct 2017 18:08:26 +0000 (20:08 +0200)
committerStephen Hemminger <sthemmin@microsoft.com>
Sat, 21 Oct 2017 13:00:16 +0000 (15:00 +0200)
Prefix IPPROTO_ICMPV6 sockets with 'icmp6' instead of '???'.

Signed-off-by: Phil Sutter <phil@nwl.cc>
misc/ss.c

index e37aba6022eb4293b525fe1240c8cf8dbc1de7a1..b5c6bbc05766e40c143e23cb3a1b36ee6bd9e1aa 100644 (file)
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -784,6 +784,8 @@ static const char *proto_name(int protocol)
                return "sctp";
        case IPPROTO_DCCP:
                return "dccp";
+       case IPPROTO_ICMPV6:
+               return "icmp6";
        }
 
        return "???";