aboutsummaryrefslogtreecommitdiffstats
path: root/hostapd/config_file.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2015-03-01 15:49:22 (GMT)
committerJouni Malinen <j@w1.fi>2015-03-01 20:36:52 (GMT)
commit9836cb5387f2f4f3bbce21b7e7faa051c4c18181 (patch)
treeaeac22325683c81e0077c245cadd2137ef28bcd9 /hostapd/config_file.c
parent1b5664f0fbe4542e109b3bf010274720ae7cfbb2 (diff)
downloadhostap-9836cb5387f2f4f3bbce21b7e7faa051c4c18181.zip
hostap-9836cb5387f2f4f3bbce21b7e7faa051c4c18181.tar.gz
hostap-9836cb5387f2f4f3bbce21b7e7faa051c4c18181.tar.bz2
Add option to force a specific RADIUS client address to be used
The new hostapd.conf parameter radius_client_addr can now be used to select a specific local IP address to be used as the RADIUS client address. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'hostapd/config_file.c')
-rw-r--r--hostapd/config_file.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index 95f3bf2..53143f7 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -2189,6 +2189,14 @@ static int hostapd_config_fill(struct hostapd_config *conf,
os_free(bss->nas_identifier);
bss->nas_identifier = os_strdup(pos);
#ifndef CONFIG_NO_RADIUS
+ } else if (os_strcmp(buf, "radius_client_addr") == 0) {
+ if (hostapd_parse_ip_addr(pos, &bss->radius->client_addr)) {
+ wpa_printf(MSG_ERROR,
+ "Line %d: invalid IP address '%s'",
+ line, pos);
+ return 1;
+ }
+ bss->radius->force_client_addr = 1;
} else if (os_strcmp(buf, "auth_server_addr") == 0) {
if (hostapd_config_read_radius_addr(
&bss->radius->auth_servers,