]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ss: print unix socket "ports" as unsigned int (inode)
authorMathieu Schroeter <mathieu@schroetersa.ch>
Tue, 8 Aug 2023 21:42:58 +0000 (23:42 +0200)
committerDavid Ahern <dsahern@kernel.org>
Sun, 13 Aug 2023 16:24:42 +0000 (10:24 -0600)
Signed-off-by: Mathieu Schroeter <mathieu@schroetersa.ch>
Signed-off-by: David Ahern <dsahern@kernel.org>
misc/ss.c

index baa835149588c0653a347824589cfbf5985fc507..13b2523f47f0f5b0371e4c19ce392f1717e1f87c 100644 (file)
--- 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);
 }