Lines Matching refs:ipset_env
183 ipset_add_rrset_data(struct ipset_env *ie, in ipset_add_rrset_data()
225 ipset_check_zones_for_rrset(struct module_env *env, struct ipset_env *ie, in ipset_check_zones_for_rrset()
273 struct query_info qinfo, struct ipset_env *ie) in ipset_update()
325 struct ipset_env *ipset_env; in ipset_startup() local
327 ipset_env = (struct ipset_env *)calloc(1, sizeof(struct ipset_env)); in ipset_startup()
328 if (!ipset_env) { in ipset_startup()
333 env->modinfo[id] = (void *)ipset_env; in ipset_startup()
336 ipset_env->dev = open_filter(); in ipset_startup()
337 if (!ipset_env->dev) { in ipset_startup()
342 ipset_env->dev = NULL; in ipset_startup()
349 struct ipset_env *ipset_env; in ipset_destartup() local
354 ipset_env = (struct ipset_env*)env->modinfo[id]; in ipset_destartup()
356 dev = (filter_dev)ipset_env->dev; in ipset_destartup()
363 ipset_env->dev = NULL; in ipset_destartup()
366 free(ipset_env); in ipset_destartup()
371 struct ipset_env *ipset_env = env->modinfo[id]; in ipset_init() local
373 ipset_env->name_v4 = env->cfg->ipset_name_v4; in ipset_init()
374 ipset_env->name_v6 = env->cfg->ipset_name_v6; in ipset_init()
376 ipset_env->v4_enabled = !ipset_env->name_v4 || (strlen(ipset_env->name_v4) == 0) ? 0 : 1; in ipset_init()
377 ipset_env->v6_enabled = !ipset_env->name_v6 || (strlen(ipset_env->name_v6) == 0) ? 0 : 1; in ipset_init()
379 if ((ipset_env->v4_enabled < 1) && (ipset_env->v6_enabled < 1)) { in ipset_init()
408 struct ipset_env *ie = (struct ipset_env *)qstate->env->modinfo[id]; in ipset_operate()
482 struct ipset_env *ie = (struct ipset_env *)env->modinfo[id]; in ipset_get_mem()