Home
last modified time | relevance | path

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

123

/openbmc/linux/net/vmw_vsock/
H A Dvsock_bpf.c66 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 Daf_vsock.c461 switch (sk->sk_type) { in vsock_assign_transport()
499 if (sk->sk_type == SOCK_SEQPACKET) { in vsock_assign_transport()
749 sk->sk_type = type; in __vsock_create()
815 else if (sock_type_connectible(sk->sk_type)) in __vsock_release()
863 parent->sk_type, 0); in vsock_create_connected()
877 if (sk->sk_type == SOCK_SEQPACKET) in vsock_connectible_has_data()
998 if (sock_type_connectible(sk->sk_type)) in vsock_shutdown()
1011 if (sock_type_connectible(sk->sk_type)) { in vsock_shutdown()
1584 if (!sock_type_connectible(sk->sk_type)) { in vsock_listen()
1894 if (sk->sk_type == SOCK_SEQPACKET) { in vsock_connectible_sendmsg()
[all …]
H A Ddiag.c34 rep->vdiag_type = sk->sk_type; in sk_diag_fill()
/openbmc/linux/include/linux/
H A 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()
/openbmc/linux/net/ax25/
H A Daf_ax25.c209 s->sk->sk_type == type) { in ax25_get_socket()
267 s->sk->sk_type == SOCK_RAW && in ax25_send_to_raw()
673 if (sk->sk_type == SOCK_SEQPACKET && in ax25_setsockopt()
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 == SOCK_SEQPACKET) { in ax25_release()
1286 if (sk->sk_type == SOCK_SEQPACKET && in ax25_connect()
1299 if (sk->sk_type != SOCK_SEQPACKET) { in ax25_connect()
1394 if (sk->sk_type != SOCK_SEQPACKET) { in ax25_accept()
1582 if (sk->sk_type == SOCK_SEQPACKET && in ax25_sendmsg()
[all …]
/openbmc/linux/security/apparmor/include/
H A Dnet.h69 DEFINE_AUDIT_NET(NAME, OP, SK, (SK)->sk_family, (SK)->sk_type, \
105 sk->sk_type); in aa_profile_af_sk_perm()
/openbmc/linux/net/llc/
H A 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()
494 if (unlikely(sk->sk_type != SOCK_STREAM)) in llc_ui_connect()
562 if (unlikely(sk->sk_type != SOCK_STREAM)) in llc_ui_listen()
708 if (unlikely(sk->sk_type != SOCK_STREAM)) in llc_ui_accept()
777 if (unlikely(sk->sk_type == SOCK_STREAM && sk->sk_state == TCP_LISTEN)) in llc_ui_recvmsg()
836 if (sk->sk_type == SOCK_STREAM && sk->sk_state == TCP_CLOSE) { in llc_ui_recvmsg()
888 if (sk->sk_type != SOCK_STREAM) in llc_ui_recvmsg()
987 if (sk->sk_type == SOCK_DGRAM || addr->sllc_ua) { in llc_ui_sendmsg()
1006 if (!(sk->sk_type == SOCK_STREAM && !addr->sllc_ua)) in llc_ui_sendmsg()
H A Dllc_if.c136 if (sk->sk_type != SOCK_STREAM || sk->sk_state != TCP_ESTABLISHED || in llc_send_disc()
H A Dllc_sap.c302 return sk->sk_type == SOCK_DGRAM && in llc_dgram_match()
361 return sk->sk_type == SOCK_DGRAM && in llc_mcast_match()
H A Dllc_conn.c103 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 Dllc_proc.c140 seq_printf(seq, "%2X %2X ", sk->sk_type, 0); in llc_seq_socket_show()
/openbmc/linux/net/bluetooth/rfcomm/
H A Dsock.c246 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()
682 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_setsockopt()
826 if (sk->sk_type != SOCK_STREAM) { in rfcomm_sock_getsockopt()
/openbmc/linux/net/unix/
H A Dunix_bpf.c44 if (sk->sk_type == SOCK_DGRAM) in __unix_recvmsg()
146 if (sk->sk_type != SOCK_DGRAM) in unix_dgram_bpf_update_proto()
H A Daf_unix.c137 hash ^= sk->sk_type; in unix_unbound_hash()
631 if (sk->sk_type == SOCK_STREAM || sk->sk_type == SOCK_SEQPACKET) { in unix_release_sock()
1090 if (sk->sk_type == type) in unix_find_bsd()
1606 newsk->sk_type = sk->sk_type; in unix_stream_connect()
1979 sk->sk_type); in unix_dgram_sendmsg()
2043 if (sk->sk_type != SOCK_SEQPACKET) { in unix_dgram_sendmsg()
2946 (sk->sk_type == SOCK_STREAM || sk->sk_type == SOCK_SEQPACKET)) { in unix_shutdown()
2981 if (sk->sk_type == SOCK_STREAM || in unix_inq_len()
2982 sk->sk_type == SOCK_SEQPACKET) { in unix_inq_len()
3117 if ((sk->sk_type == SOCK_STREAM || sk->sk_type == SOCK_SEQPACKET) && in unix_poll()
[all …]
/openbmc/linux/net/nfc/
H A Dllcp_sock.c798 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()
/openbmc/linux/net/ipv6/
H A Dipv6_sockglue.c65 if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_RAW) in ip6_ra_control()
434 if (sk->sk_type == SOCK_RAW) in do_ipv6_setsockopt()
595 if (sk->sk_type == SOCK_STREAM) { in do_ipv6_setsockopt()
746 if (sk->sk_type == SOCK_STREAM) in do_ipv6_setsockopt()
796 if (sk->sk_type == SOCK_STREAM) in do_ipv6_setsockopt()
1006 if (level == SOL_IP && sk->sk_type != SOCK_RAW) in ipv6_setsockopt()
1156 if (sk->sk_type != SOCK_STREAM) in do_ipv6_getsockopt()
1484 if (level == SOL_IP && sk->sk_type != SOCK_RAW) in ipv6_getsockopt()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_unix.c45 sk->sk_type, in dump_unix()
/openbmc/linux/kernel/bpf/
H A Dreuseport_array.c206 if (nsk->sk_type != SOCK_STREAM && nsk->sk_type != SOCK_DGRAM) in reuseport_array_update_check()
/openbmc/linux/net/ipv4/
H A Dip_sockglue.c352 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()
972 if (sk->sk_type != SOCK_RAW && sk->sk_type != SOCK_DGRAM) in do_ip_setsockopt()
992 if (sk->sk_type != SOCK_RAW) in do_ip_setsockopt()
1017 if (sk->sk_type != SOCK_RAW) in do_ip_setsockopt()
1105 if (sk->sk_type == SOCK_STREAM) in do_ip_setsockopt()
1153 if (sk->sk_type == SOCK_STREAM) in do_ip_setsockopt()
1701 if (sk->sk_type != SOCK_STREAM) in do_ip_getsockopt()
/openbmc/linux/net/bluetooth/
H A Dl2cap_sock.c286 if (sk->sk_type != SOCK_SEQPACKET && sk->sk_type != SOCK_STREAM) { in l2cap_sock_listen()
622 if (sk->sk_type != SOCK_SEQPACKET && sk->sk_type != SOCK_STREAM in l2cap_sock_getsockopt()
623 && sk->sk_type != SOCK_RAW) { in l2cap_sock_getsockopt()
1809 sk->sk_type = parent->sk_type; in l2cap_sock_init()
1833 switch (sk->sk_type) { in l2cap_sock_init()
1849 if (!disable_ertm && sk->sk_type == SOCK_STREAM) { in l2cap_sock_init()
H A Dsco.c482 sk->sk_type = parent->sk_type; in sco_sock_init()
558 if (sk->sk_type != SOCK_SEQPACKET) { in sco_sock_bind()
587 if (sk->sk_type != SOCK_SEQPACKET) in sco_sock_connect()
623 if (sk->sk_type != SOCK_SEQPACKET) { in sco_sock_listen()
/openbmc/linux/net/core/
H A Ddatagram.c70 return sk->sk_type == SOCK_SEQPACKET || sk->sk_type == SOCK_STREAM; in connection_based()
646 if (sk && sk->sk_type == SOCK_STREAM) { in __zerocopy_sg_from_iter()
/openbmc/linux/net/iucv/
H A Daf_iucv.c240 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()
1263 if (sk->sk_type == SOCK_SEQPACKET) { in iucv_sock_recvmsg()
1286 if (sk->sk_type == SOCK_STREAM) { in iucv_sock_recvmsg()
1334 if (sk->sk_type == SOCK_SEQPACKET && (flags & MSG_TRUNC)) in iucv_sock_recvmsg()
/openbmc/linux/net/appletalk/
H A Datalk_proc.c179 s->sk_type, ntohs(at->src_net), at->src_node, at->src_port, in atalk_seq_socket_show()
/openbmc/linux/net/netrom/
H A Daf_netrom.c478 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()

123