Lines Matching refs:routes
138 ctx->routes = malloc(sizeof(*ctx->routes)); in ipv6_init()
139 if (ctx->routes == NULL) { in ipv6_init()
143 TAILQ_INIT(ctx->routes); in ipv6_init()
147 free(ctx->routes); in ipv6_init()
1293 ipv6_freerts(ctx->ipv6->routes); in ipv6_ctxfree()
1294 free(ctx->ipv6->routes); in ipv6_ctxfree()
1783 ipv6_freerts(struct rt6_head *routes) in ipv6_freerts() argument
1787 while ((rt = TAILQ_FIRST(routes))) { in ipv6_freerts()
1788 TAILQ_REMOVE(routes, rt, next); in ipv6_freerts()
1819 if ((f = find_route6(ctx->ipv6->routes, rt))) { in ipv6_handlert()
1821 TAILQ_REMOVE(ctx->ipv6->routes, f, next); in ipv6_handlert()
2073 if ((or = find_route6(ctx->ipv6->routes, rt))) { in ipv6_buildroutes()
2084 TAILQ_REMOVE(ctx->ipv6->routes, or, next); in ipv6_buildroutes()
2105 while ((rt = TAILQ_LAST(ctx->ipv6->routes, rt6_head))) { in ipv6_buildroutes()
2106 TAILQ_REMOVE(ctx->ipv6->routes, rt, next); in ipv6_buildroutes()
2125 free(ctx->ipv6->routes); in ipv6_buildroutes()
2126 ctx->ipv6->routes = nrs; in ipv6_buildroutes()