Commit 2e7e805d authored by Eric Dumazet's avatar Eric Dumazet Committed by Stephen Hemminger

ss: better 32bit support

Socket cookies are 64bit, even if ss happens to be
a 32bit binary, running on a 64 bit host.
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
parent 7871f7db
...@@ -679,9 +679,9 @@ static inline char *sock_addr_get_str(const inet_prefix *prefix) ...@@ -679,9 +679,9 @@ static inline char *sock_addr_get_str(const inet_prefix *prefix)
return tmp; 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[] = { static const char *sstate_name[] = {
......
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