Home
last modified time | relevance | path

Searched refs:sk_family (Results 1 – 25 of 118) sorted by relevance

12345

/linux-6.1.9/net/ipv4/
Dinet_hashtables.c49 if (sk->sk_family == AF_INET6 && in sk_ehashfn()
112 tb->family = sk->sk_family; in inet_bind2_bucket_init()
113 if (sk->sk_family == AF_INET6) in inet_bind2_bucket_init()
151 if (sk->sk_family != tb2->family) in inet_bind2_bucket_addr_match()
154 if (sk->sk_family == AF_INET6) in inet_bind2_bucket_addr_match()
300 if (sk->sk_family == AF_INET6) in inet_lhash2_bucket_sk()
327 if (sk->sk_family == PF_INET) in compute_score()
610 if (sk->sk_family == AF_INET) { in inet_ehash_lookup_by_sk()
617 else if (sk->sk_family == AF_INET6) { in inet_ehash_lookup_by_sk()
707 sk2->sk_family == sk->sk_family && in inet_reuseport_add_sock()
[all …]
Dudp_tunnel_core.c92 ti.sa_family = sk->sk_family; in udp_tunnel_push_rx_port()
106 ti.sa_family = sk->sk_family; in udp_tunnel_drop_rx_port()
122 ti.sa_family = sk->sk_family; in udp_tunnel_notify_add_rx_port()
142 ti.sa_family = sk->sk_family; in udp_tunnel_notify_del_rx_port()
Dudp_bpf.c17 if (sk->sk_family == AF_INET6) in sk_udp_recvmsg()
140 int family = sk->sk_family == AF_INET ? UDP_BPF_IPV4 : UDP_BPF_IPV6; in udp_bpf_update_proto()
148 if (sk->sk_family == AF_INET6) in udp_bpf_update_proto()
Dping.c208 sk->sk_family == AF_INET) { in ping_lookup()
218 sk->sk_family == AF_INET6) { in ping_lookup()
271 if (sk->sk_family == AF_INET6) in ping_init_sock()
322 if (sk->sk_family == AF_INET) { in ping_check_bind_addr()
351 } else if (sk->sk_family == AF_INET6) { in ping_check_bind_addr()
456 if (sk->sk_family == AF_INET && isk->inet_rcv_saddr) in ping_bind()
459 if (sk->sk_family == AF_INET6 && !ipv6_addr_any(&sk->sk_v6_rcv_saddr)) in ping_bind()
470 if (sk->sk_family == AF_INET6) in ping_bind()
870 int family = sk->sk_family; in ping_recvmsg()
1058 sk->sk_family == state->family) in ping_get_first()
/linux-6.1.9/include/trace/events/
Dsock.h169 __entry->family = sk->sk_family;
181 if (sk->sk_family == AF_INET6) {
230 __entry->family = sk->sk_family;
242 if (sk->sk_family == AF_INET6) {
Dtcp.h28 if (sk->sk_family == AF_INET6) { \
79 __entry->family = sk->sk_family;
147 __entry->family = sk->sk_family;
217 __entry->family = sk->sk_family;
277 __entry->family = sk->sk_family;
Dnet_probe_common.h23 if (sk->sk_family == AF_INET6) { \
/linux-6.1.9/net/core/
Dsock.c347 switch (sk->sk_family) { in sk_error_report()
456 switch (sk->sk_family) { in sock_needs_netstamp()
762 switch (sk->sk_family) { in sk_mc_loop()
1448 if (sk->sk_family == PF_INET || sk->sk_family == PF_INET6) { in sk_setsockopt()
1453 } else if (sk->sk_family != PF_RDS) { in sk_setsockopt()
1655 v.val = sk->sk_family; in sk_getsockopt()
1971 af_family_kern_slock_key_strings[sk->sk_family], in sock_lock_init()
1972 af_family_kern_slock_keys + sk->sk_family, in sock_lock_init()
1973 af_family_kern_key_strings[sk->sk_family], in sock_lock_init()
1974 af_family_kern_keys + sk->sk_family); in sock_lock_init()
[all …]
/linux-6.1.9/security/apparmor/include/
Dnet.h68 DEFINE_AUDIT_NET(NAME, OP, SK, (SK)->sk_family, (SK)->sk_type, \
101 return aa_profile_af_perm(profile, sa, request, sk->sk_family, in aa_profile_af_sk_perm()
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_tcp_estats.c76 #define sk_family __sk_common.skc_family macro
217 if (_(sk->sk_family) == AF_INET6) in tcp_estats_conn_id_init()
Dbpf_iter_bpf_sk_storage_map.c30 if (sk->sk_family == AF_INET6) in rw_bpf_sk_storage_map()
Dbpf_iter_setsockopt.c50 if (sk->sk_family != AF_INET6 || in change_tcp_cc()
Dbpf_iter_udp4.c47 if (inet->sk.sk_family == AF_INET6) in dump_udp4()
Dbpf_tracing_net.h74 #define sk_family __sk_common.skc_family macro
/linux-6.1.9/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_cm.c104 switch (sk->sk_family) { in chtls_find_netdev()
489 if (sk->sk_family == AF_INET) in chtls_destroy_sock()
679 stid = cxgb4_alloc_stid(cdev->tids, sk->sk_family, ctx); in chtls_listen_start()
687 if (sk->sk_family == PF_INET) { in chtls_listen_start()
722 cxgb4_free_stid(cdev->tids, stid, sk->sk_family); in chtls_listen_start()
743 cdev->lldi->rxq_ids[0], sk->sk_family == PF_INET6); in chtls_listen_stop()
746 if (sk->sk_family == PF_INET6) { in chtls_listen_stop()
779 cxgb4_free_stid(cdev->tids, stid, listen_ctx->lsk->sk_family); in chtls_pass_open_rpl()
802 cxgb4_free_stid(cdev->tids, stid, listen_ctx->lsk->sk_family); in chtls_close_listsrv_rpl()
843 cxgb4_remove_tid(tids, csk->port_id, tid, sk->sk_family); in chtls_release_resources()
[all …]
/linux-6.1.9/net/atm/
Dproc.c75 return !family || (sk->sk_family == family); in compare_family()
187 switch (sk->sk_family) { in vcc_info()
195 seq_printf(seq, "%3d", sk->sk_family); in vcc_info()
/linux-6.1.9/net/sctp/
Dbind_addr.c378 if (sctp_opt2sk(bp_sp)->sk_family == AF_INET6) in sctp_bind_addr_conflict()
380 else if (sctp_opt2sk(addr_sp)->sk_family == AF_INET6) in sctp_bind_addr_conflict()
495 fam = sk->sk_family; in sctp_is_any()
Ddiag.c39 r->idiag_family = sk->sk_family; in inet_diag_msg_sctpasoc_fill()
46 if (sk->sk_family == AF_INET6) { in inet_diag_msg_sctpasoc_fill()
353 if (r->sdiag_family != AF_UNSPEC && sk->sk_family != r->sdiag_family) in sctp_sock_filter()
380 sk->sk_family != r->sdiag_family) in sctp_ep_dump()
/linux-6.1.9/net/sunrpc/
Dsvcsock.c88 switch (sk->sk_family) { in svc_reclassify_socket()
148 switch (svsk->sk_sk->sk_family) { in svc_set_cmsg_data()
191 switch (sk->sk_family) { in svc_one_sock_name()
208 sk->sk_family); in svc_one_sock_name()
670 switch (svsk->sk_sk->sk_family) { in svc_udp_init()
1307 err = svc_register(serv, sock_net(sock->sk), inet->sk_family, in svc_setup_socket()
1380 if ((so->sk->sk_family != PF_INET) && (so->sk->sk_family != PF_INET6)) in svc_addsock()
/linux-6.1.9/kernel/bpf/
Dreuseport_array.c206 if (nsk->sk_family != AF_INET && nsk->sk_family != AF_INET6) in reuseport_array_update_check()
/linux-6.1.9/include/linux/
Dipv6.h345 #define ipv6_sk_rxinfo(sk) ((sk)->sk_family == PF_INET6 && \
350 if (sk->sk_family == AF_INET6) in inet6_rcv_saddr()
Dsock_diag.h51 switch (sk->sk_family) { in sock_diag_destroy_group()
/linux-6.1.9/net/rds/
Dtcp_listen.c115 ret = sock_create_lite(sock->sk->sk_family, in rds_tcp_accept_one()
153 sock->sk->sk_family, in rds_tcp_accept_one()
/linux-6.1.9/net/mptcp/
Dmptcp_diag.c115 sk->sk_family != r->sdiag_family) in mptcp_diag_dump_listeners()
176 sk->sk_family != r->sdiag_family) in mptcp_diag_dump()
/linux-6.1.9/include/net/
Dinet_sock.h270 return sk->sk_family == AF_INET || sk->sk_family == AF_INET6; in sk_is_inet()

12345