Lines Matching defs:conf
208 switch_policy_str(struct __nsw_switchconfig *conf)
216 for (look = conf->lookups; look; look = look->next) {
226 no_switch_policy(struct __nsw_switchconfig *conf)
228 return (conf == NULL || conf->lookups == NULL);
232 is_switch_policy(struct __nsw_switchconfig *conf, char *target)
234 return (conf &&
235 conf->lookups &&
236 strcmp(conf->lookups->service_name, target) == 0 &&
237 conf->lookups->next == NULL);
245 struct __nsw_switchconfig *conf;
254 conf = __nsw_getconfig(policy, &perr);
255 if (no_switch_policy(conf)) {
257 conf = default_conf;
260 target_service = conf->lookups->service_name;
262 if (conf->lookups->next != NULL) {
275 switch_policy_str(conf));
281 if (!use_default && conf)
282 __nsw_freeconfig(conf);
297 struct __nsw_switchconfig *conf;
304 conf = __nsw_getconfig(policy, &perr);
305 if (no_switch_policy(conf)) {
315 } else if (!is_switch_policy(conf, target_service)) {
319 switch_policy_str(conf));
327 if (conf)
328 __nsw_freeconfig(conf);