Home
last modified time | relevance | path

Searched refs:rt_ifp (Results 1 – 25 of 49) sorted by relevance

12

/dragonfly/sys/netinet6/
H A Dip6_forward.c200 in6_ifstat_inc(rt->rt_ifp, ifs6_in_discard); in ip6_forward()
219 if (m->m_pkthdr.len > IN6_LINKMTU(rt->rt_ifp)) { in ip6_forward()
220 in6_ifstat_inc(rt->rt_ifp, ifs6_in_toobig); in ip6_forward()
224 mtu = IN6_LINKMTU(rt->rt_ifp); in ip6_forward()
243 if (rt->rt_ifp == m->m_pkthdr.rcvif && !srcrt && in ip6_forward()
245 if (rt->rt_ifp->if_flags & IFF_POINTOPOINT) { in ip6_forward()
286 if (rt->rt_ifp->if_flags & IFF_LOOPBACK) { in ip6_forward()
307 if_name(rt->rt_ifp)); in ip6_forward()
314 origifp = rt->rt_ifp; in ip6_forward()
337 in6_ifstat_inc(rt->rt_ifp, ifs6_out_discard); in ip6_forward()
[all …]
H A Din6_rmx.c165 rt->rt_ifp != NULL) in in6_addroute()
166 rt->rt_rmx.rmx_mtu = IN6_LINKMTU(rt->rt_ifp); in in6_addroute()
211 rt2->rt_ifp == rt->rt_ifp) { in in6_addroute()
H A Dnd6.c474 if ((ifp = rt->rt_ifp) == NULL) { in nd6_timer_dispatch()
503 if (rt->rt_ifp) { in nd6_timer_dispatch()
511 m->m_pkthdr.rcvif = rt->rt_ifp; in nd6_timer_dispatch()
524 rt_rtmsg(RTM_MISS, rt, rt->rt_ifp, 0); in nd6_timer_dispatch()
567 rt_rtmsg(RTM_MISS, rt, rt->rt_ifp, 0); in nd6_timer_dispatch()
1049 rt->rt_ifp); in nd6_free()
1057 rt6_flush(&in6, rt->rt_ifp); in nd6_free()
1170 ND_IFINFO(rt->rt_ifp)->reachable; in nd6_nud_hint()
1179 struct ifnet *ifp = rt->rt_ifp; in nd6_rtrequest()
1335 ifa = (struct ifaddr *)in6ifa_ifpwithaddr(rt->rt_ifp, in nd6_rtrequest()
[all …]
H A Din6_gif.c211 if (ro->ro_rt->rt_ifp == ifp) { in in6_gif_output()
216 ifp->if_mtu = ro->ro_rt->rt_ifp->if_mtu - in in6_gif_output()
341 if (rt == NULL || rt->rt_ifp != ifp) { in gif_validate6()
H A Dnd6_nbr.c277 rtifp = rt ? rt->rt_ifp : NULL; in nd6_ns_input()
722 ND_IFINFO(rt->rt_ifp)->reachable; in nd6_na_input()
832 dr = defrouter_lookup(in6, rt->rt_ifp); in nd6_na_input()
838 (ND_IFINFO(rt->rt_ifp)->flags & in nd6_na_input()
847 rt6_flush(&ip6->ip6_src, rt->rt_ifp); in nd6_na_input()
H A Dudp6_output.c245 in6p->in6p_route.ro_rt->rt_ifp : NULL); in udp6_output()
H A Din6_src.c268 ia6 = in6_ifawithscope(rt->rt_ifp, dst, cred); in in6_selectsrc()
300 if (ro->ro_rt == NULL || ro->ro_rt->rt_ifp == NULL) { in in6_selectsrc()
/dragonfly/contrib/dhcpcd/src/
H A Droute.c142 c = (int)(rt1->rt_ifp->metric - rt2->rt_ifp->metric); in rt_compare_os()
168 ifp1 = rt1->rt_ifp; in rt_compare_proto()
169 ifp2 = rt2->rt_ifp; in rt_compare_proto()
272 ifname = rt->rt_ifp == NULL ? "(null)" : rt->rt_ifp->name; in rt_desc()
388 rt->rt_ifp = ifp; in rt_setif()
441 ctx = rt->rt_ifp->ctx; in rt_free()
483 ctx = rt->rt_ifp->ctx; in rt_recvrt()
537 (ort->rt_ifp == nrt->rt_ifp && in rt_add()
550 ort->rt_ifp == nrt->rt_ifp && in rt_add()
658 return (r1->rt_ifp == r2->rt_ifp && in rt_cmp()
[all …]
H A Dif-bsd.c692 assert(rt->rt_ifp != NULL); in if_route()
693 assert(rt->rt_ifp->ctx != NULL); in if_route()
694 ctx = rt->rt_ifp->ctx; in if_route()
787 if_linkaddr(&sdl, rt->rt_ifp); in if_route()
800 ipv6_setscope(&gateway.sin6, rt->rt_ifp->index); in if_route()
903 rt->rt_ifp = if_findsa(ctx, rti_info[RTAX_IFP]); in if_copyrt()
907 rt->rt_ifp = if_findsa(ctx, rti_info[RTAX_DST]); in if_copyrt()
909 if (rt->rt_ifp == NULL && rtm->rtm_type == RTM_MISS) in if_copyrt()
910 rt->rt_ifp = if_find(ctx->ifaces, "lo0"); in if_copyrt()
912 if (rt->rt_ifp == NULL) { in if_copyrt()
[all …]
H A Droute.h88 struct interface *rt_ifp; member
/dragonfly/sys/netinet/
H A Dif_ether.c260 arprequest(rt->rt_ifp, in arp_rtrequest()
305 rt->rt_ifp->if_addrlen); in arp_rtrequest()
332 rt->rt_ifp->if_addrlen); in arp_rtrequest()
334 rt->rt_ifp = loif; in arp_rtrequest()
734 if (rt->rt_ifp != ifp) { in arp_update_oncpu()
747 } else if (rt->rt_ifp->if_bridge && in arp_update_oncpu()
752 nifp = rt->rt_ifp; in arp_update_oncpu()
765 rt->rt_ifp->if_xname, hexstr[0], in arp_update_oncpu()
775 ifp = rt->rt_ifp = nifp; in arp_update_oncpu()
874 rt_rtmsg(rt_cmd, rt, rt->rt_ifp, 0); in arp_update_oncpu()
[all …]
H A Din_rmx.c134 if (in_broadcast(sin->sin_addr, rt->rt_ifp)) { in in_addroute()
149 rt->rt_ifp = rt->rt_ifa->ifa_ifp; in in_addroute()
158 rt->rt_ifp != NULL) in in_addroute()
159 rt->rt_rmx.rmx_mtu = rt->rt_ifp->if_mtu; in in_addroute()
H A Din_gif.c206 if (ro->ro_rt->rt_ifp == ifp) { in in_gif_output()
211 ifp->if_mtu = ro->ro_rt->rt_ifp->if_mtu - sizeof(struct ip); in in_gif_output()
341 if (rt == NULL || rt->rt_ifp != ifp) { in gif_validate4()
H A Dip_flow.c73 ((rt)->rt_ifp->if_flags & IFF_UP) == 0)
232 ifp = rt->rt_ifp; in ipflow_fastforward()
H A Dtcp_output.c257 (rt->rt_ifp->if_hwassist & CSUM_TSO)) { in tcp_output()
259 tso_lenmax = rt->rt_ifp->if_tsolen; in tcp_output()
1219 inp->in6p_route.ro_rt->rt_ifp : NULL)); in tcp_output()
/dragonfly/usr.bin/netstat/
H A Droute.c329 if (rt->rt_ifp) { in size_cols_rtentry()
330 if (rt->rt_ifp != lastif) { in size_cols_rtentry()
331 if (kget(rt->rt_ifp, ifnet) == 0) in size_cols_rtentry()
335 lastif = rt->rt_ifp; in size_cols_rtentry()
787 if (rt->rt_ifp) { in p_rtentry()
788 if (rt->rt_ifp != lastif) { in p_rtentry()
789 if (kget(rt->rt_ifp, ifnet) == 0) in p_rtentry()
794 lastif = rt->rt_ifp; in p_rtentry()
/dragonfly/sys/net/
H A Drtsock.c606 if (rt->rt_ifp != NULL) { in _fillrtmsg()
611 if (rt->rt_ifp->if_flags & IFF_POINTOPOINT) in _fillrtmsg()
613 rtm->rtm_index = rt->rt_ifp->if_index; in _fillrtmsg()
618 } else if (rt->rt_ifp != NULL) { in _fillrtmsg()
619 rtm->rtm_index = rt->rt_ifp->if_index; in _fillrtmsg()
866 rtm->rtm_index = rt->rt_ifp->if_index; in route_output_add_callback()
944 rt->rt_ifp = rtinfo->rti_ifp; in route_output_change_callback()
961 rtm->rtm_index = rt->rt_ifp->if_index; in route_output_change_callback()
963 rt_rtmsg(RTM_CHANGE, rt, rt->rt_ifp, 0); in route_output_change_callback()
1665 if (rt->rt_ifp != NULL) { in rttable_entry_rtinfo()
[all …]
H A Droute.c218 if (ro->ro_rt->rt_ifp != NULL && ro->ro_rt->rt_flags & RTF_UP) in rtalloc_ign()
427 rt_rtmsg(RTM_CHANGE, rt, rt->rt_ifp, 0); in rtredirect_oncpu()
874 if (!(rt->rt_ifp->if_flags & IFF_UP)) in rtrequest1()
937 rt->rt_ifp = ifa->ifa_ifp; in rtrequest1()
1354 if (rt->rt_ifp == arg->ifp && rt->rt_flags & RTF_WASCLONED) in rt_purgecloned_callback()
1408 kprintf(" ifp \"%s\"", rt->rt_ifp ? rt->rt_ifp->if_xname : "?"); in rt_print()
1827 rt->rt_ifp = ap->new_ifa->ifa_ifp; in rtchange_ifa()
H A Droute.h149 struct ifnet *rt_ifp; /* the answer: interface to use */ member
/dragonfly/sbin/routed/
H A Dif.c422 && rt->rt_ifp != 0 in check_remote()
424 rt->rt_ifp->int_net, rt->rt_ifp->int_mask)) in check_remote()
1143 if (rt->rt_ifp != ifp in ifinit()
1215 ifp1 = rt->rt_ifp; in ifinit()
1290 && rt->rt_ifp == ifp) in check_net_syn()
1344 if ((rt->rt_ifp != ifp in addrouteforif()
1347 || rt->rt_ifp == 0 in addrouteforif()
1348 || (rt->rt_ifp->int_state & IS_BROKE))) { in addrouteforif()
H A Dtrace.c665 rt->rt_ifp)); in trace_upslot()
763 0,0,0,0, AGE_RT(rt->rt_state, rt->rt_ifp)); in trace_change()
772 -(new->rts_ifp == rt->rt_ifp), in trace_change()
792 print_rts(rt->rt_spares, 0,0,0,0,AGE_RT(rt->rt_state,rt->rt_ifp)); in trace_add_del()
807 print_rts(&RT->rt_spares[0], 0,0,0,0, AGE_RT(RT->rt_state, RT->rt_ifp)); in walk_trace()
H A Dtable.c1396 if (RT->rt_ifp != 0 && (RT->rt_ifp->int_state & IS_EXTERNAL)) in walk_kern()
1410 if (RT->rt_ifp == 0 in walk_kern()
1411 || (RT->rt_ifp->int_state & IS_REMOTE)) in walk_kern()
1870 if (ifp->int_addr == rt->rt_ifp->int_addr) { in rtbad_sub()
1943 if (RT->rt_ifp == 0 || !(RT->rt_ifp->int_state & IS_BROKE)) in walk_bad()
H A Doutput.c450 && RT->rt_ifp != 0 in walk_supply()
451 && (RT->rt_ifp->int_state & IS_PASSIVE) in walk_supply()
686 ifp = rt->rt_ifp; in supply()
/dragonfly/sys/netproto/mpls/
H A Dmpls_input.c206 ifp = cache_rt->ro_rt->rt_ifp; in mpls_forward()
/dragonfly/sys/net/gre/
H A Dif_gre.c743 if (ro->ro_rt == NULL || ro->ro_rt->rt_ifp->if_softc == sc) { in gre_compute_route()
761 kprintf(", choosing %s with gateway %s", if_name(ro->ro_rt->rt_ifp), in gre_compute_route()

12