Home
last modified time | relevance | path

Searched refs:sk_reuseport (Results 1 – 16 of 16) sorted by relevance

/linux/net/ipv4/
H A Dinet_connection_sock.c187 if (!relax || (!reuseport_ok && sk->sk_reuseport && in inet_bind_conflict()
188 sk2->sk_reuseport && reuseport_cb_ok && in inet_bind_conflict()
192 } else if (!reuseport_ok || !sk->sk_reuseport || in inet_bind_conflict()
193 !sk2->sk_reuseport || !reuseport_cb_ok || in inet_bind_conflict()
434 if (!sk->sk_reuseport) in sk_reuseport_match()
468 if (sk->sk_reuseport) { in inet_csk_update_fastreuse()
483 if (sk->sk_reuseport) { in inet_csk_update_fastreuse()
H A Dinet_hashtables.c360 if (sk->sk_reuseport) { in inet_lookup_reuseport()
719 sk2->sk_reuseport && uid_eq(uid, sock_i_uid(sk2)) && in inet_reuseport_add_sock()
744 if (sk->sk_reuseport) { in __inet_hash()
750 if (IS_ENABLED(CONFIG_IPV6) && sk->sk_reuseport && in __inet_hash()
H A Dinet_timewait_sock.c206 tw->tw_reuseport = sk->sk_reuseport; in inet_twsk_alloc()
H A Dudp.c158 if (sk2->sk_reuseport && sk->sk_reuseport && in udp_lib_lport_inuse()
195 if (sk2->sk_reuseport && sk->sk_reuseport && in udp_lib_lport_inuse2()
222 sk2->sk_reuseport && uid_eq(uid, sock_i_uid(sk2)) && in udp_reuseport_add_sock()
322 if (sk->sk_reuseport && in udp_lib_get_port()
338 if (IS_ENABLED(CONFIG_IPV6) && sk->sk_reuseport && in udp_lib_get_port()
/linux/Documentation/bpf/libbpf/
H A Dprogram_types.rst158 …K_REUSEPORT`` | ``BPF_SK_REUSEPORT_SELECT_OR_MIGRATE`` | ``sk_reuseport/migrate`` …
160 … | ``BPF_SK_REUSEPORT_SELECT`` | ``sk_reuseport`` …
/linux/include/linux/
H A Dbpf_types.h65 BPF_PROG_TYPE(BPF_PROG_TYPE_SK_REUSEPORT, sk_reuseport,
/linux/net/core/
H A Dsock_reuseport.c691 if (!sk->sk_reuseport) in reuseport_attach_prog()
730 return sk->sk_reuseport ? -ENOENT : -EINVAL; in reuseport_detach_prog()
H A Dsock.c792 sk->sk_reuseport = true; in sock_set_reuseport()
1297 sk->sk_reuseport = valbool; in sk_setsockopt()
1730 v.val = sk->sk_reuseport; in sk_getsockopt()
/linux/net/sctp/
H A Dinput.c744 if (sk->sk_reuseport) { in __sctp_hash_endpoint()
760 !sk2->sk_reuseport) in __sctp_hash_endpoint()
865 if (sk->sk_reuseport) { in __sctp_rcv_lookup_endpoint()
H A Dsocket.c8423 (pp->fastreuseport && sk->sk_reuseport && in sctp_get_port_local()
8445 (sk->sk_reuseport && sk2->sk_reuseport && in sctp_get_port_local()
8476 if (sk->sk_reuseport) { in sctp_get_port_local()
8488 (!sk->sk_reuseport || !uid_eq(pp->fastuid, uid))) in sctp_get_port_local()
/linux/net/ipv6/
H A Dinet6_hashtables.c140 if (sk->sk_reuseport) { in inet6_lookup_reuseport()
/linux/net/mptcp/
H A Dsockopt.c312 sk->sk_reuseport = ssk->sk_reuseport; in mptcp_setsockopt_sol_socket()
/linux/include/net/
H A Dsock.h368 #define sk_reuseport __sk_common.skc_reuseport macro
840 if (IS_ENABLED(CONFIG_IPV6) && sk->sk_reuseport && in sk_add_node_rcu()
H A Dtcp.h534 if (sk->sk_reuseport) { in tcp_synq_overflow()
558 if (sk->sk_reuseport) { in tcp_synq_no_recent_overflow()
/linux/net/bpf/
H A Dtest_run.c1514 if (ctx.selected_sk->sk_reuseport && !ctx.no_reuseport) { in bpf_prog_test_run_sk_lookup()
/linux/net/smc/
H A Daf_smc.c438 smc->clcsock->sk->sk_reuseport = sk->sk_reuseport; in smc_bind()