Lines Matching refs:sk2

142 			struct sock *sk2 = tb->owners;  in tcp_v6_get_port()  local
147 for( ; sk2 != NULL; sk2 = sk2->bind_next) { in tcp_v6_get_port()
148 if (sk != sk2 && in tcp_v6_get_port()
150 !sk2->bound_dev_if || in tcp_v6_get_port()
151 sk->bound_dev_if == sk2->bound_dev_if)) { in tcp_v6_get_port()
153 !sk2->reuse || in tcp_v6_get_port()
154 sk2->state == TCP_LISTEN) { in tcp_v6_get_port()
156 if ((!sk2->rcv_saddr && !ipv6_only_sock(sk)) || in tcp_v6_get_port()
157 (sk2->family == AF_INET6 && in tcp_v6_get_port()
158 ipv6_addr_any(&sk2->net_pinfo.af_inet6.rcv_saddr) && in tcp_v6_get_port()
159 !(ipv6_only_sock(sk2) && addr_type == IPV6_ADDR_MAPPED)) || in tcp_v6_get_port()
162 …!(sk2->family == AF_INET6 ? ipv6_addr_type(&sk2->net_pinfo.af_inet6.rcv_saddr) == IPV6_ADDR_MAPPED… in tcp_v6_get_port()
163 (sk2->family == AF_INET6 && in tcp_v6_get_port()
165 sk2->state != TCP_TIME_WAIT ? in tcp_v6_get_port()
166 &sk2->net_pinfo.af_inet6.rcv_saddr : in tcp_v6_get_port()
169 !ipv6_only_sock(sk2) && in tcp_v6_get_port()
170 (!sk2->rcv_saddr || in tcp_v6_get_port()
172 sk->rcv_saddr == sk2->rcv_saddr))) in tcp_v6_get_port()
179 if (sk2 != NULL) in tcp_v6_get_port()
452 struct sock *sk2, **skp; in tcp_v6_check_established() local
457 for(skp = &(head + tcp_ehash_size)->chain; (sk2=*skp)!=NULL; skp = &sk2->next) { in tcp_v6_check_established()
458 tw = (struct tcp_tw_bucket*)sk2; in tcp_v6_check_established()
460 if(*((__u32 *)&(sk2->dport)) == ports && in tcp_v6_check_established()
461 sk2->family == PF_INET6 && in tcp_v6_check_established()
464 sk2->bound_dev_if == sk->bound_dev_if) { in tcp_v6_check_established()
473 sock_hold(sk2); in tcp_v6_check_established()
482 for(skp = &head->chain; (sk2=*skp)!=NULL; skp = &sk2->next) { in tcp_v6_check_established()
483 if(TCP_IPV6_MATCH(sk2, saddr, daddr, ports, dif)) in tcp_v6_check_established()
1659 struct sock *sk2; in tcp_v6_rcv() local
1661 sk2 = tcp_v6_lookup_listener(&skb->nh.ipv6h->daddr, ntohs(th->dest), tcp_v6_iif(skb)); in tcp_v6_rcv()
1662 if (sk2 != NULL) { in tcp_v6_rcv()
1666 sk = sk2; in tcp_v6_rcv()