/kernel/linux/linux-5.10/include/linux/ |
D | sock_diag.h | 53 if (sk->sk_type == SOCK_RAW) in sock_diag_destroy_group() 65 if (sk->sk_type == SOCK_RAW) in sock_diag_destroy_group()
|
/kernel/linux/linux-5.10/net/ax25/ |
D | af_ax25.c | 178 s->sk->sk_type == type && s->sk->sk_state == TCP_LISTEN) { in ax25_find_listener() 205 s->sk->sk_type == type) { in ax25_get_socket() 228 if (s->sk && s->sk->sk_type != SOCK_SEQPACKET) in ax25_find_cb() 263 s->sk->sk_type == SOCK_RAW && in ax25_send_to_raw() 669 if (sk->sk_type == SOCK_SEQPACKET && in ax25_setsockopt() 805 if (sk->sk_type == SOCK_SEQPACKET && sk->sk_state != TCP_LISTEN) { in ax25_listen() 923 switch (osk->sk_type) { in ax25_make_new() 936 sk->sk_type = osk->sk_type; in ax25_make_new() 994 if (sk->sk_type == SOCK_SEQPACKET) { in ax25_release() 1207 if (sk->sk_state == TCP_ESTABLISHED && sk->sk_type == SOCK_SEQPACKET) { in ax25_connect() [all …]
|
/kernel/linux/linux-5.10/net/unix/ |
D | af_unix.c | 547 if (sk->sk_type == SOCK_STREAM || sk->sk_type == SOCK_SEQPACKET) { in unix_release_sock() 936 addr->hash ^= sk->sk_type; in unix_autobind() 973 if (u->sk_type == type) in unix_find_other() 979 if (u->sk_type != type) { in unix_find_other() 1086 addr->hash = hash ^ sk->sk_type; in unix_bind() 1099 sk->sk_type, hash)) { in unix_bind() 1295 other = unix_find_other(net, sunaddr, addr_len, sk->sk_type, hash, &err); in unix_stream_connect() 1375 newsk->sk_type = sk->sk_type; in unix_stream_connect() 1451 if (ska->sk_type != SOCK_DGRAM) { in unix_socketpair() 1765 other = unix_find_other(net, sunaddr, namelen, sk->sk_type, in unix_dgram_sendmsg() [all …]
|
/kernel/linux/linux-5.10/security/apparmor/include/ |
D | net.h | 68 DEFINE_AUDIT_NET(NAME, OP, SK, (SK)->sk_family, (SK)->sk_type, \ 102 sk->sk_type); in aa_profile_af_sk_perm()
|
/kernel/linux/linux-5.10/net/llc/ |
D | af_llc.c | 111 else if (sk->sk_type == SOCK_STREAM) in llc_ui_header_len() 149 sk->sk_type = sock->type; in llc_ui_sk_init() 491 if (unlikely(sk->sk_type != SOCK_STREAM)) in llc_ui_connect() 559 if (unlikely(sk->sk_type != SOCK_STREAM)) in llc_ui_listen() 703 if (unlikely(sk->sk_type != SOCK_STREAM)) in llc_ui_accept() 772 if (unlikely(sk->sk_type == SOCK_STREAM && sk->sk_state == TCP_LISTEN)) in llc_ui_recvmsg() 831 if (sk->sk_type == SOCK_STREAM && sk->sk_state == TCP_CLOSE) { in llc_ui_recvmsg() 883 if (sk->sk_type != SOCK_STREAM) in llc_ui_recvmsg() 974 if (sk->sk_type == SOCK_DGRAM || addr->sllc_ua) { in llc_ui_sendmsg() 993 if (!(sk->sk_type == SOCK_STREAM && !addr->sllc_ua)) in llc_ui_sendmsg()
|
D | llc_conn.c | 102 if (sk->sk_type == SOCK_STREAM && in llc_conn_state_process() 137 if (sk->sk_type == SOCK_STREAM && in llc_conn_state_process() 151 if (sk->sk_type == SOCK_STREAM && sk->sk_state == TCP_CLOSING) { in llc_conn_state_process() 532 return sk->sk_type == SOCK_STREAM && sk->sk_state == TCP_LISTEN && in llc_listener_match()
|
D | llc_if.c | 136 if (sk->sk_type != SOCK_STREAM || sk->sk_state != TCP_ESTABLISHED || in llc_send_disc()
|
D | llc_sap.c | 301 return sk->sk_type == SOCK_DGRAM && in llc_dgram_match() 357 return sk->sk_type == SOCK_DGRAM && in llc_mcast_match()
|
D | llc_proc.c | 140 seq_printf(seq, "%2X %2X ", sk->sk_type, 0); in llc_seq_socket_show()
|
/kernel/linux/linux-5.10/net/bluetooth/rfcomm/ |
D | sock.c | 246 sk->sk_type = parent->sk_type; in rfcomm_sock_init() 357 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_bind() 401 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_connect() 438 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_listen() 483 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_accept() 684 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_setsockopt() 828 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_getsockopt()
|
/kernel/linux/linux-5.10/net/nfc/ |
D | llcp_sock.c | 797 if (sk->sk_type == SOCK_DGRAM) { in llcp_sock_sendmsg() 869 if (sk->sk_type == SOCK_DGRAM && msg->msg_name) { in llcp_sock_recvmsg() 889 if (sk->sk_type == SOCK_STREAM || in llcp_sock_recvmsg() 890 sk->sk_type == SOCK_DGRAM || in llcp_sock_recvmsg() 891 sk->sk_type == SOCK_RAW) { in llcp_sock_recvmsg() 906 if (sk->sk_type == SOCK_SEQPACKET && (flags & MSG_TRUNC)) in llcp_sock_recvmsg() 983 sk->sk_type = type; in nfc_llcp_sock_alloc()
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | ipv6_sockglue.c | 63 if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_RAW) in ip6_ra_control() 435 if (sk->sk_type == SOCK_RAW) in do_ipv6_setsockopt() 752 if (sk->sk_type == SOCK_STREAM) in do_ipv6_setsockopt() 802 if (sk->sk_type == SOCK_STREAM) in do_ipv6_setsockopt() 1007 if (level == SOL_IP && sk->sk_type != SOCK_RAW) in ipv6_setsockopt() 1158 if (sk->sk_type != SOCK_STREAM) in do_ipv6_getsockopt() 1481 if (level == SOL_IP && sk->sk_type != SOCK_RAW) in ipv6_getsockopt()
|
/kernel/linux/linux-5.10/net/bluetooth/ |
D | l2cap_sock.c | 301 if (sk->sk_type != SOCK_SEQPACKET && sk->sk_type != SOCK_STREAM) { in l2cap_sock_listen() 638 if (sk->sk_type != SOCK_SEQPACKET && sk->sk_type != SOCK_STREAM in l2cap_sock_getsockopt() 639 && sk->sk_type != SOCK_RAW) { in l2cap_sock_getsockopt() 1781 sk->sk_type = parent->sk_type; in l2cap_sock_init() 1805 switch (sk->sk_type) { in l2cap_sock_init() 1821 if (!disable_ertm && sk->sk_type == SOCK_STREAM) { in l2cap_sock_init()
|
D | sco.c | 462 sk->sk_type = parent->sk_type; in sco_sock_init() 544 if (sk->sk_type != SOCK_SEQPACKET) { in sco_sock_bind() 577 if (sk->sk_type != SOCK_SEQPACKET) { in sco_sock_connect() 621 if (sk->sk_type != SOCK_SEQPACKET) { in sco_sock_listen()
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | ip_sockglue.c | 343 if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num == IPPROTO_RAW) in ip_ra_control() 581 if (sk->sk_type == SOCK_STREAM) { in __ip_sock_set_tos() 1037 if (sk->sk_type != SOCK_RAW && sk->sk_type != SOCK_DGRAM) in do_ip_setsockopt() 1055 if (sk->sk_type != SOCK_RAW) { in do_ip_setsockopt() 1062 if (sk->sk_type != SOCK_RAW) { in do_ip_setsockopt() 1087 if (sk->sk_type == SOCK_STREAM) in do_ip_setsockopt() 1140 if (sk->sk_type == SOCK_STREAM) in do_ip_setsockopt() 1691 if (sk->sk_type != SOCK_STREAM) in do_ip_getsockopt()
|
D | tcp_diag.c | 26 } else if (sk->sk_type == SOCK_STREAM) { in tcp_diag_get_info()
|
/kernel/linux/linux-5.10/kernel/bpf/ |
D | reuseport_array.c | 223 if (nsk->sk_type != SOCK_STREAM && nsk->sk_type != SOCK_DGRAM) in reuseport_array_update_check()
|
/kernel/linux/linux-5.10/net/core/ |
D | datagram.c | 72 return sk->sk_type == SOCK_SEQPACKET || sk->sk_type == SOCK_STREAM; in connection_based() 647 if (sk && sk->sk_type == SOCK_STREAM) { in __zerocopy_sg_from_iter()
|
/kernel/linux/linux-5.10/net/iucv/ |
D | af_iucv.c | 256 if (sock->sk_type == SOCK_SEQPACKET) { in afiucv_hs_send() 468 sk->sk_type = parent->sk_type; in iucv_sock_init() 756 if (sk->sk_type != SOCK_STREAM && sk->sk_type != SOCK_SEQPACKET) in iucv_sock_connect() 946 if (sk->sk_type == SOCK_SEQPACKET && !(msg->msg_flags & MSG_EOR)) in iucv_sock_sendmsg() 1282 if (sk->sk_type == SOCK_SEQPACKET) { in iucv_sock_recvmsg() 1305 if (sk->sk_type == SOCK_STREAM) { in iucv_sock_recvmsg() 1353 if (sk->sk_type == SOCK_SEQPACKET && (flags & MSG_TRUNC)) in iucv_sock_recvmsg()
|
/kernel/linux/linux-5.10/net/vmw_vsock/ |
D | diag.c | 34 rep->vdiag_type = sk->sk_type; in sk_diag_fill()
|
D | af_vsock.c | 439 switch (sk->sk_type) { in vsock_assign_transport() 716 sk->sk_type = type; in __vsock_create() 777 else if (sk->sk_type == SOCK_STREAM) in __vsock_release() 825 parent->sk_type, 0); in vsock_create_connected() 939 if (sk->sk_type == SOCK_STREAM) in vsock_shutdown() 952 if (sk->sk_type == SOCK_STREAM) { in vsock_shutdown()
|
/kernel/linux/linux-5.10/net/appletalk/ |
D | atalk_proc.c | 179 s->sk_type, ntohs(at->src_net), at->src_node, at->src_port, in atalk_seq_socket_show()
|
/kernel/linux/linux-5.10/net/netrom/ |
D | af_netrom.c | 478 if (osk->sk_type != SOCK_SEQPACKET) in nr_make_new() 489 sk->sk_type = osk->sk_type; in nr_make_new() 783 if (sk->sk_type != SOCK_SEQPACKET) { in nr_accept()
|
/kernel/linux/linux-5.10/net/xdp/ |
D | xsk_diag.c | 109 msg->xdiag_type = sk->sk_type; in xsk_diag_fill()
|
/kernel/linux/linux-5.10/net/netlink/ |
D | diag.c | 59 rep->ndiag_type = sk->sk_type; in sk_diag_fill()
|