Lines Matching refs:sk2
412 struct sock *sk2; in __inet_check_established() local
418 sk_nulls_for_each(sk2, node, &head->chain) { in __inet_check_established()
419 if (sk2->sk_hash != hash) in __inet_check_established()
422 if (likely(INET_MATCH(sk2, net, acookie, in __inet_check_established()
424 if (sk2->sk_state == TCP_TIME_WAIT) { in __inet_check_established()
425 tw = inet_twsk(sk2); in __inet_check_established()
426 if (twsk_unique(sk, sk2, twp)) in __inet_check_established()
519 struct sock *sk2; in inet_reuseport_add_sock() local
522 sk_for_each_rcu(sk2, &ilb->head) { in inet_reuseport_add_sock()
523 if (sk2 != sk && in inet_reuseport_add_sock()
524 sk2->sk_family == sk->sk_family && in inet_reuseport_add_sock()
525 ipv6_only_sock(sk2) == ipv6_only_sock(sk) && in inet_reuseport_add_sock()
526 sk2->sk_bound_dev_if == sk->sk_bound_dev_if && in inet_reuseport_add_sock()
527 inet_csk(sk2)->icsk_bind_hash == tb && in inet_reuseport_add_sock()
528 sk2->sk_reuseport && uid_eq(uid, sock_i_uid(sk2)) && in inet_reuseport_add_sock()
529 inet_rcv_saddr_equal(sk, sk2, false)) in inet_reuseport_add_sock()
530 return reuseport_add_sock(sk, sk2, in inet_reuseport_add_sock()