| /xnu-12377.41.6/bsd/netinet6/ |
| H A D | in6_pcb.c | 165 struct socket *so = inp->inp_socket; in in6_pcblookup_local_and_cleanup() 190 struct socket *__single so = inp->inp_socket; in in6_pcbbind() 406 !(t->inp_socket->so_options & SO_REUSEPORT)) && in in6_pcbbind() 407 (u != kauth_cred_getuid(t->inp_socket->so_cred)) && in in6_pcbbind() 408 !(t->inp_socket->so_flags & SOF_REUSESHAREUID) && in in6_pcbbind() 426 !(t->inp_socket->so_options & SO_REUSEPORT) && in in6_pcbbind() 428 kauth_cred_getuid(t->inp_socket->so_cred)) && in in6_pcbbind() 430 SOCK_DOM(so) == SOCK_DOM(t->inp_socket)) && in in6_pcbbind() 463 (reuseport & t->inp_socket->so_options) == 0 && in in6_pcbbind() 483 t->inp_socket->so_options) == 0 && in in6_pcbbind() [all …]
|
| H A D | udp6_output.c | 630 in6p->inp_socket->so_flags1 |= SOF1_QOSMARKING_ALLOWED; in udp6_output() 632 in6p->inp_socket->so_flags1 &= ~SOF1_QOSMARKING_ALLOWED; in udp6_output() 744 soevent(in6p->inp_socket, (SO_FILT_HINT_LOCKED | in udp6_output()
|
| H A D | ip6_input.c | 1826 if ((inp->inp_socket->so_options & SO_TIMESTAMP) != 0) { in ip6_savecontrol_v4() 1836 if ((inp->inp_socket->so_options & SO_TIMESTAMP_MONOTONIC) != 0) { in ip6_savecontrol_v4() 1846 if ((inp->inp_socket->so_options & SO_TIMESTAMP_CONTINUOUS) != 0) { in ip6_savecontrol_v4() 1856 if ((inp->inp_socket->so_flags & SOF_RECV_TRAFFIC_CLASS) != 0) { in ip6_savecontrol_v4() 1866 if ((inp->inp_socket->so_flags & SOF_RECV_WAKE_PKT) && in ip6_savecontrol_v4() 1896 if ((inp->inp_flags & IN6P_PKTINFO) != 0 || SOFLOW_ENABLED(inp->inp_socket)) { in ip6_savecontrol_v4() 1917 if ((inp->inp_flags & IN6P_PKTINFO) != 0 || SOFLOW_ENABLED(inp->inp_socket)) { in ip6_savecontrol_v4() 2141 so = in6p->inp_socket; in ip6_notify_pmtu()
|
| H A D | in6_mcast.c | 1847 if (SOCK_PROTO(inp->inp_socket) == IPPROTO_DIVERT || in ip6_getmoptions() 1848 (SOCK_TYPE(inp->inp_socket) != SOCK_RAW && in ip6_getmoptions() 1849 SOCK_TYPE(inp->inp_socket) != SOCK_DGRAM)) { in ip6_getmoptions() 2988 if (SOCK_PROTO(inp->inp_socket) == IPPROTO_DIVERT || in ip6_setmoptions() 2989 (SOCK_TYPE(inp->inp_socket) != SOCK_RAW && in ip6_setmoptions() 2990 SOCK_TYPE(inp->inp_socket) != SOCK_DGRAM)) { in ip6_setmoptions()
|
| /xnu-12377.41.6/bsd/netinet/ |
| H A D | tcp_ccdbg.c | 98 inet_ntop(SOCK_DOM(inp->inp_socket), in tcp_ccdbg_trace() 99 ((SOCK_DOM(inp->inp_socket) == PF_INET) ? in tcp_ccdbg_trace() 104 inet_ntop(SOCK_DOM(inp->inp_socket), in tcp_ccdbg_trace() 105 ((SOCK_DOM(inp->inp_socket) == PF_INET) ? in tcp_ccdbg_trace() 119 dbg_state.ccd_sndcc = inp->inp_socket->so_snd.sb_cc; in tcp_ccdbg_trace() 120 dbg_state.ccd_sndhiwat = inp->inp_socket->so_snd.sb_hiwat; in tcp_ccdbg_trace()
|
| H A D | in_pcblist.c | 420 sotoxsocket_n(inp->inp_socket, xso); in get_pcblist_n() 421 sbtoxsockbuf_n(inp->inp_socket ? in get_pcblist_n() 422 &inp->inp_socket->so_rcv : NULL, xsbrcv); in get_pcblist_n() 423 sbtoxsockbuf_n(inp->inp_socket ? in get_pcblist_n() 424 &inp->inp_socket->so_snd : NULL, xsbsnd); in get_pcblist_n() 425 sbtoxsockstat_n(inp->inp_socket, xsostats); in get_pcblist_n() 520 if ((so = inp->inp_socket) == NULL || inp->inp_lport == 0) { in inpcb_get_if_ports_used() 568 if (SOCK_PROTO(inp->inp_socket) != IPPROTO_UDP && in inpcb_get_if_ports_used() 569 SOCK_PROTO(inp->inp_socket) != IPPROTO_TCP) { in inpcb_get_if_ports_used() 621 SOCK_PROTO(inp->inp_socket) == IPPROTO_TCP ? "tcp" : "udp", in inpcb_get_if_ports_used() [all …]
|
| H A D | in_pcb.c | 611 if (inp->inp_socket != NULL) { in inp_snprintf_tuple() 612 proto = SOCK_PROTO(inp->inp_socket); in inp_snprintf_tuple() 649 if (soopt_cred_check(inp->inp_socket, PRIV_NET_RESTRICTED_INTCOPROC, false, false) == 0 in in_pcb_check_management_entitled() 717 inp->inp_socket = so; in in_pcballoc() 771 struct socket *so = inp->inp_socket; in in_pcblookup_local_and_cleanup() 830 struct socket *so = inp->inp_socket; in in_pcbbind() 1023 !(t->inp_socket->so_options & SO_REUSEPORT)) && in in_pcbbind() 1024 (u != kauth_cred_getuid(t->inp_socket->so_cred)) && in in_pcbbind() 1025 !(t->inp_socket->so_flags & SOF_REUSESHAREUID) && in in_pcbbind() 1031 if ((t->inp_socket->so_flags & in in_pcbbind() [all …]
|
| H A D | udp_usrreq.c | 480 if (inp->inp_socket == NULL) { in udp_input() 483 if (inp != sotoinpcb(inp->inp_socket)) { in udp_input() 513 udp_lock(inp->inp_socket, 1, 0); in udp_input() 517 udp_unlock(inp->inp_socket, 1, 0); in udp_input() 522 udp_unlock(inp->inp_socket, 1, 0); in udp_input() 528 udp_unlock(inp->inp_socket, 1, 0); in udp_input() 536 udp_unlock(inp->inp_socket, 1, 0); in udp_input() 547 udp_unlock(inp->inp_socket, 1, 0); in udp_input() 565 udp_unlock(inp->inp_socket, 1, 0); in udp_input() 575 reuse_sock = (inp->inp_socket->so_options & in udp_input() [all …]
|
| H A D | tcp_log.c | 223 struct socket *so = inp->inp_socket; in tcp_log_rtt_info() 257 struct socket *so = inp->inp_socket; in tcp_log_rt_rtt() 301 struct socket *so = inp->inp_socket; in tcp_log_rtt_change() 338 struct socket *so = inp->inp_socket; in tcp_log_keepalive() 365 tp->t_inpcb->inp_socket->so_options & SO_KEEPALIVE, in tcp_log_keepalive() 387 if (tp == NULL || tp->t_inpcb == NULL || tp->t_inpcb->inp_socket == NULL || event == NULL) { in tcp_log_connection() 396 so = inp->inp_socket; in tcp_log_connection() 464 struct socket *so = inp->inp_socket; in tcp_log_listen() 471 if (tp == NULL || tp->t_inpcb == NULL || tp->t_inpcb->inp_socket == NULL) { in tcp_log_listen() 480 so = inp->inp_socket; in tcp_log_listen() [all …]
|
| H A D | tcp_cc.c | 84 sb = &tp->t_inpcb->inp_socket->so_snd; in tcp_cc_resize_sndbuf() 98 sb = &tp->t_inpcb->inp_socket->so_snd; in tcp_bad_rexmt_fix_sndbuf() 189 tp->t_inpcb->inp_socket->so_rcv.sb_cc > tp->t_inpcb->inp_socket->so_rcv.sb_lowat && in tcp_cc_delay_ack() 224 struct socket *so = tp->t_inpcb->inp_socket; in tcp_cc_is_cwnd_nonvalidated()
|
| H A D | udp_log.c | 209 struct socket *so = inp->inp_socket; in udp_log_common() 220 so = inp->inp_socket; in udp_log_common() 261 if (inp == NULL || inp->inp_socket == NULL) { in udp_log_bind() 284 if (inp == NULL || inp->inp_socket == NULL) { in udp_log_connect() 313 if (inp == NULL || inp->inp_socket == NULL) { in udp_log_connection_summary() 333 so = inp->inp_socket; in udp_log_connection_summary() 409 if (inp == NULL || inp->inp_socket == NULL) { in udp_log_message() 422 so = inp->inp_socket; in udp_log_message() 534 so = inp->inp_socket; in udp_log_drop_pcb()
|
| H A D | tcp_subr.c | 953 …check_qos_marking_again = tp->t_inpcb->inp_socket->so_flags1 & SOF1_QOSMARKING_POLICY_OVERRIDE ? F… in tcp_respond() 1105 ipsec_setsocket(m, tp ? tp->t_inpcb->inp_socket : NULL) != 0) { in tcp_respond() 1116 sotc = tp->t_inpcb->inp_socket->so_traffic_class; in tcp_respond() 1118 set_packet_service_class(m, tp->t_inpcb->inp_socket, in tcp_respond() 1129 m->m_pkthdr.tx_tcp_pid = tp->t_inpcb->inp_socket->last_pid; in tcp_respond() 1130 m->m_pkthdr.tx_tcp_e_pid = tp->t_inpcb->inp_socket->e_pid; in tcp_respond() 1176 if ((tp->t_inpcb->inp_socket->so_flags1 & SOF1_QOSMARKING_ALLOWED)) { in tcp_respond() 1183 ip6oa.ip6oa_netsvctype = tp->t_inpcb->inp_socket->so_netsvctype; in tcp_respond() 1192 inp->inp_socket->so_flags1 |= SOF1_QOSMARKING_ALLOWED; in tcp_respond() 1194 inp->inp_socket->so_flags1 &= ~SOF1_QOSMARKING_ALLOWED; in tcp_respond() [all …]
|
| H A D | tcp_timer.c | 579 if (tp->t_inpcb->inp_socket->so_options & SO_NOWAKEFROMSLEEP) { in add_to_time_wait() 580 socket_post_kev_msg_closed(tp->t_inpcb->inp_socket); in add_to_time_wait() 589 if ((tp->t_inpcb->inp_socket->so_flags & SOF_CONTENT_FILTER) != 0) { in add_to_time_wait() 591 (void) cfil_sock_tcp_add_time_wait(tp->t_inpcb->inp_socket); in add_to_time_wait() 605 socket_unlock(tp->t_inpcb->inp_socket, 0); in add_to_time_wait_now() 607 socket_lock(tp->t_inpcb->inp_socket, 0); in add_to_time_wait_now() 632 so = inp->inp_socket; in tcp_garbage_collect() 944 if (TCP_USE_RLEDBAT(tp, tp->t_inpcb->inp_socket) && in tcp_pmtud_revert_segment_size() 953 tcp_update_mss_locked(tp->t_inpcb->inp_socket, NULL); in tcp_pmtud_revert_segment_size() 1030 so = tp->t_inpcb->inp_socket; in tcp_timers() [all …]
|
| H A D | raw_ip.c | 219 SOFLOW_ENABLED(inp->inp_socket) || in rip_inp_input() 220 SO_RECV_CONTROL_OPTS(inp->inp_socket)) { in rip_inp_input() 232 && (!CFIL_DGRAM_FILTERED(inp->inp_socket)) in rip_inp_input() 239 so_recv_data_stat(inp->inp_socket, m, 0); in rip_inp_input() 240 if (sbappendaddr(&inp->inp_socket->so_rcv, in rip_inp_input() 243 sorwakeup(inp->inp_socket); in rip_inp_input() 702 inp->inp_socket == NULL || in rip_output() 707 !(inp->inp_socket->so_state & SS_ISCONNECTED)) { in rip_output() 1285 if (inp->inp_socket) { 1286 sotoxsocket(inp->inp_socket, &xi.xi_socket); [all …]
|
| H A D | tcp_usrreq.c | 1486 struct socket *so = inp->inp_socket; in tcp_connect() 1510 socket_unlock(inp->inp_socket, 0); in tcp_connect() 1516 socket_lock(inp->inp_socket, 0); in tcp_connect() 1519 socket_lock(oinp->inp_socket, 1); in tcp_connect() 1523 socket_unlock(oinp->inp_socket, 1); in tcp_connect() 1535 socket_unlock(oinp->inp_socket, 1); in tcp_connect() 1541 socket_unlock(oinp->inp_socket, 1); in tcp_connect() 1564 socket_unlock(inp->inp_socket, 0); in tcp_connect() 1566 socket_lock(inp->inp_socket, 0); in tcp_connect() 1619 struct socket *so = inp->inp_socket; in tcp6_connect() [all …]
|
| H A D | mptcp_opt.c | 237 struct socket *so = tp->t_inpcb->inp_socket; in mptcp_send_infinite_mapping() 326 struct socket *so = inp->inp_socket; in mptcp_setup_opts() 1044 if (tp->t_inpcb->inp_socket != NULL) { in mptcp_do_mpjoin_opt() 1045 soevent(tp->t_inpcb->inp_socket, in mptcp_do_mpjoin_opt() 1121 tp->t_inpcb->inp_socket->so_flags1 |= in mptcp_data_ack_rcvd() 1154 sowwakeup(tp->t_inpcb->inp_socket); in mptcp_update_window_wakeup() 1189 mptcp_notify_mpready(tp->t_inpcb->inp_socket); in mptcp_do_dss_opt_ack_meat() 1191 mptcp_notify_close(tp->t_inpcb->inp_socket); in mptcp_do_dss_opt_ack_meat() 1517 if (tp->t_inpcb->inp_socket != NULL) { in mptcp_do_fastclose_opt() 1518 soevent(tp->t_inpcb->inp_socket, in mptcp_do_fastclose_opt() [all …]
|
| H A D | in_pcb.h | 166 struct socket *inp_socket; /* back pointer to socket */ member 414 _INPCB_PTR(void *) inp_socket; /* back pointer to socket */ 610 #define in6p_socket inp_socket 759 ((_inp_)->inp_socket->so_flags & SOF_SUSPENDED)) ? true : false)
|
| H A D | tcp_timer.h | 289 ((tp)->t_inpcb->inp_socket->so_options & SO_KEEPALIVE) ? \
|
| H A D | mptcp.c | 1023 if (mptcp_subflow_cwnd_space(bestinp->inp_socket) <= 0) { in mptcp_get_subflow() 1142 mptcp_notify_mpfail(tp->t_inpcb->inp_socket); in mptcp_update_rcv_state_meat() 1146 mptcp_notify_mpready(tp->t_inpcb->inp_socket); in mptcp_update_rcv_state_meat() 1216 mptcp_notify_mpfail(tp->t_inpcb->inp_socket); in mptcp_validate_csum()
|
| H A D | in_mcast.c | 1921 if (SOCK_PROTO(inp->inp_socket) == IPPROTO_DIVERT || in inp_getmoptions() 1922 (SOCK_TYPE(inp->inp_socket) != SOCK_RAW && in inp_getmoptions() 1923 SOCK_TYPE(inp->inp_socket) != SOCK_DGRAM)) { in inp_getmoptions() 3012 if (SOCK_PROTO(inp->inp_socket) == IPPROTO_DIVERT || in inp_setmoptions() 3013 (SOCK_TYPE(inp->inp_socket) != SOCK_RAW && in inp_setmoptions() 3014 SOCK_TYPE(inp->inp_socket) != SOCK_DGRAM)) { in inp_setmoptions()
|
| H A D | tcp_cubic.c | 215 ((!soissrcrealtime((_tp_)->t_inpcb->inp_socket) && \
|
| H A D | ip_input.c | 3392 if (inp->inp_socket->so_options & SO_TIMESTAMP) { in ip_savecontrol() 3402 if (inp->inp_socket->so_options & SO_TIMESTAMP_MONOTONIC) { in ip_savecontrol() 3412 if (inp->inp_socket->so_options & SO_TIMESTAMP_CONTINUOUS) { in ip_savecontrol() 3422 if (inp->inp_socket->so_flags & SOF_RECV_TRAFFIC_CLASS) { in ip_savecontrol() 3431 if ((inp->inp_socket->so_flags & SOF_RECV_WAKE_PKT) && in ip_savecontrol() 3442 if (inp->inp_flags & INP_RECVDSTADDR || SOFLOW_ENABLED(inp->inp_socket)) { in ip_savecontrol()
|
| /xnu-12377.41.6/tools/lldbmacros/ |
| H A D | ntstat.py | 273 inp_socket = inpcb.inp_socket 274 sock = Cast(inp_socket, 'struct socket *')
|
| /xnu-12377.41.6/bsd/net/ |
| H A D | content_filter.c | 1666 so = inp->inp_socket; in cfil_socket_safe_lock() 1699 inp->inp_socket != NULL && in cfil_socket_from_sock_id() 1701 (inp->inp_socket->so_gencnt & 0x0ffffffff) == gencnt && in cfil_socket_from_sock_id() 1702 inp->inp_socket->so_cfil != NULL) { in cfil_socket_from_sock_id() 1704 so = inp->inp_socket; in cfil_socket_from_sock_id() 1721 inp->inp_socket != NULL && in cfil_socket_from_sock_id() 1722 inp->inp_socket->so_flow_db != NULL && in cfil_socket_from_sock_id() 1723 (inp->inp_socket->so_gencnt & 0x0ffffffff) == gencnt) { in cfil_socket_from_sock_id() 1725 so = inp->inp_socket; in cfil_socket_from_sock_id() 1740 inp->inp_socket != NULL && in cfil_socket_from_sock_id() [all …]
|
| /xnu-12377.41.6/bsd/kern/ |
| H A D | socket_flows.c | 1297 so = inp->inp_socket; in soflow_socket_safe_lock() 1323 if (inp->inp_state != INPCB_STATE_DEAD && inp->inp_socket == so) { in soflow_validate_dgram_socket() 1325 locked = inp->inp_socket; in soflow_validate_dgram_socket() 1339 if (inp->inp_state != INPCB_STATE_DEAD && inp->inp_socket == so) { in soflow_validate_dgram_socket() 1341 locked = inp->inp_socket; in soflow_validate_dgram_socket()
|