Lines Matching refs:sk2
185 struct sock *sk2 = tb->owners; in tcp_bind_conflict() local
188 for( ; sk2 != NULL; sk2 = sk2->bind_next) { in tcp_bind_conflict()
189 if (sk != sk2 && in tcp_bind_conflict()
190 sk2->reuse <= 1 && in tcp_bind_conflict()
191 !ipv6_only_sock(sk2) && in tcp_bind_conflict()
193 !sk2->bound_dev_if || in tcp_bind_conflict()
194 sk->bound_dev_if == sk2->bound_dev_if)) { in tcp_bind_conflict()
196 !sk2->reuse || in tcp_bind_conflict()
197 sk2->state == TCP_LISTEN) { in tcp_bind_conflict()
198 if (!sk2->rcv_saddr || in tcp_bind_conflict()
200 (sk2->rcv_saddr == sk->rcv_saddr)) in tcp_bind_conflict()
205 return sk2 != NULL; in tcp_bind_conflict()
568 struct sock *sk2, **skp; in __tcp_v4_check_established() local
574 for(skp = &(head + tcp_ehash_size)->chain; (sk2=*skp) != NULL; in __tcp_v4_check_established()
575 skp = &sk2->next) { in __tcp_v4_check_established()
576 tw = (struct tcp_tw_bucket*)sk2; in __tcp_v4_check_established()
578 if(TCP_IPV4_MATCH(sk2, acookie, saddr, daddr, ports, dif)) { in __tcp_v4_check_established()
602 sock_hold(sk2); in __tcp_v4_check_established()
612 for(skp = &head->chain; (sk2=*skp)!=NULL; skp = &sk2->next) { in __tcp_v4_check_established()
613 if(TCP_IPV4_MATCH(sk2, acookie, saddr, daddr, ports, dif)) in __tcp_v4_check_established()
1810 struct sock *sk2; in tcp_v4_rcv() local
1812 sk2 = tcp_v4_lookup_listener(skb->nh.iph->daddr, ntohs(th->dest), tcp_v4_iif(skb)); in tcp_v4_rcv()
1813 if (sk2 != NULL) { in tcp_v4_rcv()
1817 sk = sk2; in tcp_v4_rcv()