Lines Matching full:routes
138 ctx->routes = malloc(sizeof(*ctx->routes));
139 if (ctx->routes == NULL) {
143 TAILQ_INIT(ctx->routes);
147 free(ctx->routes);
1254 /* Load existing routes */
1293 ipv6_freerts(ctx->ipv6->routes);
1294 free(ctx->ipv6->routes);
1783 ipv6_freerts(struct rt6_head *routes)
1787 while ((rt = TAILQ_FIRST(routes))) {
1788 TAILQ_REMOVE(routes, rt, next);
1819 if ((f = find_route6(ctx->ipv6->routes, rt))) {
1821 TAILQ_REMOVE(ctx->ipv6->routes, f, next);
1835 /* Don't set default routes if not asked to */
2030 * our routes are managed correctly. */
2073 if ((or = find_route6(ctx->ipv6->routes, rt))) {
2084 TAILQ_REMOVE(ctx->ipv6->routes, or, next);
2096 /* Free any routes we failed to add/change */
2102 /* Remove old routes we used to manage
2105 while ((rt = TAILQ_LAST(ctx->ipv6->routes, rt6_head))) {
2106 TAILQ_REMOVE(ctx->ipv6->routes, rt, next);
2125 free(ctx->ipv6->routes);
2126 ctx->ipv6->routes = nrs;