Skip to contentSkip to conversation

ss: Detect IPPROTO_ICMPV6 sockets

PATCH New Phil Sutter 1 participant 1 message Oct 18, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ss: Detect IPPROTO_ICMPV6 sockets

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

---
 misc/ss.c | 2 ++
 1 file changed, 2 insertions(+)
misc/ss.c +2 -0
index e37aba6022eb4..b5c6bbc05766e 100644
@@ -784,6 +784,8 @@ static const char *proto_name(int protocol)
 		return "sctp";
 	case IPPROTO_DCCP:
 		return "dccp";
+	case IPPROTO_ICMPV6:
+		return "icmp6";
 	}
 
 	return "???";
Signature · 1 line
2.13.1