[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1426006607.11398.5.camel@edumazet-glaptop2.roam.corp.google.com>
Date: Tue, 10 Mar 2015 09:56:47 -0700
From: Eric Dumazet <eric.dumazet@...il.com>
To: Stephen Hemminger <shemming@...cade.com>
Cc: netdev <netdev@...r.kernel.org>
Subject: [PATCH iproute2] ss: better 32bit support
From: Eric Dumazet <edumazet@...gle.com>
Socket cookies are 64bit, even if ss happens to be
a 32bit binary, running on a 64 bit host.
Signed-off-by: Eric Dumazet <edumazet@...gle.com>
---
misc/ss.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/misc/ss.c b/misc/ss.c
index 21a4366..ba58894 100644
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -679,9 +679,9 @@ static inline char *sock_addr_get_str(const inet_prefix *prefix)
return tmp;
}
-static unsigned long cookie_sk_get(uint32_t *cookie)
+static unsigned long long cookie_sk_get(const uint32_t *cookie)
{
- return (((unsigned long)cookie[1] << 31) << 1) | cookie[0];
+ return (((unsigned long long)cookie[1] << 31) << 1) | cookie[0];
}
static const char *sstate_name[] = {
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists