Searched refs:so_proto (Results 1 - 25 of 35) sorted by relevance

12

/darwin-on-arm/xnu/bsd/net/
H A Draw_usrreq.c186 if (so->so_proto->pr_getlock != NULL)
187 mutex_held = (*so->so_proto->pr_getlock)(so, 0);
189 mutex_held = so->so_proto->pr_domain->dom_mtx;
235 if (so->so_proto->pr_getlock != NULL)
236 mutex_held = (*so->so_proto->pr_getlock)(so, 0);
238 mutex_held = so->so_proto->pr_domain->dom_mtx;
289 if (so->so_proto->pr_getlock != NULL)
290 mutex_held = (*so->so_proto->pr_getlock)(so, 0);
292 mutex_held = so->so_proto->pr_domain->dom_mtx;
305 if (so->so_proto
[all...]
H A Draw_cb.c109 rp->rcb_proto.sp_family = so->so_proto->pr_domain->dom_family;
H A Dndrv.c197 lck_mtx_assert(so->so_proto->pr_domain->dom_mtx, LCK_MTX_ASSERT_NOTOWNED);
198 lck_mtx_lock(so->so_proto->pr_domain->dom_mtx);
203 lck_mtx_unlock(so->so_proto->pr_domain->dom_mtx);
237 np->nd_proto.sp_family = so->so_proto->pr_domain->dom_family;
409 lck_mtx_assert(so->so_proto->pr_domain->dom_mtx, LCK_MTX_ASSERT_OWNED);
873 lck_mtx_assert(so->so_proto->pr_domain->dom_mtx, LCK_MTX_ASSERT_OWNED);
H A Dif.c1514 if (so->so_proto == NULL) {
1685 error = ifnet_ioctl(ifp, so->so_proto->pr_domain->dom_family,
1697 error = ifnet_ioctl(ifp, so->so_proto->pr_domain->dom_family,
1706 error = ifnet_ioctl(ifp, so->so_proto->pr_domain->dom_family,
1861 if (so->so_proto == NULL) {
1867 error = ((*so->so_proto->pr_usrreqs->pru_control)(so, cmd,
1873 so->so_proto->pr_domain->dom_family, cmd, data);
1991 (void) ifnet_ioctl(ifp, so->so_proto->pr_domain->dom_family,
2023 error = ifnet_ioctl(ifp, so->so_proto->pr_domain->dom_family,
2063 error = ifnet_ioctl(ifp, so->so_proto
[all...]
H A Dkext_net.c207 (*kp->e_soif->sf_socreate)(so, so->so_proto, kp);
/darwin-on-arm/xnu/bsd/kern/
H A Dsocket_info.c77 if (so->so_proto) {
78 si->soi_protocol = so->so_proto->pr_protocol;
79 if (so->so_proto->pr_domain)
80 si->soi_family = so->so_proto->pr_domain->dom_family;
110 if (so->so_pcb == 0 || so->so_proto == 0 || so->so_proto->pr_domain == 0)
114 family = so->so_proto->pr_domain->dom_family;
115 type = so->so_proto->pr_type;
116 protocol = so->so_proto->pr_protocol;
203 if (so->so_proto
[all...]
H A Dkpi_socket.c95 if (sock->so_proto->pr_getlock != NULL) {
96 mutex_held = (*sock->so_proto->pr_getlock)(sock, 0);
100 mutex_held = sock->so_proto->pr_domain->dom_mtx;
147 lck_mtx_assert(new_so->so_proto->pr_getlock(new_so, 0),
260 if (sock->so_proto->pr_getlock != NULL)
261 mutex_held = (*sock->so_proto->pr_getlock)(sock, 0);
263 mutex_held = sock->so_proto->pr_domain->dom_mtx;
329 if (sock->so_proto->pr_getlock != NULL)
330 mutex_held = (*sock->so_proto->pr_getlock)(sock, 0);
332 mutex_held = sock->so_proto
[all...]
H A Duipc_socket2.c186 if (head->so_proto->pr_getlock != NULL) {
196 if (head->so_proto->pr_getlock != NULL) {
263 if (head->so_proto->pr_getlock != NULL)
264 mutex_held = (*head->so_proto->pr_getlock)(head, 0);
266 mutex_held = head->so_proto->pr_domain->dom_mtx;
292 so = soalloc(1, head->so_proto->pr_domain->dom_family,
297 if (head->so_proto == NULL) {
306 so->so_proto = head->so_proto;
354 if (head->so_proto
[all...]
H A Duipc_socket.c582 so->so_proto = prp;
697 error = (*so->so_proto->pr_usrreqs->pru_bind)(so, nam, p);
757 if (so->so_proto == NULL) {
761 if ((so->so_proto->pr_flags & PR_CONNREQUIRED) == 0) {
791 error = (*so->so_proto->pr_usrreqs->pru_listen)(so, p);
889 if (so->so_proto->pr_getlock != NULL)
890 mutex_held = (*so->so_proto->pr_getlock)(so, 0);
892 mutex_held = so->so_proto->pr_domain->dom_mtx;
950 if (so->so_proto->pr_getlock != NULL) {
979 if (so->so_proto
[all...]
H A Dsys_socket.c141 fsoreceive = so->so_proto->pr_usrreqs->pru_soreceive;
175 fsosend = so->so_proto->pr_usrreqs->pru_sosend;
306 error = (*so->so_proto->pr_usrreqs->pru_control)(so, cmd,
326 error = (*so->so_proto->pr_usrreqs->pru_control)(so,
464 ret = (*so->so_proto->pr_usrreqs->pru_sense)(so, ub, isstat64);
H A Duipc_syscalls.c376 if (head->so_proto->pr_getlock != NULL) {
377 mutex_held = (*head->so_proto->pr_getlock)(head, 0);
380 mutex_held = head->so_proto->pr_domain->dom_mtx;
385 if ((head->so_proto->pr_flags & PR_CONNREQUIRED) == 0) {
651 if (so->so_proto->pr_getlock != NULL)
652 mutex_held = (*so->so_proto->pr_getlock)(so, 0);
654 mutex_held = so->so_proto->pr_domain->dom_mtx;
871 error = so->so_proto->pr_usrreqs->pru_sosend(so, to, uiop, 0, control,
1160 error = so->so_proto->pr_usrreqs->pru_soreceive(so, &fromsa, uiop,
1726 error = (*so->so_proto
[all...]
H A Duipc_usrreq.c1134 if (so->so_proto->pr_flags & PR_CONNREQUIRED) {
2071 if (so->so_proto->pr_domain != &localdomain ||
2072 (so->so_proto->pr_flags&PR_RIGHTS) == 0) {
2387 return (so->so_proto->pr_domain->dom_mtx);
/darwin-on-arm/xnu/bsd/netinet6/
H A Draw_ip6.c372 if ((error = ip6_setpktopts(control, &opt, NULL, so->so_proto->pr_protocol)) != 0)
382 if (so->so_proto->pr_protocol == IPPROTO_ICMPV6) {
505 if (so->so_proto->pr_protocol == IPPROTO_ICMPV6 ||
512 if (so->so_proto->pr_protocol == IPPROTO_ICMPV6)
592 if (so->so_proto->pr_protocol == IPPROTO_ICMPV6) {
H A Din6_mcast.c1789 if (inp->inp_socket->so_proto->pr_protocol == IPPROTO_DIVERT ||
1790 (inp->inp_socket->so_proto->pr_type != SOCK_RAW &&
1791 inp->inp_socket->so_proto->pr_type != SOCK_DGRAM)) {
2830 if (inp->inp_socket->so_proto->pr_protocol == IPPROTO_DIVERT ||
2831 (inp->inp_socket->so_proto->pr_type != SOCK_RAW &&
2832 inp->inp_socket->so_proto->pr_type != SOCK_DGRAM))
H A Dip6_output.c1861 uproto = (int)so->so_proto->pr_protocol;
2568 } else if (so->so_proto->pr_protocol ==
2577 if (so->so_proto->pr_protocol == IPPROTO_ICMPV6)
2640 if ((error = ip6_setpktopts(m, opt, NULL, so->so_proto->pr_protocol)) != 0) {
/darwin-on-arm/xnu/bsd/netinet/
H A Din_pcblist.c116 if (so->so_proto) {
117 xso->xso_protocol = so->so_proto->pr_protocol;
118 xso->xso_family = so->so_proto->pr_domain->dom_family;
H A Din_pcb.h632 #define INP_SOCKAF(so) so->so_proto->pr_domain->dom_family
633 #define INP_SOCKTYPE(so) so->so_proto->pr_type
H A Dip_mroute.c563 so->so_type, so->so_proto->pr_protocol);
566 so->so_proto->pr_protocol != IPPROTO_IGMP) return EOPNOTSUPP;
1933 so->so_type, so->so_proto->pr_protocol);
1935 if (so->so_type != SOCK_RAW || so->so_proto->pr_protocol != IPPROTO_RSVP)
1975 so->so_type, so->so_proto->pr_protocol);
1978 so->so_proto->pr_protocol != IPPROTO_RSVP)
2013 if (so->so_type != SOCK_RAW || so->so_proto->pr_protocol != IPPROTO_RSVP)
H A Din_pcb.c315 if (so->so_proto->pr_flags & PR_PCBLOCK) {
987 inp, so, so->so_proto->pr_protocol);
998 panic("in_pcbdetach so=%p prot=%x couldn't set to STOPUSING\n", so, so->so_proto->pr_protocol);
1051 if (so->so_proto->pr_flags & PR_PCBLOCK) {
2181 if (so->so_proto->pr_type == SOCK_STREAM)
H A Din_mcast.c1857 if (inp->inp_socket->so_proto->pr_protocol == IPPROTO_DIVERT ||
1858 (inp->inp_socket->so_proto->pr_type != SOCK_RAW &&
1859 inp->inp_socket->so_proto->pr_type != SOCK_DGRAM)) {
2885 if (inp->inp_socket->so_proto->pr_protocol == IPPROTO_DIVERT ||
2886 (inp->inp_socket->so_proto->pr_type != SOCK_RAW &&
2887 inp->inp_socket->so_proto->pr_type != SOCK_DGRAM))
H A Din_tclass.c296 if (so->so_proto->pr_domain->dom_family != AF_INET &&
297 so->so_proto->pr_domain->dom_family != AF_INET6)
H A Draw_ip.c949 lck_mtx_unlock(so->so_proto->pr_domain->dom_mtx);
966 lck_mtx_unlock(so->so_proto->pr_domain->dom_mtx);
H A Dip_divert.c749 return (so->so_proto->pr_domain->dom_mtx);
/darwin-on-arm/xnu/bsd/netat/
H A Daurp_aurpd.c340 error = (*so->so_proto->pr_usrreqs->pru_bind)(so, (struct sockaddr *) &sin, p);
/darwin-on-arm/xnu/bsd/security/audit/
H A Daudit_arg.c614 so->so_proto->pr_protocol;
634 so->so_proto->pr_protocol;

Completed in 200 milliseconds

12