Home
last modified time | relevance | path

Searched refs:t_inpcb (Results 1 – 19 of 19) sorted by relevance

/xnu-11417.101.15/bsd/netinet/
H A Dtcp_log.h122 if (tp == NULL || tp->t_inpcb == NULL) { in tcp_is_log_enabled()
125 inp = tp->t_inpcb; in tcp_is_log_enabled()
128 ntohs(tp->t_inpcb->inp_fport) != tcp_log_port) { in tcp_is_log_enabled()
137 if (IN6_IS_ADDR_LOOPBACK(&tp->t_inpcb->in6p_laddr) || in tcp_is_log_enabled()
138 IN6_IS_ADDR_LOOPBACK(&tp->t_inpcb->in6p_faddr) || in tcp_is_log_enabled()
139 IN6_IS_ADDR_V4MAPPED_LOOPBACK(&tp->t_inpcb->in6p_laddr) || in tcp_is_log_enabled()
140 IN6_IS_ADDR_V4MAPPED_LOOPBACK(&tp->t_inpcb->in6p_faddr)) { in tcp_is_log_enabled()
142 } else if (!IN6_IS_ADDR_UNSPECIFIED(&tp->t_inpcb->in6p_laddr) || in tcp_is_log_enabled()
143 !IN6_IS_ADDR_UNSPECIFIED(&tp->t_inpcb->in6p_faddr)) { in tcp_is_log_enabled()
182 if (tp == NULL || tp->t_inpcb == NULL) { in tcp_log_summary_needed()
[all …]
H A Dtcp_log.c220 struct inpcb *inp = tp->t_inpcb; in tcp_log_rtt_info()
254 struct inpcb *inp = tp->t_inpcb; in tcp_log_rt_rtt()
298 struct inpcb *inp = tp->t_inpcb; in tcp_log_rtt_change()
335 struct inpcb *inp = tp->t_inpcb; in tcp_log_keepalive()
362 tp->t_inpcb->inp_socket->so_options & SO_KEEPALIVE, in tcp_log_keepalive()
384 if (tp == NULL || tp->t_inpcb == NULL || tp->t_inpcb->inp_socket == NULL || event == NULL) { in tcp_log_connection()
392 inp = tp->t_inpcb; in tcp_log_connection()
460 struct inpcb *inp = tp->t_inpcb; in tcp_log_listen()
468 if (tp == NULL || tp->t_inpcb == NULL || tp->t_inpcb->inp_socket == NULL) { in tcp_log_listen()
476 inp = tp->t_inpcb; in tcp_log_listen()
[all …]
H A Dtcp_timer.c549 struct inpcb *inp = tp->t_inpcb; in add_to_time_wait_locked()
582 if (tp->t_inpcb->inp_socket->so_options & SO_NOWAKEFROMSLEEP) { in add_to_time_wait()
583 socket_post_kev_msg_closed(tp->t_inpcb->inp_socket); in add_to_time_wait()
589 nstat_pcb_detach(tp->t_inpcb); in add_to_time_wait()
592 if ((tp->t_inpcb->inp_socket->so_flags & SOF_CONTENT_FILTER) != 0) { in add_to_time_wait()
594 (void) cfil_sock_tcp_add_time_wait(tp->t_inpcb->inp_socket); in add_to_time_wait()
608 socket_unlock(tp->t_inpcb->inp_socket, 0); in add_to_time_wait_now()
610 socket_lock(tp->t_inpcb->inp_socket, 0); in add_to_time_wait_now()
845 if (tcp_garbage_collect(tw_tp->t_inpcb, 1)) { in tcp_gc()
952 if (TCP_USE_RLEDBAT(tp, tp->t_inpcb->inp_socket) && in tcp_pmtud_revert_segment_size()
[all …]
H A Dtcp_cc.c84 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()
198 tp->t_inpcb->inp_socket->so_rcv.sb_cc > tp->t_inpcb->inp_socket->so_rcv.sb_lowat && in tcp_cc_delay_ack()
262 struct socket *so = tp->t_inpcb->inp_socket; in tcp_cc_is_cwnd_nonvalidated()
H A Dtcp_subr.c672 struct inpcb *inp = tp->t_inpcb; in tcp_fillheaders()
785 …check_qos_marking_again = tp->t_inpcb->inp_socket->so_flags1 & SOF1_QOSMARKING_POLICY_OVERRIDE ? F… in tcp_respond()
786 sifscope = tp->t_inpcb->inp_lifscope; in tcp_respond()
787 fifscope = tp->t_inpcb->inp_fifscope; in tcp_respond()
795 ro6 = &tp->t_inpcb->in6p_route; in tcp_respond()
797 ro = &tp->t_inpcb->inp_route; in tcp_respond()
906 ip6->ip6_hlim = in6_selecthlim(tp ? tp->t_inpcb : NULL, in tcp_respond()
915 necp_mark_packet_from_socket(m, tp ? tp->t_inpcb : NULL, 0, 0, 0, 0); in tcp_respond()
919 if (tp != NULL && tp->t_inpcb->inp_sp != NULL && in tcp_respond()
920 ipsec_setsocket(m, tp ? tp->t_inpcb->inp_socket : NULL) != 0) { in tcp_respond()
[all …]
H A Dmptcp_opt.c237 struct socket *so = tp->t_inpcb->inp_socket; in mptcp_send_infinite_mapping()
325 struct inpcb *inp = (struct inpcb *)tp->t_inpcb; in mptcp_setup_opts()
1104 if (tp->t_inpcb->inp_socket != NULL) { \ in mptcp_do_mpjoin_opt()
1105 soevent(tp->t_inpcb->inp_socket, \ in mptcp_do_mpjoin_opt()
1215 tp->t_inpcb->inp_socket->so_flags1 |= in mptcp_data_ack_rcvd()
1248 sowwakeup(tp->t_inpcb->inp_socket); in mptcp_update_window_wakeup()
1283 mptcp_notify_mpready(tp->t_inpcb->inp_socket); in mptcp_do_dss_opt_ack_meat()
1285 mptcp_notify_close(tp->t_inpcb->inp_socket); in mptcp_do_dss_opt_ack_meat()
1587 if (tp->t_inpcb->inp_socket != NULL) { in mptcp_do_fastclose_opt()
1588 soevent(tp->t_inpcb->inp_socket, in mptcp_do_fastclose_opt()
[all …]
H A Dtcp_input.c567 struct inpcb *inp = tp->t_inpcb; in tcp_reass()
893 struct ifnet *outifp = tp->t_inpcb->inp_last_outifp; in tcp_adaptive_rwtimo_check()
925 ASSERT((tp->t_inpcb->inp_socket->so_state & (SS_CANTRCVMORE)) == SS_CANTRCVMORE); in tcp_set_finwait_timeout()
1215 struct socket *so = tp->t_inpcb->inp_socket; in tcp_sbrcv_tstmp_check()
1495 struct socket *so = tp->t_inpcb->inp_socket; in tcp_early_rexmt_check()
1601 tcp_tfo_gen_cookie(tp->t_inpcb, out, sizeof(out)); in tcp_tfo_syn()
1743 if (tp->t_inpcb->inp_socket->so_flags & SOF_MP_SUBFLOW) { in tcp_update_window()
1782 if (tp->t_inpcb->inp_stat->rxbytes > INT32_MAX) { in tcp_syn_data_valid()
2890 tp->t_inpcb->inp_ip_ttl = tp0->t_inpcb->inp_ip_ttl; in tcp_input()
2897 tp->t_inpcb->inp_flags2 |= in tcp_input()
[all …]
H A Dtcp_output.c312 struct socket *__single so = tp->t_inpcb->inp_socket; in tcp_tfo_check()
399 tcp_tfo_gen_cookie(tp->t_inpcb, out, sizeof(out));
420 struct socket *__single so = tp->t_inpcb->inp_socket; in tcp_tfo_write_cookie()
519 inbound = (tp->t_inpcb->inp_socket->so_head != NULL); in tcp_set_ecn()
724 struct inpcb *__single inp = tp->t_inpcb; in tcp_output()
817 link_heuristics_enabled = if_link_heuristics_enabled(tp->t_inpcb->inp_last_outifp); in tcp_output()
855 if (rt != NULL && ROUTE_UNUSABLE(&tp->t_inpcb->inp_route)) { in tcp_output()
944 if (rt->rt_ifp != tp->t_inpcb->inp_last_outifp) { in tcp_output()
2973 struct ifnet *outifp = tp->t_inpcb->inp_last_outifp; in tcp_output()
3425 struct inpcb *__single inp = tp->t_inpcb; in tcp_ip_output()
[all …]
H A Dtcp_timer.h304 ((tp)->t_inpcb->inp_socket->so_options & SO_KEEPALIVE) ? \
H A Dtcp_ccdbg.c87 struct inpcb *__single inp = tp->t_inpcb; in tcp_ccdbg_trace()
H A Dtcp_cubic.c129 if (tp->t_inpcb->inp_stat->txbytes <= tcp_initial_cwnd(tp) && in tcp_cubic_cwnd_init_or_reset()
222 ((!soissrcrealtime((_tp_)->t_inpcb->inp_socket) && \
H A Dtcp_cache.c407 struct inpcb *inp = tp->t_inpcb; in tcp_cache_key_src_create()
587 struct inpcb *inp = tp->t_inpcb; in tcp_cache_update_mptcp_version()
1069 IFNET_IS_WIFI(tp->t_inpcb->inp_last_outifp)) { in tcp_heuristic_tfo_loss()
1109 IFNET_IS_WIFI(tp->t_inpcb->inp_last_outifp)) { in tcp_heuristic_mptcp_loss()
1124 IFNET_IS_WIFI(tp->t_inpcb->inp_last_outifp)) { in tcp_heuristic_ecn_loss()
H A Dtcp_var.h390 struct inpcb *t_inpcb; /* back pointer to internet pcb */ member
894 if (INP_IS_FLOW_CONTROLLED((_tp_)->t_inpcb)) \
895 inp_reset_fc_state((_tp_)->t_inpcb); \
1007 (probe_if_index > 0 && tp->t_inpcb->inp_last_outifp != NULL && \
1008 probe_if_index == tp->t_inpcb->inp_last_outifp->if_index)
1100 _TCPCB_PTR(struct inpcb *) t_inpcb; /* back pointer to internet pcb */
H A Dtcp_usrreq.c1099 struct inpcb *inp = tp->t_inpcb; in mpkl_tcp_send()
1485 struct inpcb *inp = tp->t_inpcb, *oinp; in tcp_connect()
1618 struct inpcb *inp = tp->t_inpcb, *oinp; in tcp6_connect()
1756 struct inpcb *inp = tp->t_inpcb; in tcp_fill_info()
2043 struct inpcb *inp = tp->t_inpcb; in tcp_connection_fill_info()
3153 struct socket *so = tp->t_inpcb->inp_socket; in tcp_disconnect()
3208 struct inpcb *, tp->t_inpcb, in tcp_usrclosed()
3218 struct inpcb *, tp->t_inpcb, in tcp_usrclosed()
3227 soisdisconnected(tp->t_inpcb->inp_socket); in tcp_usrclosed()
H A Dmptcp.c1133 mptcp_notify_mpfail(tp->t_inpcb->inp_socket); in mptcp_update_rcv_state_meat()
1137 mptcp_notify_mpready(tp->t_inpcb->inp_socket); in mptcp_update_rcv_state_meat()
1207 mptcp_notify_mpfail(tp->t_inpcb->inp_socket); in mptcp_validate_csum()
H A Dtcp_prague.c646 if (tp->t_inpcb->inp_stat->txbytes <= tcp_initial_cwnd(tp) && in tcp_prague_cwnd_init_or_reset()
H A Dtcp_sack.c382 INP_INC_IFNET_STAT(tp->t_inpcb, ecn_fallback_reorder); in tcp_sack_detect_reordering()
H A Dmptcp_usrreq.c2014 ti->tcpi_last_outif = (acttp->t_inpcb->inp_last_outifp == NULL) ? 0 : in mptcp_fill_info()
2015 acttp->t_inpcb->inp_last_outifp->if_index; in mptcp_fill_info()
H A Dmptcp_subr.c6874 inp = tp->t_inpcb; in mptcp_reset_rexmit_state()