Lines Matching refs:conf

163 	struct hostapd_radius_servers *conf;  member
335 struct hostapd_radius_servers *conf = radius->conf; in radius_client_retransmit() local
344 if (radius->acct_sock < 0 && conf->num_acct_servers > 1) { in radius_client_retransmit()
352 conf->acct_server->requests++; in radius_client_retransmit()
354 conf->acct_server->timeouts++; in radius_client_retransmit()
355 conf->acct_server->retransmissions++; in radius_client_retransmit()
360 if (radius->auth_sock < 0 && conf->num_auth_servers > 1) { in radius_client_retransmit()
368 conf->auth_server->requests++; in radius_client_retransmit()
370 conf->auth_server->timeouts++; in radius_client_retransmit()
371 conf->auth_server->retransmissions++; in radius_client_retransmit()
410 struct hostapd_radius_servers *conf = radius->conf; in radius_client_timer() local
479 if (auth_failover && conf->num_auth_servers > 1) in radius_client_timer()
482 if (acct_failover && conf->num_acct_servers > 1) in radius_client_timer()
489 struct hostapd_radius_servers *conf = radius->conf; in radius_client_auth_failover() local
494 old = conf->auth_server; in radius_client_auth_failover()
507 if (next > &(conf->auth_servers[conf->num_auth_servers - 1])) in radius_client_auth_failover()
508 next = conf->auth_servers; in radius_client_auth_failover()
509 conf->auth_server = next; in radius_client_auth_failover()
518 struct hostapd_radius_servers *conf = radius->conf; in radius_client_acct_failover() local
523 old = conf->acct_server; in radius_client_acct_failover()
537 if (next > &conf->acct_servers[conf->num_acct_servers - 1]) in radius_client_acct_failover()
538 next = conf->acct_servers; in radius_client_acct_failover()
539 conf->acct_server = next; in radius_client_acct_failover()
687 struct hostapd_radius_servers *conf = radius->conf; in radius_client_send() local
700 if (conf->acct_server && radius->acct_sock < 0) in radius_client_send()
703 if (conf->acct_server == NULL || radius->acct_sock < 0 || in radius_client_send()
704 conf->acct_server->shared_secret == NULL) { in radius_client_send()
711 shared_secret = conf->acct_server->shared_secret; in radius_client_send()
712 shared_secret_len = conf->acct_server->shared_secret_len; in radius_client_send()
716 conf->acct_server->requests++; in radius_client_send()
718 if (conf->auth_server && radius->auth_sock < 0) in radius_client_send()
721 if (conf->auth_server == NULL || radius->auth_sock < 0 || in radius_client_send()
722 conf->auth_server->shared_secret == NULL) { in radius_client_send()
729 shared_secret = conf->auth_server->shared_secret; in radius_client_send()
730 shared_secret_len = conf->auth_server->shared_secret_len; in radius_client_send()
734 conf->auth_server->requests++; in radius_client_send()
740 if (conf->msg_dumps) in radius_client_send()
758 struct hostapd_radius_servers *conf = radius->conf; in radius_client_receive() local
774 rconf = conf->acct_server; in radius_client_receive()
778 rconf = conf->auth_server; in radius_client_receive()
804 if (conf->msg_dumps) in radius_client_receive()
1017 struct hostapd_radius_servers *conf = radius->conf; in radius_change_server() local
1096 if (conf->force_client_addr) { in radius_change_server()
1097 switch (conf->client_addr.af) { in radius_change_server()
1101 claddr.sin_addr.s_addr = conf->client_addr.u.v4.s_addr; in radius_change_server()
1110 os_memcpy(&claddr6.sin6_addr, &conf->client_addr.u.v6, in radius_change_server()
1172 struct hostapd_radius_servers *conf = radius->conf; in radius_retry_primary_timer() local
1175 if (radius->auth_sock >= 0 && conf->auth_servers && in radius_retry_primary_timer()
1176 conf->auth_server != conf->auth_servers) { in radius_retry_primary_timer()
1177 oserv = conf->auth_server; in radius_retry_primary_timer()
1178 conf->auth_server = conf->auth_servers; in radius_retry_primary_timer()
1179 if (radius_change_server(radius, conf->auth_server, oserv, in radius_retry_primary_timer()
1182 conf->auth_server = oserv; in radius_retry_primary_timer()
1183 radius_change_server(radius, oserv, conf->auth_server, in radius_retry_primary_timer()
1189 if (radius->acct_sock >= 0 && conf->acct_servers && in radius_retry_primary_timer()
1190 conf->acct_server != conf->acct_servers) { in radius_retry_primary_timer()
1191 oserv = conf->acct_server; in radius_retry_primary_timer()
1192 conf->acct_server = conf->acct_servers; in radius_retry_primary_timer()
1193 if (radius_change_server(radius, conf->acct_server, oserv, in radius_retry_primary_timer()
1196 conf->acct_server = oserv; in radius_retry_primary_timer()
1197 radius_change_server(radius, oserv, conf->acct_server, in radius_retry_primary_timer()
1203 if (conf->retry_primary_interval) in radius_retry_primary_timer()
1204 eloop_register_timeout(conf->retry_primary_interval, 0, in radius_retry_primary_timer()
1266 struct hostapd_radius_servers *conf = radius->conf; in radius_client_init_auth() local
1292 radius_change_server(radius, conf->auth_server, NULL, in radius_client_init_auth()
1322 struct hostapd_radius_servers *conf = radius->conf; in radius_client_init_acct() local
1348 radius_change_server(radius, conf->acct_server, NULL, in radius_client_init_acct()
1387 radius_client_init(void *ctx, struct hostapd_radius_servers *conf) in radius_client_init() argument
1396 radius->conf = conf; in radius_client_init()
1401 if (conf->auth_server && radius_client_init_auth(radius)) { in radius_client_init()
1406 if (conf->acct_server && radius_client_init_acct(radius)) { in radius_client_init()
1411 if (conf->retry_primary_interval) in radius_client_init()
1412 eloop_register_timeout(conf->retry_primary_interval, 0, in radius_client_init()
1590 struct hostapd_radius_servers *conf = radius->conf; in radius_client_get_mib() local
1595 if (conf->auth_servers) { in radius_client_get_mib()
1596 for (i = 0; i < conf->num_auth_servers; i++) { in radius_client_get_mib()
1597 serv = &conf->auth_servers[i]; in radius_client_get_mib()
1600 serv == conf->auth_server ? in radius_client_get_mib()
1605 if (conf->acct_servers) { in radius_client_get_mib()
1606 for (i = 0; i < conf->num_acct_servers; i++) { in radius_client_get_mib()
1607 serv = &conf->acct_servers[i]; in radius_client_get_mib()
1610 serv == conf->acct_server ? in radius_client_get_mib()
1620 struct hostapd_radius_servers *conf) in radius_client_reconfig() argument
1623 radius->conf = conf; in radius_client_reconfig()