Lines Matching refs:sk2
465 struct sock *sk2;
471 sk_nulls_for_each(sk2, node, &head->chain) {
472 if (sk2->sk_hash != hash)
475 if (likely(INET_MATCH(net, sk2, acookie, ports, dif, sdif))) {
476 if (sk2->sk_state == TCP_TIME_WAIT) {
477 tw = inet_twsk(sk2);
478 if (twsk_unique(sk, sk2, twp))
619 struct sock *sk2;
622 sk_nulls_for_each_rcu(sk2, node, &ilb->nulls_head) {
623 if (sk2 != sk &&
624 sk2->sk_family == sk->sk_family &&
625 ipv6_only_sock(sk2) == ipv6_only_sock(sk) &&
626 sk2->sk_bound_dev_if == sk->sk_bound_dev_if &&
627 inet_csk(sk2)->icsk_bind_hash == tb &&
628 sk2->sk_reuseport && uid_eq(uid, sock_i_uid(sk2)) &&
629 inet_rcv_saddr_equal(sk, sk2, false))
630 return reuseport_add_sock(sk, sk2,