Lines Matching defs:rt
772 register struct rtentry *rt;
833 if ((rt = inp->in6p_route.ro_rt) == NULL)
835 sin6 = (struct sockaddr_in6 *)rt_key(rt);
841 rt = inp->inp_route.ro_rt;
842 if (rt == NULL ||
843 ((struct sockaddr_in *)rt_key(rt))->sin_addr.s_addr
844 == INADDR_ANY || rt->generation_id != route_generation) {
851 if ((rt->rt_rmx.rmx_locks & RTV_RTT) == 0) {
854 if (rt->rt_rmx.rmx_rtt && i)
861 rt->rt_rmx.rmx_rtt =
862 (rt->rt_rmx.rmx_rtt + i) / 2;
864 rt->rt_rmx.rmx_rtt = i;
867 if ((rt->rt_rmx.rmx_locks & RTV_RTTVAR) == 0) {
870 if (rt->rt_rmx.rmx_rttvar && i)
871 rt->rt_rmx.rmx_rttvar =
872 (rt->rt_rmx.rmx_rttvar + i) / 2;
874 rt->rt_rmx.rmx_rttvar = i;
892 if (rt->rt_rmx.rmx_sendpipe != 0)
893 dosavessthresh = (i < rt->rt_rmx.rmx_sendpipe / 2);
896 if (((rt->rt_rmx.rmx_locks & RTV_SSTHRESH) == 0 &&
897 i != 0 && rt->rt_rmx.rmx_ssthresh != 0)
916 if (rt->rt_rmx.rmx_ssthresh)
917 rt->rt_rmx.rmx_ssthresh =
918 (rt->rt_rmx.rmx_ssthresh + i) / 2;
920 rt->rt_rmx.rmx_ssthresh = i;
924 rt = inp->inp_route.ro_rt;
925 if (rt) {
931 ((rt->rt_rmx.rmx_locks & RTV_RTT) == 0)){
932 if (rt->rt_rmx.rmx_rtt == 0)
933 rt->rt_flags |= RTF_DELCLONE;
1542 struct rtentry *rt;
1555 rt = tcp_rtlookup6(inp);
1558 rt = tcp_rtlookup(inp, IFSCOPE_NONE);
1559 if (!rt || !rt->rt_rmx.rmx_mtu) {
1568 taop = rmx_taop(rt->rt_rmx);
1570 mss = rt->rt_rmx.rmx_mtu -
1633 struct rtentry *rt;
1639 rt = ro->ro_rt;
1643 if (rt == NULL || !(rt->rt_flags & RTF_UP) || rt->generation_id != route_generation) {
1664 rt = ro->ro_rt;
1667 if (rt != NULL && rt->rt_ifp != NULL)
1669 (rt->rt_ifp->if_hwassist & IFNET_MULTIPAGES));
1681 if (!path_mtu_discovery || ((rt != NULL) &&
1682 (!(rt->rt_flags & RTF_UP) || (rt->rt_rmx.rmx_locks & RTV_MTU))))
1688 if (tp->t_state == TCPS_SYN_SENT && rt != NULL && rt->rt_ifp != NULL &&
1689 (rt->rt_ifp->if_eflags & IFEF_NOWINDOWSCALE) != 0)
1696 return rt;
1705 struct rtentry *rt;
1711 rt = ro6->ro_rt;
1712 if (rt == NULL || !(rt->rt_flags & RTF_UP)) {
1722 rt = ro6->ro_rt;
1725 if (rt != NULL && rt->rt_ifp != NULL)
1727 (rt->rt_ifp->if_hwassist & IFNET_MULTIPAGES));
1747 if (!path_mtu_discovery || ((rt != NULL) &&
1748 (!(rt->rt_flags & RTF_UP) || (rt->rt_rmx.rmx_locks & RTV_MTU))))
1753 return rt;
1809 struct rtentry *rt;
1815 rt = tcp_rtlookup6(inp);
1818 rt = tcp_rtlookup(inp, IFSCOPE_NONE);
1821 if (rt == NULL ||
1822 (rt->rt_flags & (RTF_UP|RTF_HOST)) != (RTF_UP|RTF_HOST)) {
1827 taop = rmx_taop(rt->rt_rmx);