Lines Matching defs:routes
360 struct rt_head *routes;
367 routes = malloc(sizeof(*routes));
368 TAILQ_INIT(routes);
373 ipv4_freeroutes(routes);
380 ipv4_freeroutes(routes);
388 ipv4_freeroutes(routes);
391 TAILQ_INSERT_TAIL(routes, rt, next);
404 return routes;
549 /* This calculates the netmask that we should use for static routes.
580 * Otherwise we add static routes and then routers. */
587 struct rt_head *routes = NULL;
604 routes = decode_rfc3442_rt(ifp->ctx, p, len);
605 if (routes) {
613 "%s: using %sClassless Static Routes",
617 return routes;
621 /* OK, get our static routes first. */
622 routes = malloc(sizeof(*routes));
623 if (routes == NULL) {
627 TAILQ_INIT(routes);
638 ipv4_freeroutes(routes);
653 TAILQ_INSERT_TAIL(routes, route, next);
667 ipv4_freeroutes(routes);
672 TAILQ_INSERT_TAIL(routes, route, next);
676 return routes;
3477 /* Now is a good time to find IPv4 routes */
3647 * Fake add the address and routes from it so the lease