Commit bbe32053 authored by Eric Dumazet's avatar Eric Dumazet Committed by Stephen Hemminger

ss: correct display of sk pointer

On 64bit arches, sk pointer was 32/32 reversed.
Signed-off-by: default avatarEric Dumazet <eric.dumazet@gmail.com>
parent f40554f6
......@@ -1393,9 +1393,10 @@ static int tcp_show_sock(struct nlmsghdr *nlh, struct filter *f)
if (r->idiag_uid)
printf(" uid:%u", (unsigned)r->idiag_uid);
printf(" ino:%u", r->idiag_inode);
printf(" sk:%08x", r->id.idiag_cookie[0]);
printf(" sk:");
if (r->id.idiag_cookie[1] != 0)
printf("%08x", r->id.idiag_cookie[1]);
printf("%08x", r->id.idiag_cookie[0]);
}
if (show_mem || show_tcpinfo) {
printf("\n\t");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment