|
@@ -211,14 +211,14 @@ extern void inet_bind_hash(struct sock *sk, struct inet_bind_bucket *tb,
|
|
|
const unsigned short snum);
|
|
|
|
|
|
/* These can have wildcards, don't try too hard. */
|
|
|
-static inline int inet_lhashfn(const unsigned short num)
|
|
|
+static inline int inet_lhashfn(struct net *net, const unsigned short num)
|
|
|
{
|
|
|
return num & (INET_LHTABLE_SIZE - 1);
|
|
|
}
|
|
|
|
|
|
static inline int inet_sk_listen_hashfn(const struct sock *sk)
|
|
|
{
|
|
|
- return inet_lhashfn(inet_sk(sk)->num);
|
|
|
+ return inet_lhashfn(sock_net(sk), inet_sk(sk)->num);
|
|
|
}
|
|
|
|
|
|
/* Caller must disable local BH processing. */
|