Searched refs:inp_socket (Results 1 - 25 of 27) sorted by relevance

12

/darwin-on-arm/xnu/bsd/netinet/
H A Din_pcb.c296 inp->inp_socket = so;
371 struct socket *so = inp->inp_socket;
427 struct socket *so = inp->inp_socket;
513 (t->inp_socket->so_options &
516 kauth_cred_getuid(t->inp_socket->so_cred)) &&
517 ((t->inp_socket->so_flags & SOF_REUSESHAREUID) == 0) &&
523 if ((t->inp_socket->so_flags & SOF_NOTIFYCONFLICT) && ((so->so_flags & SOF_NOTIFYCONFLICT) == 0))
541 (reuseport & t->inp_socket->so_options) == 0) {
548 INP_SOCKAF(t->inp_socket) != AF_INET6)
553 if ((t->inp_socket
[all...]
H A Dudp_usrreq.c424 if (inp->inp_socket == NULL)
426 if (inp != sotoinpcb(inp->inp_socket))
447 udp_lock(inp->inp_socket, 1, 0);
450 udp_unlock(inp->inp_socket, 1, 0);
455 udp_unlock(inp->inp_socket, 1, 0);
461 udp_unlock(inp->inp_socket, 1, 0);
469 udp_unlock(inp->inp_socket, 1, 0);
476 udp_unlock(inp->inp_socket, 1, 0);
497 udp_unlock(inp->inp_socket, 1, 0);
503 reuse_sock = inp->inp_socket
[all...]
H A Draw_ip.c231 if (ipsec4_in_reject_so(n, last->inp_socket)) {
251 (last->inp_socket->so_options & SO_TIMESTAMP) != 0 ||
252 (last->inp_socket->so_options & SO_TIMESTAMP_MONOTONIC) != 0) {
266 so_recv_data_stat(last->inp_socket, m, 0);
267 if (sbappendaddr(&last->inp_socket->so_rcv,
270 sorwakeup(last->inp_socket);
287 if (ipsec4_in_reject_so(m, last->inp_socket)) {
307 (last->inp_socket->so_options & SO_TIMESTAMP) != 0 ||
308 (last->inp_socket->so_options & SO_TIMESTAMP_MONOTONIC) != 0) {
321 so_recv_data_stat(last->inp_socket,
[all...]
H A Dtcp_usrreq.c893 struct socket *so = inp->inp_socket;
917 tcp_unlock(inp->inp_socket, 0, 0);
924 tcp_lock(inp->inp_socket, 0, 0);
927 tcp_lock(oinp->inp_socket, 1, 0);
930 tcp_unlock(oinp->inp_socket, 1, 0);
942 tcp_unlock(oinp->inp_socket, 1, 0);
946 tcp_unlock(oinp->inp_socket, 1, 0);
955 socket_unlock(inp->inp_socket, 0);
957 socket_lock(inp->inp_socket, 0);
1012 struct socket *so = inp->inp_socket;
[all...]
H A Din_pcblist.c343 sotoxsocket_n(inp->inp_socket, xso);
344 sbtoxsockbuf_n(inp->inp_socket ? &inp->inp_socket->so_rcv : NULL, xsbrcv);
345 sbtoxsockbuf_n(inp->inp_socket ? &inp->inp_socket->so_snd : NULL, xsbsnd);
346 sbtoxsockstat_n(inp->inp_socket, xsostats);
419 inp->inp_socket != NULL &&
420 so_get_opportunistic(inp->inp_socket) &&
424 struct socket *so = inp->inp_socket;
H A Dtcp_timer.c309 tcp_unlock(tp->t_inpcb->inp_socket, 0, 0);
311 tcp_lock(tp->t_inpcb->inp_socket, 0, 0);
323 so = inp->inp_socket;
464 tcp_lock(inp->inp_socket, 1, 0);
487 tcp_unlock(inp->inp_socket, 1, 0);
553 so = tp->t_inpcb->inp_socket;
818 tp->t_inpcb->inp_socket->so_options & SO_KEEPALIVE) &&
886 if (tp->t_inpcb->inp_socket->so_options & SO_DEBUG)
1005 tcp_lock(tp->t_inpcb->inp_socket, 1, 0);
1007 so = tp->t_inpcb->inp_socket;
[all...]
H A Din_pcb.h153 struct socket *inp_socket; /* back pointer to socket */ member in struct:inpcb
282 _INPCB_PTR(void *) inp_socket; /* back pointer to socket */ member in struct:inpcb_compat
482 #define in6p_socket inp_socket /* for KAME src sync over BSD*'s */
540 ((_inp_)->inp_socket->so_flags & SOF_SUSPENDED))
H A Dtcp_timer.h247 (tp->t_keepidle && (tp->t_inpcb->inp_socket->so_options & SO_KEEPALIVE) ? \
H A Dtcp_newreno.c128 sb = &(tp->t_inpcb->inp_socket->so_snd);
140 sb = &(tp->t_inpcb->inp_socket->so_snd);
H A Dtcp_subr.c742 if (tp == NULL || (tp->t_inpcb->inp_socket->so_options & SO_DEBUG))
746 if (ipsec_bypass == 0 && ipsec_setsocket(m, tp ? tp->t_inpcb->inp_socket : NULL) != 0) {
757 set_packet_service_class(m, tp->t_inpcb->inp_socket,
832 register struct socket *so = inp->inp_socket;
905 struct socket *so = tp->t_inpcb->inp_socket;
968 struct socket *so = inp->inp_socket;
1466 if (inp->inp_socket)
1467 sotoxsocket(inp->inp_socket, &xt.xt_socket);
1647 if (inp->inp_socket)
1648 sotoxsocket64(inp->inp_socket,
[all...]
H A Dip_divert.c285 sa = inp->inp_socket;
623 if (inp->inp_socket)
624 sotoxsocket(inp->inp_socket, &xi.xi_socket);
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 Dtcp_input.c522 struct socket *so = tp->t_inpcb->inp_socket;
1025 struct socket *so = tp->t_inpcb->inp_socket;
1505 if (inp != NULL && ipsec6_in_reject_so(m, inp->inp_socket)) {
1517 if (inp != NULL && ipsec4_in_reject_so(m, inp->inp_socket)) {
1610 so = inp->inp_socket;
3962 if (tp == 0 || (tp->t_inpcb->inp_socket->so_options & SO_DEBUG))
3994 if (tp == 0 || (tp->t_inpcb->inp_socket->so_options & SO_DEBUG))
4413 so = inp->inp_socket;
H A Dtcp_output.c268 struct socket *so = tp->t_inpcb->inp_socket;
2181 soevent(inp->inp_socket,
2249 struct socket *so = tp->t_inpcb->inp_socket;
H A Dip_input.c2676 if (inp->inp_socket->so_options & SO_TIMESTAMP) {
2686 if ((inp->inp_socket->so_options & SO_TIMESTAMP_MONOTONIC) != 0) {
2777 if ((inp->inp_socket->so_flags & SOF_RECV_TRAFFIC_CLASS) != 0) {
/darwin-on-arm/xnu/bsd/netinet6/
H A Din6_pcb.c164 struct socket *so = inp->inp_socket;
185 struct socket *so = inp->inp_socket;
298 (t->inp_socket->so_options &
301 kauth_cred_getuid(t->inp_socket->so_cred)) &&
302 ((t->inp_socket->so_flags & SOF_REUSESHAREUID) == 0)) {
315 if (t && (t->inp_socket->so_options & SO_REUSEPORT) == 0 &&
317 kauth_cred_getuid(t->inp_socket->so_cred)) &&
321 INP_SOCKAF(t->inp_socket))) {
331 if (t && (reuseport & t->inp_socket->so_options) == 0) {
344 (reuseport & t->inp_socket
[all...]
H A Dudp6_usrreq.c385 reuse_sock = in6p->inp_socket->so_options &
393 if (ipsec6_in_reject_so(m, in6p->inp_socket)) {
661 if (!inp || !inp->inp_socket || !inp->inp_socket->so_cred) {
671 error = SYSCTL_OUT(req, inp->inp_socket->so_cred->pc_ucred,
H A Dudp6_output.c194 flowadv = (in6p->inp_socket->so_state & SS_ISCONNECTED) ? 1 : 0;
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 Din6_src.c1195 struct socket *so = inp->inp_socket;
1202 socket_unlock(inp->inp_socket, 0);
1204 socket_lock(inp->inp_socket, 0);
H A Dip6_input.c1491 if ((inp->inp_socket->so_options & SO_TIMESTAMP) != 0) {
1500 if ((inp->inp_socket->so_options & SO_TIMESTAMP_MONOTONIC) != 0) {
1510 if ((inp->inp_socket->so_flags & SOF_RECV_TRAFFIC_CLASS) != 0) {
1783 so = in6p->inp_socket;
H A Dipsec.c1481 error = ipsec_init_policy(inp->inp_socket, &inp->inp_sp);
1539 error = ipsec_init_policy(inp->inp_socket, &inp->inp_sp);
1622 error = ipsec_init_policy(in6p->inp_socket, &in6p->in6p_sp);
1678 error = ipsec_init_policy(in6p->inp_socket, &in6p->in6p_sp);
1977 if (inp->inp_socket)
1978 return ipsec4_in_reject_so(m, inp->inp_socket);
2138 if (inp != NULL && inp->inp_socket == NULL)
2148 sp = ipsec4_getpolicybysock(m, dir, inp->inp_socket, &error);
H A Draw_ip6.c197 if (ipsec_bypass == 0 && n && ipsec6_in_reject_so(n, last->inp_socket)) {
234 if (ipsec_bypass == 0 && last && ipsec6_in_reject_so(m, last->inp_socket)) {
/darwin-on-arm/xnu/bsd/kern/
H A Dkpi_socketfilter.c1205 so = inp->inp_socket;
1221 so = inp->inp_socket;
/darwin-on-arm/xnu/bsd/net/
H A Dbpf.c968 socket_lock(inp->inp_socket, 0);
969 pid = inp->inp_socket->last_pid;
971 socket_unlock(inp->inp_socket, 0);

Completed in 216 milliseconds

12