/Linux-v4.19/include/linux/ |
D | sock_diag.h | 41 if (sk->sk_type == SOCK_RAW) in sock_diag_destroy_group() 53 if (sk->sk_type == SOCK_RAW) in sock_diag_destroy_group()
|
/Linux-v4.19/net/ax25/ |
D | af_ax25.c | 165 s->sk->sk_type == type && s->sk->sk_state == TCP_LISTEN) { in ax25_find_listener() 192 s->sk->sk_type == type) { in ax25_get_socket() 215 if (s->sk && s->sk->sk_type != SOCK_SEQPACKET) in ax25_find_cb() 250 s->sk->sk_type == SOCK_RAW && in ax25_send_to_raw() 649 if (sk->sk_type == SOCK_SEQPACKET && in ax25_setsockopt() 778 if (sk->sk_type == SOCK_SEQPACKET && sk->sk_state != TCP_LISTEN) { in ax25_listen() 894 switch (osk->sk_type) { in ax25_make_new() 907 sk->sk_type = osk->sk_type; in ax25_make_new() 963 if (sk->sk_type == SOCK_SEQPACKET) { in ax25_release() 1165 if (sk->sk_state == TCP_ESTABLISHED && sk->sk_type == SOCK_SEQPACKET) { in ax25_connect() [all …]
|
/Linux-v4.19/security/apparmor/include/ |
D | net.h | 72 DEFINE_AUDIT_NET(NAME, OP, SK, (SK)->sk_family, (SK)->sk_type, \ 99 sk->sk_type); in aa_profile_af_sk_perm()
|
/Linux-v4.19/net/unix/ |
D | af_unix.c | 542 if (sk->sk_type == SOCK_STREAM || sk->sk_type == SOCK_SEQPACKET) { in unix_release_sock() 888 addr->hash ^= sk->sk_type; in unix_autobind() 925 if (u->sk_type == type) in unix_find_other() 931 if (u->sk_type != type) { in unix_find_other() 1038 addr->hash = hash ^ sk->sk_type; in unix_bind() 1051 sk->sk_type, hash)) { in unix_bind() 1246 other = unix_find_other(net, sunaddr, addr_len, sk->sk_type, hash, &err); in unix_stream_connect() 1326 newsk->sk_type = sk->sk_type; in unix_stream_connect() 1388 if (ska->sk_type != SOCK_DGRAM) { in unix_socketpair() 1702 other = unix_find_other(net, sunaddr, namelen, sk->sk_type, in unix_dgram_sendmsg() [all …]
|
/Linux-v4.19/net/llc/ |
D | af_llc.c | 103 else if (sk->sk_type == SOCK_STREAM) in llc_ui_header_len() 137 sk->sk_type = sock->type; in llc_ui_sk_init() 461 if (unlikely(sk->sk_type != SOCK_STREAM)) in llc_ui_connect() 529 if (unlikely(sk->sk_type != SOCK_STREAM)) in llc_ui_listen() 673 if (unlikely(sk->sk_type != SOCK_STREAM)) in llc_ui_accept() 743 if (unlikely(sk->sk_type == SOCK_STREAM && sk->sk_state == TCP_LISTEN)) in llc_ui_recvmsg() 802 if (sk->sk_type == SOCK_STREAM && sk->sk_state == TCP_CLOSE) { in llc_ui_recvmsg() 854 if (sk->sk_type != SOCK_STREAM) in llc_ui_recvmsg() 947 if (sk->sk_type == SOCK_DGRAM || addr->sllc_ua) { in llc_ui_sendmsg() 963 if (!(sk->sk_type == SOCK_STREAM && !addr->sllc_ua)) in llc_ui_sendmsg()
|
D | llc_if.c | 132 if (sk->sk_type != SOCK_STREAM || sk->sk_state != TCP_ESTABLISHED || in llc_send_disc()
|
D | llc_sap.c | 306 return sk->sk_type == SOCK_DGRAM && in llc_dgram_match() 362 return sk->sk_type == SOCK_DGRAM && in llc_mcast_match()
|
D | llc_conn.c | 114 if (sk->sk_type == SOCK_STREAM && in llc_conn_state_process() 153 if (sk->sk_type == SOCK_STREAM && in llc_conn_state_process() 167 if (sk->sk_type == SOCK_STREAM && sk->sk_state == TCP_CLOSING) { in llc_conn_state_process() 565 return sk->sk_type == SOCK_STREAM && sk->sk_state == TCP_LISTEN && in llc_listener_match()
|
D | llc_proc.c | 140 seq_printf(seq, "%2X %2X ", sk->sk_type, 0); in llc_seq_socket_show()
|
/Linux-v4.19/net/bluetooth/rfcomm/ |
D | sock.c | 249 sk->sk_type = parent->sk_type; in rfcomm_sock_init() 360 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_bind() 404 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_connect() 441 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_listen() 486 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_accept() 711 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_setsockopt() 855 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_getsockopt()
|
/Linux-v4.19/net/ipv6/ |
D | ipv6_sockglue.c | 67 if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_RAW) in ip6_ra_control() 178 if (sk->sk_type == SOCK_RAW) in do_ipv6_setsockopt() 558 if (sk->sk_type == SOCK_STREAM) in do_ipv6_setsockopt() 608 if (sk->sk_type == SOCK_STREAM) in do_ipv6_setsockopt() 927 if (level == SOL_IP && sk->sk_type != SOCK_RAW) in ipv6_setsockopt() 950 if (level == SOL_IP && sk->sk_type != SOCK_RAW) { in compat_ipv6_setsockopt() 1056 if (sk->sk_type != SOCK_STREAM) in do_ipv6_getsockopt() 1366 if (level == SOL_IP && sk->sk_type != SOCK_RAW) in ipv6_getsockopt() 1396 if (level == SOL_IP && sk->sk_type != SOCK_RAW) { in compat_ipv6_getsockopt()
|
/Linux-v4.19/net/nfc/ |
D | llcp_sock.c | 778 if (sk->sk_type == SOCK_DGRAM) { in llcp_sock_sendmsg() 850 if (sk->sk_type == SOCK_DGRAM && msg->msg_name) { in llcp_sock_recvmsg() 870 if (sk->sk_type == SOCK_STREAM || in llcp_sock_recvmsg() 871 sk->sk_type == SOCK_DGRAM || in llcp_sock_recvmsg() 872 sk->sk_type == SOCK_RAW) { in llcp_sock_recvmsg() 887 if (sk->sk_type == SOCK_SEQPACKET && (flags & MSG_TRUNC)) in llcp_sock_recvmsg() 966 sk->sk_type = type; in nfc_llcp_sock_alloc()
|
D | llcp_core.c | 359 if (tmp_sock->sk.sk_type == SOCK_STREAM && in nfc_llcp_sock_from_sn() 363 if (tmp_sock->sk.sk_type == SOCK_DGRAM && in nfc_llcp_sock_from_sn() 855 if (llcp_sock == NULL || llcp_sock->sk.sk_type != SOCK_DGRAM) in nfc_llcp_recv_ui() 936 new_sk = nfc_llcp_sock_alloc(NULL, parent->sk_type, GFP_ATOMIC, 0); in nfc_llcp_recv_connect()
|
/Linux-v4.19/net/bluetooth/ |
D | l2cap_sock.c | 268 if (sk->sk_type != SOCK_SEQPACKET && sk->sk_type != SOCK_STREAM) { in l2cap_sock_listen() 562 if (sk->sk_type != SOCK_SEQPACKET && sk->sk_type != SOCK_STREAM in l2cap_sock_getsockopt() 563 && sk->sk_type != SOCK_RAW) { in l2cap_sock_getsockopt() 1521 sk->sk_type = parent->sk_type; in l2cap_sock_init() 1545 switch (sk->sk_type) { in l2cap_sock_init() 1561 if (!disable_ertm && sk->sk_type == SOCK_STREAM) { in l2cap_sock_init()
|
D | sco.c | 457 sk->sk_type = parent->sk_type; in sco_sock_init() 539 if (sk->sk_type != SOCK_SEQPACKET) { in sco_sock_bind() 568 if (sk->sk_type != SOCK_SEQPACKET) in sco_sock_connect() 603 if (sk->sk_type != SOCK_SEQPACKET) { in sco_sock_listen()
|
/Linux-v4.19/net/ipv4/ |
D | ip_sockglue.c | 344 if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num == IPPROTO_RAW) in ip_ra_control() 738 if (sk->sk_type != SOCK_RAW && sk->sk_type != SOCK_DGRAM) in do_ip_setsockopt() 746 if (sk->sk_type == SOCK_STREAM) { in do_ip_setsockopt() 764 if (sk->sk_type != SOCK_RAW) { in do_ip_setsockopt() 771 if (sk->sk_type != SOCK_RAW) { in do_ip_setsockopt() 791 if (sk->sk_type == SOCK_STREAM) in do_ip_setsockopt() 845 if (sk->sk_type == SOCK_STREAM) in do_ip_setsockopt() 1492 if (sk->sk_type != SOCK_STREAM) in do_ip_getsockopt()
|
D | tcp_diag.c | 30 } else if (sk->sk_type == SOCK_STREAM) { in tcp_diag_get_info()
|
/Linux-v4.19/kernel/bpf/ |
D | reuseport_array.c | 225 if (nsk->sk_type != SOCK_STREAM && nsk->sk_type != SOCK_DGRAM) in reuseport_array_update_check()
|
/Linux-v4.19/net/iucv/ |
D | af_iucv.c | 363 if (sock->sk_type == SOCK_SEQPACKET) { in afiucv_hs_send() 553 sk->sk_type = parent->sk_type; in iucv_sock_init() 884 if (sk->sk_type != SOCK_STREAM && sk->sk_type != SOCK_SEQPACKET) in iucv_sock_connect() 1074 if (sk->sk_type == SOCK_SEQPACKET && !(msg->msg_flags & MSG_EOR)) in iucv_sock_sendmsg() 1410 if (sk->sk_type == SOCK_SEQPACKET) { in iucv_sock_recvmsg() 1433 if (sk->sk_type == SOCK_STREAM) { in iucv_sock_recvmsg() 1481 if (sk->sk_type == SOCK_SEQPACKET && (flags & MSG_TRUNC)) in iucv_sock_recvmsg() 1775 nsk = iucv_sock_alloc(NULL, sk->sk_type, GFP_ATOMIC, 0); in iucv_callback_connreq() 1985 nsk = iucv_sock_alloc(NULL, sk->sk_type, GFP_ATOMIC, 0); in afiucv_hs_callback_syn()
|
/Linux-v4.19/net/core/ |
D | datagram.c | 69 return sk->sk_type == SOCK_SEQPACKET || sk->sk_type == SOCK_STREAM; in connection_based() 608 if (sk && sk->sk_type == SOCK_STREAM) { in __zerocopy_sg_from_iter()
|
/Linux-v4.19/net/vmw_vsock/ |
D | diag.c | 42 rep->vdiag_type = sk->sk_type; in sk_diag_fill()
|
/Linux-v4.19/net/netrom/ |
D | af_netrom.c | 476 if (osk->sk_type != SOCK_SEQPACKET) in nr_make_new() 487 sk->sk_type = osk->sk_type; in nr_make_new() 781 if (sk->sk_type != SOCK_SEQPACKET) { in nr_accept()
|
/Linux-v4.19/security/tomoyo/ |
D | realpath.c | 228 "protocol=%u]", sk->sk_family, sk->sk_type, in tomoyo_get_socket_name()
|
/Linux-v4.19/net/appletalk/ |
D | atalk_proc.c | 182 s->sk_type, ntohs(at->src_net), at->src_node, at->src_port, in atalk_seq_socket_show()
|
/Linux-v4.19/net/netlink/ |
D | diag.c | 58 rep->ndiag_type = sk->sk_type; in sk_diag_fill()
|