|
@@ -68,7 +68,7 @@ void inet_bind_hash(struct sock *sk, struct inet_bind_bucket *tb,
|
|
|
*/
|
|
|
static void __inet_put_port(struct sock *sk)
|
|
|
{
|
|
|
- struct inet_hashinfo *hashinfo = sk->sk_prot->hashinfo;
|
|
|
+ struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo;
|
|
|
const int bhash = inet_bhashfn(inet_sk(sk)->num, hashinfo->bhash_size);
|
|
|
struct inet_bind_hashbucket *head = &hashinfo->bhash[bhash];
|
|
|
struct inet_bind_bucket *tb;
|
|
@@ -318,7 +318,7 @@ static inline u32 inet_sk_port_offset(const struct sock *sk)
|
|
|
|
|
|
void __inet_hash_nolisten(struct sock *sk)
|
|
|
{
|
|
|
- struct inet_hashinfo *hashinfo = sk->sk_prot->hashinfo;
|
|
|
+ struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo;
|
|
|
struct hlist_head *list;
|
|
|
rwlock_t *lock;
|
|
|
struct inet_ehash_bucket *head;
|
|
@@ -339,7 +339,7 @@ EXPORT_SYMBOL_GPL(__inet_hash_nolisten);
|
|
|
|
|
|
static void __inet_hash(struct sock *sk)
|
|
|
{
|
|
|
- struct inet_hashinfo *hashinfo = sk->sk_prot->hashinfo;
|
|
|
+ struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo;
|
|
|
struct hlist_head *list;
|
|
|
rwlock_t *lock;
|
|
|
|
|
@@ -372,7 +372,7 @@ EXPORT_SYMBOL_GPL(inet_hash);
|
|
|
void inet_unhash(struct sock *sk)
|
|
|
{
|
|
|
rwlock_t *lock;
|
|
|
- struct inet_hashinfo *hashinfo = sk->sk_prot->hashinfo;
|
|
|
+ struct inet_hashinfo *hashinfo = sk->sk_prot->h.hashinfo;
|
|
|
|
|
|
if (sk_unhashed(sk))
|
|
|
goto out;
|