]> git.hungrycats.org Git - linux/commitdiff
[IPV4/IPV6]: Fix one more inappropriate use of inet6_sk()->ipv6only
authorHideaki Yoshifuji <yoshfuji@linux-ipv6.org>
Sat, 1 Nov 2003 15:13:20 +0000 (07:13 -0800)
committerDavid S. Miller <davem@nuts.ninka.net>
Sat, 1 Nov 2003 15:13:20 +0000 (07:13 -0800)
net/ipv4/tcp_ipv4.c

index 3d115974b3be38a9ec4f734105370624569fd1c6..46a61776ded411534532f7751a41bbf20535d3a3 100644 (file)
@@ -187,7 +187,7 @@ static inline int tcp_bind_conflict(struct sock *sk, struct tcp_bind_bucket *tb)
 
        sk_for_each_bound(sk2, node, &tb->owners) {
                if (sk != sk2 &&
-                   !ipv6_only_sock(sk2) &&
+                   !tcp_v6_ipv6only(sk2) &&
                    (!sk->sk_bound_dev_if ||
                     !sk2->sk_bound_dev_if ||
                     sk->sk_bound_dev_if == sk2->sk_bound_dev_if)) {