aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2017-10-18 20:08:26 +0200
committerStephen Hemminger <sthemmin@microsoft.com>2017-10-21 15:00:16 +0200
commit572e8936130440d0e180cf62ed55fface2ae8719 (patch)
treeb516f1e38f4f146bc5152f3e26e4c2d1bd211538
parent1267c0b924de0297510efd48f8f849af774be369 (diff)
downloadplatform_external_iproute2-572e8936130440d0e180cf62ed55fface2ae8719.tar.gz
platform_external_iproute2-572e8936130440d0e180cf62ed55fface2ae8719.tar.bz2
platform_external_iproute2-572e8936130440d0e180cf62ed55fface2ae8719.zip
ss: Detect IPPROTO_ICMPV6 sockets
Prefix IPPROTO_ICMPV6 sockets with 'icmp6' instead of '???'. Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r--misc/ss.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/ss.c b/misc/ss.c
index e37aba60..b5c6bbc0 100644
--- 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 "???";