/linux/net/vmw_vsock/ |
H A D | vsock_bpf.c | 66 if (sk->sk_type == SOCK_STREAM || sk->sk_type == SOCK_SEQPACKET) in __vsock_recvmsg() 68 else if (sk->sk_type == SOCK_DGRAM) in __vsock_recvmsg()
|
H A D | af_vsock.c | 464 switch (sk->sk_type) { in vsock_assign_transport() 502 if (sk->sk_type == SOCK_SEQPACKET) { in vsock_assign_transport() 747 /* sk->sk_type is normally set in sock_init_data, but only if sock is in __vsock_create() 752 sk->sk_type = type; in __vsock_create() 817 else if (sock_type_connectible(sk->sk_type)) in __vsock_release() 867 parent->sk_type, 0); in vsock_create_connected() 881 if (sk->sk_type == SOCK_SEQPACKET) in vsock_connectible_has_data() 1015 if (sock_type_connectible(sk->sk_type)) in vsock_shutdown() 1028 if (sock_type_connectible(sk->sk_type)) { in vsock_poll() 1086 } else if (sock_type_connectible(sk->sk_type)) { in vsock_poll() [all...] |
H A D | diag.c | 34 rep->vdiag_type = sk->sk_type; in sk_diag_fill()
|
/linux/net/ax25/ |
H A D | af_ax25.c | 182 s->sk->sk_type == type && s->sk->sk_state == TCP_LISTEN) { in ax25_find_listener() 209 s->sk->sk_type == type) { in ax25_get_socket() 232 if (s->sk && s->sk->sk_type != SOCK_SEQPACKET) in ax25_find_cb() 267 s->sk->sk_type == SOCK_RAW && in ax25_send_to_raw() 673 if (sk->sk_type == SOCK_SEQPACKET && in ax25_setsockopt() 809 if (sk->sk_type == SOCK_SEQPACKET && sk->sk_state != TCP_LISTEN) { in ax25_listen() 928 switch (osk->sk_type) { in ax25_make_new() 941 sk->sk_type = osk->sk_type; in ax25_make_new() 999 if (sk->sk_type in ax25_release() [all...] |
/linux/include/linux/ |
H A D | sock_diag.h | 59 if (sk->sk_type == SOCK_RAW) in sock_diag_destroy_group() 71 if (sk->sk_type == SOCK_RAW) in sock_diag_destroy_group()
|
/linux/net/llc/ |
H A 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() 494 if (unlikely(sk->sk_type != SOCK_STREAM)) in llc_ui_connect() 562 if (unlikely(sk->sk_type != SOCK_STREAM)) in llc_ui_listen() 707 if (unlikely(sk->sk_type != SOCK_STREAM)) in llc_ui_accept() 776 if (unlikely(sk->sk_type == SOCK_STREAM && sk->sk_state == TCP_LISTEN)) in llc_ui_recvmsg() 835 if (sk->sk_type == SOCK_STREAM && sk->sk_state == TCP_CLOSE) { in llc_ui_recvmsg() 887 if (sk->sk_type != SOCK_STREAM) in llc_ui_recvmsg() 986 if (sk->sk_type == SOCK_DGRAM || addr->sllc_ua) { in llc_ui_sendmsg() 1005 if (!(sk->sk_type == SOCK_STREAM && !addr->sllc_ua)) in llc_ui_sendmsg()
|
H A D | llc_conn.c | 103 if (sk->sk_type == SOCK_STREAM && in llc_conn_state_process() 138 if (sk->sk_type == SOCK_STREAM && in llc_conn_state_process() 152 if (sk->sk_type == SOCK_STREAM && sk->sk_state == TCP_CLOSING) { in llc_conn_state_process() 540 sk->sk_type == SOCK_STREAM && sk->sk_state == TCP_LISTEN && in llc_listener_match()
|
H A D | llc_sap.c | 302 return sk->sk_type == SOCK_DGRAM && in llc_dgram_match() 361 return sk->sk_type == SOCK_DGRAM && in llc_mcast_match()
|
H A D | llc_if.c | 136 if (sk->sk_type != SOCK_STREAM || sk->sk_state != TCP_ESTABLISHED || in llc_send_disc()
|
H A D | llc_proc.c | 140 seq_printf(seq, "%2X %2X ", sk->sk_type, 0); in llc_seq_socket_show()
|
/linux/security/apparmor/include/ |
H A D | net.h | 72 DEFINE_AUDIT_NET(NAME, OP, SK, (SK)->sk_family, (SK)->sk_type, \ 108 sk->sk_type); in aa_profile_af_sk_perm()
|
/linux/net/bluetooth/rfcomm/ |
H A D | sock.c | 246 sk->sk_type = parent->sk_type; in rfcomm_sock_init() 350 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_bind() 395 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_connect() 436 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_listen() 481 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_accept() 680 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_setsockopt() 823 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_getsockopt()
|
/linux/net/nfc/ |
H A D | llcp_sock.c | 798 if (sk->sk_type == SOCK_DGRAM) { in llcp_sock_sendmsg() 874 if (sk->sk_type == SOCK_DGRAM && msg->msg_name) { in llcp_sock_recvmsg() 894 if (sk->sk_type == SOCK_STREAM || in llcp_sock_recvmsg() 895 sk->sk_type == SOCK_DGRAM || in llcp_sock_recvmsg() 896 sk->sk_type == SOCK_RAW) { in llcp_sock_recvmsg() 911 if (sk->sk_type == SOCK_SEQPACKET && (flags & MSG_TRUNC)) in llcp_sock_recvmsg() 988 sk->sk_type = type; in nfc_llcp_sock_alloc()
|
/linux/net/unix/ |
H A D | unix_bpf.c | 44 if (sk->sk_type == SOCK_DGRAM) in __unix_recvmsg() 149 if (sk->sk_type != SOCK_DGRAM) in unix_dgram_bpf_update_proto()
|
H A D | af_unix.c | 211 hash ^= sk->sk_type; in unix_unbound_hash() 702 if (sk->sk_type == SOCK_STREAM || sk->sk_type == SOCK_SEQPACKET) { in unix_release_sock() 1142 if (sk->sk_type == type) in unix_find_bsd() 1225 new_hash = unix_abstract_hash(addr->name, addr->len, sk->sk_type); in unix_autobind() 1346 new_hash = unix_abstract_hash(addr->name, addr->len, sk->sk_type); in unix_bind_abstract() 1587 other = unix_find_other(net, sunaddr, addr_len, sk->sk_type); in unix_stream_connect() 1651 newsk->sk_type = sk->sk_type; in unix_stream_connect() 2053 sk->sk_type); in unix_dgram_sendmsg() 2086 if (sk->sk_type == SOCK_SEQPACKET) { in unix_dgram_sendmsg() 2117 if (sk->sk_type != SOCK_SEQPACKET) { in unix_dgram_sendmsg() [all …]
|
/linux/net/ipv6/ |
H A D | ipv6_sockglue.c | 65 if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_RAW) in ip6_ra_control() 434 if (sk->sk_type == SOCK_STREAM) in do_ipv6_setsockopt() 512 if (sk->sk_type == SOCK_STREAM) in do_ipv6_setsockopt() 581 if (sk->sk_type == SOCK_RAW) in do_ipv6_setsockopt() 742 if (sk->sk_type == SOCK_STREAM) { in do_ipv6_setsockopt() 987 if (level == SOL_IP && sk->sk_type != SOCK_RAW) in ipv6_setsockopt() 1137 if (sk->sk_type != SOCK_STREAM) in do_ipv6_getsockopt() 1477 if (level == SOL_IP && sk->sk_type != SOCK_RAW) in ipv6_getsockopt()
|
/linux/net/ipv4/ |
H A D | ip_sockglue.c | 350 if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num == IPPROTO_RAW) in ip_ra_control() 590 if (sk->sk_type == SOCK_STREAM) { in __ip_sock_set_tos() 974 if (sk->sk_type != SOCK_RAW && sk->sk_type != SOCK_DGRAM) in do_ip_setsockopt() 994 if (sk->sk_type != SOCK_RAW) in do_ip_setsockopt() 1019 if (sk->sk_type != SOCK_RAW) in do_ip_setsockopt() 1045 if (sk->sk_type == SOCK_STREAM) in do_ip_setsockopt() 1165 if (sk->sk_type == SOCK_STREAM) in do_ip_setsockopt() 1648 if (sk->sk_type != SOCK_STREAM) in do_ip_getsockopt()
|
/linux/net/bluetooth/ |
H A D | l2cap_sock.c | 287 if (sk->sk_type != SOCK_SEQPACKET && sk->sk_type != SOCK_STREAM) { in l2cap_sock_listen() 623 if (sk->sk_type != SOCK_SEQPACKET && sk->sk_type != SOCK_STREAM in l2cap_sock_getsockopt() 624 && sk->sk_type != SOCK_RAW) { in l2cap_sock_getsockopt() 1808 sk->sk_type = parent->sk_type; in l2cap_sock_init() 1832 switch (sk->sk_type) { in l2cap_sock_init() 1848 if (!disable_ertm && sk->sk_type == SOCK_STREAM) { in l2cap_sock_init()
|
H A D | sco.c | 535 sk->sk_type = parent->sk_type; in sco_sock_init() 611 if (sk->sk_type != SOCK_SEQPACKET) { in sco_sock_bind() 640 if (sk->sk_type != SOCK_SEQPACKET) in sco_sock_connect() 676 if (sk->sk_type != SOCK_SEQPACKET) { in sco_sock_listen()
|
/linux/kernel/bpf/ |
H A D | reuseport_array.c | 206 if (nsk->sk_type != SOCK_STREAM && nsk->sk_type != SOCK_DGRAM) in reuseport_array_update_check()
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | bpf_iter_unix.c | 45 sk->sk_type, in dump_unix()
|
/linux/net/iucv/ |
H A D | af_iucv.c | 240 if (sock->sk_type == SOCK_SEQPACKET) { in afiucv_hs_send() 444 sk->sk_type = parent->sk_type; in iucv_sock_init() 733 if (sk->sk_type != SOCK_STREAM && sk->sk_type != SOCK_SEQPACKET) in iucv_sock_connect() 923 if (sk->sk_type == SOCK_SEQPACKET && !(msg->msg_flags & MSG_EOR)) in iucv_sock_sendmsg() 1262 if (sk->sk_type == SOCK_SEQPACKET) { in iucv_sock_recvmsg() 1282 if (sk->sk_type == SOCK_STREAM) { in iucv_sock_recvmsg() 1330 if (sk->sk_type == SOCK_SEQPACKET && (flags & MSG_TRUNC)) in iucv_sock_recvmsg()
|
/linux/net/core/ |
H A D | datagram.c | 71 return sk->sk_type == SOCK_SEQPACKET || sk->sk_type == SOCK_STREAM; in connection_based() 709 if (sk && sk->sk_type == SOCK_STREAM) { in __zerocopy_sg_from_iter()
|
/linux/net/netrom/ |
H A 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() 788 if (sk->sk_type != SOCK_SEQPACKET) { in nr_accept()
|
/linux/net/appletalk/ |
H A D | atalk_proc.c | 179 s->sk_type, ntohs(at->src_net), at->src_node, at->src_port, in atalk_seq_socket_show()
|