]> err.no Git - linux-2.6/blobdiff - net/ipv6/inet6_hashtables.c
[IPV6]: Remove unused code in ndisc_send_redirect().
[linux-2.6] / net / ipv6 / inet6_hashtables.c
index 43f3993e1f304d009728a5d9100b1911d28c3543..c0c8d2d176823a74cf7d6db3bcf5cb4c4ab32ccc 100644 (file)
@@ -24,7 +24,7 @@
 
 void __inet6_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;
 
@@ -236,7 +236,7 @@ static inline u32 inet6_sk_port_offset(const struct sock *sk)
 int inet6_hash_connect(struct inet_timewait_death_row *death_row,
                       struct sock *sk)
 {
-       return __inet_hash_connect(death_row, sk,
+       return __inet_hash_connect(death_row, sk, inet6_sk_port_offset(sk),
                        __inet6_check_established, __inet6_hash);
 }