Home
last modified time | relevance | path

Searched refs:sk_type (Results 1 – 25 of 61) sorted by relevance

123

/kernel/linux/linux-5.10/include/linux/
Dsock_diag.h53 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/
Daf_ax25.c178 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/
Daf_unix.c547 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/
Dnet.h68 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/
Daf_llc.c111 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()
Dllc_conn.c102 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()
Dllc_if.c136 if (sk->sk_type != SOCK_STREAM || sk->sk_state != TCP_ESTABLISHED || in llc_send_disc()
Dllc_sap.c301 return sk->sk_type == SOCK_DGRAM && in llc_dgram_match()
357 return sk->sk_type == SOCK_DGRAM && in llc_mcast_match()
Dllc_proc.c140 seq_printf(seq, "%2X %2X ", sk->sk_type, 0); in llc_seq_socket_show()
/kernel/linux/linux-5.10/net/bluetooth/rfcomm/
Dsock.c246 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/
Dllcp_sock.c797 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/
Dipv6_sockglue.c63 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/
Dl2cap_sock.c301 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()
Dsco.c462 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/
Dip_sockglue.c343 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()
Dtcp_diag.c26 } else if (sk->sk_type == SOCK_STREAM) { in tcp_diag_get_info()
/kernel/linux/linux-5.10/kernel/bpf/
Dreuseport_array.c223 if (nsk->sk_type != SOCK_STREAM && nsk->sk_type != SOCK_DGRAM) in reuseport_array_update_check()
/kernel/linux/linux-5.10/net/core/
Ddatagram.c72 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/
Daf_iucv.c256 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/
Ddiag.c34 rep->vdiag_type = sk->sk_type; in sk_diag_fill()
Daf_vsock.c439 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/
Datalk_proc.c179 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/
Daf_netrom.c478 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/
Dxsk_diag.c109 msg->xdiag_type = sk->sk_type; in xsk_diag_fill()
/kernel/linux/linux-5.10/net/netlink/
Ddiag.c59 rep->ndiag_type = sk->sk_type; in sk_diag_fill()

123