Lines Matching refs:routes
360 struct rt_head *routes; in decode_rfc3442_rt() local
367 routes = malloc(sizeof(*routes)); in decode_rfc3442_rt()
368 TAILQ_INIT(routes); in decode_rfc3442_rt()
373 ipv4_freeroutes(routes); in decode_rfc3442_rt()
380 ipv4_freeroutes(routes); in decode_rfc3442_rt()
388 ipv4_freeroutes(routes); in decode_rfc3442_rt()
391 TAILQ_INSERT_TAIL(routes, rt, next); in decode_rfc3442_rt()
404 return routes; in decode_rfc3442_rt()
587 struct rt_head *routes = NULL; in get_option_routes() local
604 routes = decode_rfc3442_rt(ifp->ctx, p, len); in get_option_routes()
605 if (routes) { in get_option_routes()
617 return routes; in get_option_routes()
622 routes = malloc(sizeof(*routes)); in get_option_routes()
623 if (routes == NULL) { in get_option_routes()
627 TAILQ_INIT(routes); in get_option_routes()
638 ipv4_freeroutes(routes); in get_option_routes()
653 TAILQ_INSERT_TAIL(routes, route, next); in get_option_routes()
667 ipv4_freeroutes(routes); in get_option_routes()
672 TAILQ_INSERT_TAIL(routes, route, next); in get_option_routes()
676 return routes; in get_option_routes()