ss: Detect IPPROTO_ICMPV6 sockets

Prefix IPPROTO_ICMPV6 sockets with 'icmp6' instead of '???'.

Signed-off-by: Phil Sutter <phil@nwl.cc>
This commit is contained in:
Phil Sutter 2017-10-18 20:08:26 +02:00 committed by Stephen Hemminger
parent 1267c0b924
commit 572e893613
1 changed files with 2 additions and 0 deletions

View File

@ -784,6 +784,8 @@ static const char *proto_name(int protocol)
return "sctp"; return "sctp";
case IPPROTO_DCCP: case IPPROTO_DCCP:
return "dccp"; return "dccp";
case IPPROTO_ICMPV6:
return "icmp6";
} }
return "???"; return "???";