Lines Matching refs:inp

263 	struct inpcb *inp = tp->t_inpcb;
264 struct socket *so = inp->inp_socket;
290 struct mbuf *tp_inp_options = inp->inp_depend4.inp4_options;
292 int isipv6 = inp->inp_vflag & INP_IPV6 ;
326 DTRACE_TCP5(cc, void, NULL, struct inpcb *, inp,
355 ((inp->inp_fport << 16) | inp->inp_lport),
356 (((inp->in6p_laddr.s6_addr16[0] & 0xffff) << 16) |
357 (inp->in6p_faddr.s6_addr16[0] & 0xffff)),
364 ((inp->inp_fport << 16) | inp->inp_lport),
365 (((inp->inp_laddr.s_addr & 0xffff) << 16) |
366 (inp->inp_faddr.s_addr & 0xffff)),
375 rt = inp->inp_route.ro_rt;
389 ia6 = ifa_foraddr6(&inp->in6p_laddr);
393 ia = ifa_foraddr(inp->inp_laddr.s_addr);
543 nstat_route_tx(inp->inp_route.ro_rt, 1,
546 INP_ADD_STAT(inp, cell, wifi, txpackets, 1);
547 INP_ADD_STAT(inp, cell, wifi, txbytes,
659 while (inp->inp_sndinprog_cnt == 0 &&
682 if (inp->inp_sndinprog_cnt == 0 &&
742 !INP_WAIT_FOR_IF_FEEDBACK(inp) && !IN_FASTRECOVERY(tp) &&
802 inp->inp_options == NULL &&
803 inp->in6p_options == NULL
907 if (!INP_WAIT_FOR_IF_FEEDBACK(inp) ||
1044 while (inp->inp_sndinprog_cnt == 0 &&
1061 if (inp->inp_sndinprog_cnt == 0 &&
1339 ipoptlen = ip6_optlen(inp);
1425 VERIFY(inp->inp_flowhash != 0);
1438 nstat_route_tx(inp->inp_route.ro_rt, 1,
1440 INP_ADD_STAT(inp, cell, wifi, txpackets, 1);
1441 INP_ADD_STAT(inp, cell, wifi, txbytes, len);
1449 INP_ADD_STAT(inp, cell, wifi, txpackets, 1);
1450 INP_ADD_STAT(inp, cell, wifi, txbytes, len);
1624 mac_mbuf_label_associate_inpcb(inp, m);
1890 ip6->ip6_hlim = in6_selecthlim(inp, inp->in6p_route.ro_rt ?
1891 inp->in6p_route.ro_rt->rt_ifp : NULL);
1895 ((inp->inp_fport << 16) | inp->inp_lport),
1896 (((inp->in6p_laddr.s6_addr16[0] & 0xffff) << 16) |
1897 (inp->in6p_faddr.s6_addr16[0] & 0xffff)),
1903 ip->ip_ttl = inp->inp_ip_ttl; /* XXX */
1904 ip->ip_tos |= (inp->inp_ip_tos & ~IPTOS_ECN_MASK);/* XXX */
1906 ((inp->inp_fport << 16) | inp->inp_lport),
1907 (((inp->inp_laddr.s_addr & 0xffff) << 16) |
1908 (inp->inp_faddr.s_addr & 0xffff)), 0,0,0);
1941 m->m_pkthdr.pkt_flowid = inp->inp_flowhash;
1952 if (inp->inp_last_outifp != NULL &&
1953 !(inp->inp_last_outifp->if_flags & IFF_LOOPBACK)) {
1962 (inp->inp_last_outifp->if_eflags &
1976 DTRACE_TCP5(send, struct mbuf *, m, struct inpcb *, inp,
1982 DTRACE_TCP5(send, struct mbuf *, m, struct inpcb *, inp,
2029 while (inp->inp_sndinprog_cnt == 0 &&
2061 if (inp->inp_sndinprog_cnt == 0 &&
2123 DTRACE_TCP5(cc, void, NULL, struct inpcb *, inp,
2144 tcp_mtudisc(inp, 0);
2156 !((inp->inp_flags & INP_NO_IFT_CELLULAR) &&
2157 inp->inp_last_outifp != NULL &&
2158 IFNET_IS_CELLULAR(inp->inp_last_outifp))) {
2189 struct inpcb *inp = tp->t_inpcb;
2205 if (inp->inp_flags & INP_BOUND_IF) {
2208 ip6oa.ip6oa_boundif = inp->inp_boundifp->if_index;
2213 ipoa.ipoa_boundif = inp->inp_boundifp->if_index;
2218 if (inp->inp_flags & INP_NO_IFT_CELLULAR) {
2236 in6p_route_copyout(inp, &ro6);
2239 inp_route_copyout(inp, &ro);
2256 inp->inp_sndinprog_cnt++;
2313 inp->in6p_outputopts, &ro6, flags, NULL, NULL,
2351 rc = inp_set_fc_state(inp, adv->code);
2354 DTRACE_TCP5(cc, void, NULL, struct inpcb *, inp,
2368 VERIFY(inp->inp_sndinprog_cnt > 0);
2369 if ( --inp->inp_sndinprog_cnt == 0)
2370 inp->inp_flags &= ~(INP_FC_FEEDBACK);
2375 inp->in6p_last_outifp)
2376 inp->in6p_last_outifp = outif;
2380 inp->inp_last_outifp)
2381 inp->inp_last_outifp = outif;
2383 if (error != 0 && ifdenied && (inp->inp_flags & INP_NO_IFT_CELLULAR))
2384 soevent(inp->inp_socket,
2390 in6p_route_copyin(inp, &ro6);
2393 inp_route_copyin(inp, &ro);