Lines Matching refs:conf
161 * conf - RADIUS client configuration (list of RADIUS servers to use)
163 struct hostapd_radius_servers *conf;
364 struct hostapd_radius_servers *conf = radius->conf;
375 if (radius->acct_sock < 0 && conf->num_acct_servers > 1) {
383 conf->acct_server->requests++;
385 conf->acct_server->timeouts++;
386 conf->acct_server->retransmissions++;
391 if (radius->auth_sock < 0 && conf->num_auth_servers > 1) {
399 conf->auth_server->requests++;
401 conf->auth_server->timeouts++;
402 conf->auth_server->retransmissions++;
447 if (radius->conf->msg_dumps)
559 struct hostapd_radius_servers *conf = radius->conf;
564 old = conf->auth_server;
577 if (next > &(conf->auth_servers[conf->num_auth_servers - 1]))
578 next = conf->auth_servers;
579 conf->auth_server = next;
588 struct hostapd_radius_servers *conf = radius->conf;
593 old = conf->acct_server;
607 if (next > &conf->acct_servers[conf->num_acct_servers - 1])
608 next = conf->acct_servers;
609 conf->acct_server = next;
727 struct hostapd_radius_servers *conf = radius->conf;
735 if (conf->acct_server && radius->acct_sock < 0)
738 if (conf->acct_server == NULL || radius->acct_sock < 0 ||
739 conf->acct_server->shared_secret == NULL) {
746 shared_secret = conf->acct_server->shared_secret;
747 shared_secret_len = conf->acct_server->shared_secret_len;
751 conf->acct_server->requests++;
753 if (conf->auth_server && radius->auth_sock < 0)
756 if (conf->auth_server == NULL || radius->auth_sock < 0 ||
757 conf->auth_server->shared_secret == NULL) {
764 shared_secret = conf->auth_server->shared_secret;
765 shared_secret_len = conf->auth_server->shared_secret_len;
769 conf->auth_server->requests++;
775 if (conf->msg_dumps)
793 struct hostapd_radius_servers *conf = radius->conf;
809 rconf = conf->acct_server;
813 rconf = conf->auth_server;
839 if (conf->msg_dumps)
1052 struct hostapd_radius_servers *conf = radius->conf;
1140 if (conf->force_client_addr) {
1141 switch (conf->client_addr.af) {
1145 claddr.sin_addr.s_addr = conf->client_addr.u.v4.s_addr;
1154 os_memcpy(&claddr6.sin6_addr, &conf->client_addr.u.v6,
1221 struct hostapd_radius_servers *conf = radius->conf;
1224 if (radius->auth_sock >= 0 && conf->auth_servers &&
1225 conf->auth_server != conf->auth_servers) {
1226 oserv = conf->auth_server;
1227 conf->auth_server = conf->auth_servers;
1228 if (radius_change_server(radius, conf->auth_server, oserv,
1231 conf->auth_server = oserv;
1232 radius_change_server(radius, oserv, conf->auth_server,
1238 if (radius->acct_sock >= 0 && conf->acct_servers &&
1239 conf->acct_server != conf->acct_servers) {
1240 oserv = conf->acct_server;
1241 conf->acct_server = conf->acct_servers;
1242 if (radius_change_server(radius, conf->acct_server, oserv,
1245 conf->acct_server = oserv;
1246 radius_change_server(radius, oserv, conf->acct_server,
1252 if (conf->retry_primary_interval)
1253 eloop_register_timeout(conf->retry_primary_interval, 0,
1315 struct hostapd_radius_servers *conf = radius->conf;
1341 radius_change_server(radius, conf->auth_server, NULL,
1371 struct hostapd_radius_servers *conf = radius->conf;
1397 radius_change_server(radius, conf->acct_server, NULL,
1428 * @conf: RADIUS client configuration (RADIUS servers)
1436 radius_client_init(void *ctx, struct hostapd_radius_servers *conf)
1445 radius->conf = conf;
1450 if (conf->auth_server && radius_client_init_auth(radius)) {
1455 if (conf->acct_server && radius_client_init_acct(radius)) {
1460 if (conf->retry_primary_interval)
1461 eloop_register_timeout(conf->retry_primary_interval, 0,
1639 struct hostapd_radius_servers *conf = radius->conf;
1644 if (conf->auth_servers) {
1645 for (i = 0; i < conf->num_auth_servers; i++) {
1646 serv = &conf->auth_servers[i];
1649 serv == conf->auth_server ?
1654 if (conf->acct_servers) {
1655 for (i = 0; i < conf->num_acct_servers; i++) {
1656 serv = &conf->acct_servers[i];
1659 serv == conf->acct_server ?
1669 struct hostapd_radius_servers *conf)
1672 radius->conf = conf;