| /xnu-8020.140.41/bsd/net/ |
| H A D | raw_usrreq.c | 174 if (so->so_proto->pr_getlock != NULL) { in raw_uabort() 175 mutex_held = (*so->so_proto->pr_getlock)(so, 0); in raw_uabort() 177 mutex_held = so->so_proto->pr_domain->dom_mtx; in raw_uabort() 227 if (so->so_proto->pr_getlock != NULL) { in raw_udetach() 228 mutex_held = (*so->so_proto->pr_getlock)(so, 0); in raw_udetach() 230 mutex_held = so->so_proto->pr_domain->dom_mtx; in raw_udetach() 286 if (so->so_proto->pr_getlock != NULL) { in raw_usend() 287 mutex_held = (*so->so_proto->pr_getlock)(so, 0); in raw_usend() 289 mutex_held = so->so_proto->pr_domain->dom_mtx; in raw_usend() 303 if (so->so_proto->pr_output == NULL) { in raw_usend() [all …]
|
| H A D | content_filter.c | 561 #define IS_ICMP(so) (so && so->so_proto && (so->so_proto->pr_type == SOCK_RAW || so->so_proto->pr_t… 562 … (so->so_proto->pr_protocol == IPPROTO_ICMP || so->so_proto->pr_protocol == IPPROTO_ICMPV6)) 563 #define IS_RAW(so) (so && so->so_proto && so->so_proto->pr_type == SOCK_RAW && so->so_proto->pr_p… 566 #define GET_SO_PROTO(so) ((so && so->so_proto) ? so->so_proto->pr_protocol : IPPROTO_MAX) 580 (so == NULL || so->so_proto == NULL || so->so_proto->pr_domain == NULL || \ 581 …(so->so_proto->pr_domain->dom_family != PF_INET && so->so_proto->pr_domain->dom_family != PF_INET6… 582 so->so_proto->pr_type != SOCK_STREAM || \ 583 so->so_proto->pr_protocol != IPPROTO_TCP || \ 1520 if (so->so_proto->pr_getlock != NULL) { in cfil_acquire_sockbuf() 1521 mutex_held = (*so->so_proto->pr_getlock)(so, PR_F_WILLUNLOCK); in cfil_acquire_sockbuf() [all …]
|
| H A D | if.c | 2985 if (so->so_proto == NULL) { in ifioctl() 3298 if (so->so_proto == NULL) { in ifioctl() 3304 error = ((*so->so_proto->pr_usrreqs->pru_control)(so, cmd, in ifioctl() 3989 VERIFY(so->so_proto != NULL); in ifioctl_ifreq() 4015 error = ((*so->so_proto->pr_usrreqs->pru_control)(so, cmd, in ifioctl_ifreq()
|
| /xnu-8020.140.41/bsd/kern/ |
| H A D | uipc_socket.c | 518 if (so->so_proto != NULL && so->so_proto->pr_update_last_owner != NULL) { in so_update_last_owner_locked() 519 (*so->so_proto->pr_update_last_owner)(so, self, NULL); in so_update_last_owner_locked() 744 so->so_proto = prp; in socreate_internal() 936 error = (*so->so_proto->pr_usrreqs->pru_bind)(so, nam, p); in sobindlock() 1001 if (so->so_proto == NULL) { in solisten() 1005 if ((so->so_proto->pr_flags & PR_CONNREQUIRED) == 0) { in solisten() 1036 error = (*so->so_proto->pr_usrreqs->pru_listen)(so, p); in solisten() 1102 if (head->so_proto->pr_getlock == NULL) { in so_acquire_accept_list() 1105 mutex_held = (*head->so_proto->pr_getlock)(head, PR_F_WILLUNLOCK); in so_acquire_accept_list() 1131 if (head->so_proto->pr_getlock != NULL) { in so_release_accept_list() [all …]
|
| H A D | kpi_socket.c | 102 if (sock->so_proto->pr_getlock != NULL) { in sock_accept_common() 103 mutex_held = (*sock->so_proto->pr_getlock)(sock, PR_F_WILLUNLOCK); in sock_accept_common() 106 mutex_held = sock->so_proto->pr_domain->dom_mtx; in sock_accept_common() 172 LCK_MTX_ASSERT(new_so->so_proto->pr_getlock(new_so, 0), in sock_accept_common() 305 if (sock->so_proto->pr_getlock != NULL) { in sock_connect() 306 mutex_held = (*sock->so_proto->pr_getlock)(sock, PR_F_WILLUNLOCK); in sock_connect() 308 mutex_held = sock->so_proto->pr_domain->dom_mtx; in sock_connect() 375 if (sock->so_proto->pr_getlock != NULL) { in sock_connectwait() 376 mutex_held = (*sock->so_proto->pr_getlock)(sock, PR_F_WILLUNLOCK); in sock_connectwait() 378 mutex_held = sock->so_proto->pr_domain->dom_mtx; in sock_connectwait() [all …]
|
| H A D | uipc_socket2.c | 215 if (head->so_proto->pr_getlock != NULL) { in soisconnected() 259 !(so->so_proto->pr_flags & PR_CONNREQUIRED) || in socanwrite() 330 if (head->so_proto->pr_getlock != NULL) { in sonewconn_internal() 331 mutex_held = (*head->so_proto->pr_getlock)(head, 0); in sonewconn_internal() 333 mutex_held = head->so_proto->pr_domain->dom_mtx; in sonewconn_internal() 367 if (head->so_proto == NULL) { in sonewconn_internal() 376 so->so_proto = head->so_proto; in sonewconn_internal() 422 if (head->so_proto->pr_unlock) { in sonewconn_internal() 425 if (((*so->so_proto->pr_usrreqs->pru_attach)(so, 0, NULL) != 0) || in sonewconn_internal() 428 if (head->so_proto->pr_unlock) { in sonewconn_internal() [all …]
|
| H A D | sys_socket.c | 128 fsoreceive = so->so_proto->pr_usrreqs->pru_soreceive; in soo_read() 151 fsosend = so->so_proto->pr_usrreqs->pru_sosend; in soo_write() 255 error = (*so->so_proto->pr_usrreqs->pru_control)(so, in soioctl() 271 error = (*so->so_proto->pr_usrreqs->pru_control)(so, in soioctl() 402 ret = (*so->so_proto->pr_usrreqs->pru_sense)(so, ub, isstat64); in soo_stat()
|
| H A D | socket_info.c | 80 if (so->so_proto) { in fill_common_sockinfo() 82 if (so->so_proto->pr_domain) { in fill_common_sockinfo() 114 if (so->so_pcb == NULL || so->so_proto == 0 || in fill_socketinfo() 115 so->so_proto->pr_domain == NULL) { in fill_socketinfo()
|
| H A D | uipc_syscalls.c | 450 if (head->so_proto->pr_getlock != NULL) { in accept_nocancel() 451 mutex_held = (*head->so_proto->pr_getlock)(head, PR_F_WILLUNLOCK); in accept_nocancel() 454 mutex_held = head->so_proto->pr_domain->dom_mtx; in accept_nocancel() 459 if ((head->so_proto->pr_flags & PR_CONNREQUIRED) == 0) { in accept_nocancel() 970 if (so->so_proto->pr_getlock != NULL) { in connectit() 971 mutex_held = (*so->so_proto->pr_getlock)(so, PR_F_WILLUNLOCK); in connectit() 973 mutex_held = so->so_proto->pr_domain->dom_mtx; in connectit() 1044 if (so->so_proto->pr_getlock != NULL) { in connectitx() 1045 mutex_held = (*so->so_proto->pr_getlock)(so, PR_F_WILLUNLOCK); in connectitx() 1047 mutex_held = so->so_proto->pr_domain->dom_mtx; in connectitx() [all …]
|
| H A D | socket_flows.c | 128 #define SOFLOW_IS_UDP(so) (so && so->so_proto && so->so_proto->pr_type == SOCK_DGRAM && so->so_prot… 129 #define SOFLOW_GET_SO_PROTO(so) ((so && so->so_proto) ? so->so_proto->pr_protocol : IPPROTO_MAX)
|
| H A D | vsock_domain.c | 1131 if (so->so_proto->pr_getlock != NULL) { in vsock_connect() 1132 mutex_held = (*so->so_proto->pr_getlock)(so, PR_F_WILLUNLOCK); in vsock_connect() 1134 mutex_held = so->so_proto->pr_domain->dom_mtx; in vsock_connect()
|
| H A D | uipc_usrreq.c | 1323 if (so->so_proto->pr_flags & PR_CONNREQUIRED) { in unp_connect() 2393 if (so->so_proto->pr_domain != localdomain || in unp_gc() 2394 (so->so_proto->pr_flags & PR_RIGHTS) == 0) { in unp_gc() 2694 return so->so_proto->pr_domain->dom_mtx; in unp_getlock()
|
| H A D | kpi_socketfilter.c | 458 struct protosw *proto = so->so_proto->pr_protosw; in sflt_initsock()
|
| H A D | kern_control.c | 2112 return so->so_proto->pr_domain->dom_mtx;
|
| /xnu-8020.140.41/bsd/sys/ |
| H A D | socketvar.h | 138 struct protosw *so_proto; /* protocol handle */ member 680 #define SOCK_DOM(so) ((so)->so_proto->pr_domain->dom_family) 681 #define SOCK_TYPE(so) ((so)->so_proto->pr_type) 682 #define SOCK_PROTO(so) ((so)->so_proto->pr_protocol) 964 …o != NULL && so->so_proto != NULL && so->so_proto->pr_domain != NULL && (so->so_proto->pr_domain->… 965 #define IS_TCP(so) (so != NULL && so->so_proto != NULL && so->so_proto->pr_type == SOCK_STREAM && s… 966 #define IS_UDP(so) (so != NULL && so->so_proto != NULL && so->so_proto->pr_type == SOCK_DGRAM && so…
|
| /xnu-8020.140.41/tools/lldbmacros/ |
| H A D | net.py | 475 if sock.so_proto.pr_protocol == 6: 478 if sock.so_proto.pr_protocol == 17: 480 if sock.so_proto.pr_protocol == 1: 482 if sock.so_proto.pr_protocol == 254: 484 if sock.so_proto.pr_protocol == 255: 571 domain = so.so_proto.pr_domain 602 domain = so.so_proto.pr_domain
|
| /xnu-8020.140.41/bsd/netinet/ |
| H A D | flow_divert.c | 2033 so->so_proto = pffindproto(SOCK_DOM(so), SOCK_PROTO(so), SOCK_TYPE(so)); in flow_divert_disable() 2042 …error = (*so->so_proto->pr_usrreqs->pru_connect)(so, remote_endpoint, (last_proc != NULL ? last_pr… in flow_divert_disable() 2072 error = (*so->so_proto->pr_usrreqs->pru_send)(so, in flow_divert_disable() 2156 error = (*so->so_proto->pr_usrreqs->pru_send)(so, in flow_divert_disable() 2654 if (fd_cb->so->so_proto->pr_domain->dom_family == AF_INET6) { in flow_divert_handle_data() 3591 error = so->so_proto->pr_usrreqs->pru_sosend(so, NULL, (uio_t)auio, NULL, NULL, 0); in flow_divert_connectx_out_common() 3761 so->so_proto = &g_flow_divert_in_protosw; in flow_divert_set_protosw() 3763 so->so_proto = (struct protosw *)&g_flow_divert_in6_protosw; in flow_divert_set_protosw() 3771 so->so_proto = &g_flow_divert_in_udp_protosw; in flow_divert_set_udp_protosw() 3773 so->so_proto = (struct protosw *)&g_flow_divert_in6_udp_protosw; in flow_divert_set_udp_protosw()
|
| H A D | mptcp_usrreq.c | 393 error = mp_so->so_proto->pr_usrreqs->pru_sosend(mp_so, NULL, in mptcp_usr_connectx() 1031 if (so->so_proto->pr_flags & PR_WANTRCVD && so->so_pcb != NULL) { in mptcp_usr_rcvd() 1032 (*so->so_proto->pr_usrreqs->pru_rcvd)(so, 0); in mptcp_usr_rcvd() 1330 error = (*mp_so->so_proto->pr_usrreqs->pru_send) in mptcp_usr_sosend()
|
| H A D | raw_ip.c | 1142 lck_mtx_unlock(so->so_proto->pr_domain->dom_mtx); in rip_unlock() 1158 lck_mtx_unlock(so->so_proto->pr_domain->dom_mtx); in rip_unlock()
|
| H A D | mptcp_subr.c | 1693 subflow_mtx = ((*so)->so_proto->pr_getlock)(*so, 0); in mptcp_subflow_socreate() 1892 (*so)->so_proto = &mptcp_subflow_protosw; in mptcp_subflow_socreate() 1895 (*so)->so_proto = (struct protosw *)&mptcp_subflow_protosw6; in mptcp_subflow_socreate() 2132 VERIFY(so->so_proto->pr_flags & PR_CONNREQUIRED); in mptcp_subflow_soreceive() 2514 error = (*so->so_proto->pr_usrreqs->pru_send)(so, 0, top, NULL, NULL, p); in mptcp_subflow_sosend() 3184 error = (*so->so_proto->pr_usrreqs->pru_send)(so, 0, NULL, NULL, in mptcp_subflow_output() 3429 error = so->so_proto->pr_usrreqs->pru_sosend(so, NULL, NULL, head, NULL, 0); in mptcp_subflow_output()
|
| H A D | in_pcblist.c | 125 if (so->so_proto) { in sotoxsocket_n()
|
| H A D | in_pcb.c | 642 if (so->so_proto->pr_flags & PR_PCBLOCK) { in in_pcballoc() 912 (uint8_t)so->so_proto->pr_protocol, PORT_FLAGS_BSD)) { in in_pcbbind() 1983 if (so->so_proto->pr_flags & PR_PCBLOCK) { in in_pcbdispose()
|
| H A D | udp_usrreq.c | 2365 error = so->so_proto->pr_usrreqs->pru_sosend(so, NULL, in udp_connectx_common() 2373 (void) so->so_proto->pr_usrreqs->pru_disconnectx(so, in udp_connectx_common()
|
| /xnu-8020.140.41/bsd/netinet6/ |
| H A D | ip6_input.c | 2093 (so->so_proto == NULL || so->so_proto->pr_protocol == IPPROTO_TCP)) { in ip6_notify_pmtu()
|
| H A D | in6_pcb.c | 703 if (so->so_proto->pr_protocol == IPPROTO_UDP && in in6_pcbconnect()
|