Lines Matching refs:t_inpcb

268 	struct socket *so = tp->t_inpcb->inp_socket;
294 struct mbuf *tp_inp_options = tp->t_inpcb->inp_depend4.inp4_options;
296 int isipv6 = tp->t_inpcb->inp_vflag & INP_IPV6 ;
322 DTRACE_TCP5(cc, void, NULL, struct inpcb *, tp->t_inpcb,
339 ((tp->t_inpcb->inp_fport << 16) | tp->t_inpcb->inp_lport),
340 (((tp->t_inpcb->in6p_laddr.s6_addr16[0] & 0xffff) << 16) |
341 (tp->t_inpcb->in6p_faddr.s6_addr16[0] & 0xffff)),
348 ((tp->t_inpcb->inp_fport << 16) | tp->t_inpcb->inp_lport),
349 (((tp->t_inpcb->inp_laddr.s_addr & 0xffff) << 16) |
350 (tp->t_inpcb->inp_faddr.s_addr & 0xffff)),
359 rt = tp->t_inpcb->inp_route.ro_rt;
374 ia6 = ifa_foraddr6(&tp->t_inpcb->in6p_laddr);
378 ia = ifa_foraddr(tp->t_inpcb->inp_laddr.s_addr);
524 nstat_route_tx(tp->t_inpcb->inp_route.ro_rt, 1,
526 locked_add_64(&tp->t_inpcb->inp_stat->txpackets, 1);
527 locked_add_64(&tp->t_inpcb->inp_stat->txbytes,
638 while (tp->t_inpcb->inp_sndinprog_cnt == 0 &&
661 if (tp->t_inpcb->inp_sndinprog_cnt == 0 &&
721 !INP_WAIT_FOR_IF_FEEDBACK(tp->t_inpcb) && !IN_FASTRECOVERY(tp) &&
783 tp->t_inpcb->inp_options == NULL &&
784 tp->t_inpcb->in6p_options == NULL
841 if (!INP_WAIT_FOR_IF_FEEDBACK(tp->t_inpcb) ||
972 while (tp->t_inpcb->inp_sndinprog_cnt == 0 &&
989 if (tp->t_inpcb->inp_sndinprog_cnt == 0 &&
1232 ipoptlen = ip6_optlen(tp->t_inpcb);
1299 VERIFY(tp->t_inpcb->inp_flowhash != 0);
1313 nstat_route_tx(tp->t_inpcb->inp_route.ro_rt, 1,
1315 locked_add_64(&tp->t_inpcb->inp_stat->txpackets, 1);
1316 locked_add_64(&tp->t_inpcb->inp_stat->txbytes, len);
1323 locked_add_64(&tp->t_inpcb->inp_stat->txpackets, 1);
1324 locked_add_64(&tp->t_inpcb->inp_stat->txbytes, len);
1457 mac_mbuf_label_associate_inpcb(tp->t_inpcb, m);
1717 ip6->ip6_hlim = in6_selecthlim(tp->t_inpcb,
1718 tp->t_inpcb->in6p_route.ro_rt ?
1719 tp->t_inpcb->in6p_route.ro_rt->rt_ifp
1724 ((tp->t_inpcb->inp_fport << 16) | tp->t_inpcb->inp_lport),
1725 (((tp->t_inpcb->in6p_laddr.s6_addr16[0] & 0xffff) << 16) |
1726 (tp->t_inpcb->in6p_faddr.s6_addr16[0] & 0xffff)),
1732 ip->ip_ttl = tp->t_inpcb->inp_ip_ttl; /* XXX */
1733 ip->ip_tos |= (tp->t_inpcb->inp_ip_tos & ~IPTOS_ECN_MASK);/* XXX */
1735 ((tp->t_inpcb->inp_fport << 16) | tp->t_inpcb->inp_lport),
1736 (((tp->t_inpcb->inp_laddr.s_addr & 0xffff) << 16) |
1737 (tp->t_inpcb->inp_faddr.s_addr & 0xffff)),
1771 m->m_pkthdr.m_flowhash = tp->t_inpcb->inp_flowhash;
1777 if (tp->t_inpcb->inp_last_outifp != NULL &&
1778 tp->t_inpcb->inp_last_outifp != lo_ifp) {
1787 (tp->t_inpcb->inp_last_outifp->if_eflags &
1801 DTRACE_TCP5(send, struct mbuf *, m, struct inpcb *, tp->t_inpcb,
1807 DTRACE_TCP5(send, struct mbuf *, m, struct inpcb *, tp->t_inpcb,
1848 while (tp->t_inpcb->inp_sndinprog_cnt == 0 &&
1880 if (tp->t_inpcb->inp_sndinprog_cnt == 0 &&
1931 DTRACE_TCP5(cc, void, NULL, struct inpcb *, tp->t_inpcb,
1952 tcp_mtudisc(tp->t_inpcb, 0);
1988 struct inpcb *inp = tp->t_inpcb;
2193 tp->t_inpcb->inp_route.ro_rt != NULL) {
2197 tcp_getrt_rtt(tp, tp->t_inpcb->in6p_route.ro_rt);
2249 struct socket *so = tp->t_inpcb->inp_socket;