34 lines
1.0 KiB
Diff
34 lines
1.0 KiB
Diff
From e12d0c929cf5f4266f745063696dd291cb6f06a4 Mon Sep 17 00:00:00 2001
|
|
From: Mathieu Schroeter <mathieu@schroetersa.ch>
|
|
Date: Tue, 8 Aug 2023 23:42:58 +0200
|
|
Subject: ss: print unix socket "ports" as unsigned int (inode)
|
|
|
|
Conflict:NA
|
|
Reference:https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit?id=e12d0c929cf5f4266f745063696dd291cb6f06a4
|
|
|
|
Signed-off-by: Mathieu Schroeter <mathieu@schroetersa.ch>
|
|
Signed-off-by: David Ahern <dsahern@kernel.org>
|
|
---
|
|
misc/ss.c | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/misc/ss.c b/misc/ss.c
|
|
index baa835149..13b2523f4 100644
|
|
--- a/misc/ss.c
|
|
+++ b/misc/ss.c
|
|
@@ -4073,9 +4073,9 @@ static void unix_stats_print(struct sockstat *s, struct filter *f)
|
|
sock_state_print(s);
|
|
|
|
sock_addr_print(s->name ?: "*", " ",
|
|
- int_to_str(s->lport, port_name), NULL);
|
|
+ uint_to_str(s->lport, port_name), NULL);
|
|
sock_addr_print(s->peer_name ?: "*", " ",
|
|
- int_to_str(s->rport, port_name), NULL);
|
|
+ uint_to_str(s->rport, port_name), NULL);
|
|
|
|
proc_ctx_print(s);
|
|
}
|
|
--
|
|
cgit
|
|
|