Lines Matching defs:route

96 #include <net/route.h>
326 * to an incoming packet over the same route if the packet got here
336 struct in_addr route[MAX_IPOPTLEN/sizeof(struct in_addr)];
355 static void ip_fwd_route_copyout(struct ifnet *, struct route *);
356 static void ip_fwd_route_copyin(struct ifnet *, struct route *);
844 * Naively assume we can attribute inbound data to the route we would
850 * protocol is tcp in the future because tcp will have a route that
1908 * End of source route. Should be for us.
1925 "attempted source route from %s to %s\n",
2111 struct route ro;
2133 * Save incoming source route for use in replies,
2154 * Retrieve incoming source route for use in replies,
2181 * First save first hop for return route
2183 p = &ip_srcrt.route[ip_nhops - 1];
2201 * Record return path as an IP source route,
2204 while (p >= ip_srcrt.route) {
2291 * out the cached IPv4 forwarding route from struct ifnet instead of the
2295 ip_fwd_route_copyout(struct ifnet *ifp, struct route *dst)
2297 struct route *src = &ifp->if_fwd_route;
2304 panic("%s: wrong or corrupted route: %p", __func__, src);
2312 ip_fwd_route_copyin(struct ifnet *ifp, struct route *src)
2314 struct route *dst = &ifp->if_fwd_route;
2321 panic("%s: wrong or corrupted route: %p", __func__, src);
2341 * via a source route.
2352 struct route fwd_rt;
2459 * Also, don't send redirect if forwarding using a default route
2460 * or a route modified by a redirect.
2514 /* Refresh rt since the route could have changed while in IP */
2575 struct route *ro;
2596 * find the correct route for outer IPv4