Lines Matching defs:conf

106     am_config_t *conf = NULL;
116 conf = am_get_config_file(w->instance_id, w->config_path);
117 if (conf == NULL) {
125 ping_diff = MAX(MIN_URL_VALIDATOR_TICK, conf->valid_ping);
130 if (conf->valid_level > 1 || conf->naming_url_sz < 2 || conf->naming_url_sz != conf->valid_default_url_sz ||
136 am_config_free(&conf);
142 if (current_index < 0 || current_index >= conf->naming_url_sz) {
144 "%s invalid current index value, defaulting to %s", thisfunc, conf->naming_url[0]);
146 am_config_free(&conf);
164 am_config_free(&conf);
170 url_list = (char **) calloc(1, conf->naming_url_sz * sizeof (char *));
173 am_config_free(&conf);
178 url_list_sz = conf->naming_url_sz;
184 int j = conf->valid_default_url[i];
185 url_list[i] = strdup(conf->naming_url[j]);
188 am_config_free(&conf);
195 am_net_options_create(conf, net_options, NULL);
210 if (conf->valid_level == 1) {
216 validate_status = am_agent_login(w->instance_id, url, conf->user, conf->pass, conf->realm,
226 if (ok++ > conf->valid_ping_ok) {
227 ok = conf->valid_ping_ok;
231 if (fail++ > conf->valid_ping_miss) {
232 fail = conf->valid_ping_miss;
241 for (i = 0; i < conf->valid_default_url_sz; i++) {
242 if (current_index == conf->valid_default_url[i]) {
256 if (current_index > 0 && default_ok >= conf->valid_ping_ok) {
257 set_valid_url_index(w->instance_id, conf->valid_default_url[0]);
260 set_valid_url_index(w->instance_id, conf->valid_default_url[current_index]);
267 if (current_ok == 0 && current_fail <= conf->valid_ping_miss) {
268 set_valid_url_index(w->instance_id, conf->valid_default_url[current_index]);
293 set_valid_url_index(w->instance_id, conf->valid_default_url[0]);
297 if (current_index > 0 && default_ok >= conf->valid_ping_ok) {
299 set_valid_url_index(w->instance_id, conf->valid_default_url[0]);
304 set_valid_url_index(w->instance_id, conf->valid_default_url[i]);
310 am_config_free(&conf);