Lines Matching refs:sk2
561 struct sock *sk2;
567 sk_nulls_for_each(sk2, node, &head->chain) {
568 if (sk2->sk_hash != hash)
571 if (likely(inet_match(net, sk2, acookie, ports, dif, sdif))) {
572 if (sk2->sk_state == TCP_TIME_WAIT) {
573 tw = inet_twsk(sk2);
574 if (twsk_unique(sk, sk2, twp))
715 struct sock *sk2;
718 sk_nulls_for_each_rcu(sk2, node, &ilb->nulls_head) {
719 if (sk2 != sk &&
720 sk2->sk_family == sk->sk_family &&
721 ipv6_only_sock(sk2) == ipv6_only_sock(sk) &&
722 sk2->sk_bound_dev_if == sk->sk_bound_dev_if &&
723 inet_csk(sk2)->icsk_bind_hash == tb &&
724 sk2->sk_reuseport && uid_eq(uid, sock_i_uid(sk2)) &&
725 inet_rcv_saddr_equal(sk, sk2, false))
726 return reuseport_add_sock(sk, sk2,