aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorOndřej Caletka <ondrej@caletka.cz>2015-05-21 14:24:56 (GMT)
committerJouni Malinen <j@w1.fi>2015-06-10 10:53:22 (GMT)
commite1ede80d3b96daafe09aca9b98d4f82c3e5b410f (patch)
treeb9df880c803b0fbe923cec8f4afbc0a876411d8c /wpa_supplicant
parente19c1d2cc7080fd7b25ca0b5c9109bd091d51e23 (diff)
downloadhostap-e1ede80d3b96daafe09aca9b98d4f82c3e5b410f.zip
hostap-e1ede80d3b96daafe09aca9b98d4f82c3e5b410f.tar.gz
hostap-e1ede80d3b96daafe09aca9b98d4f82c3e5b410f.tar.bz2
eapol_test: Support IPv6 for authentication server
This allows testing RADIUS servers over IPv6. Signed-off-by: Ondřej Caletka <ondrej@caletka.cz>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/eapol_test.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/wpa_supplicant/eapol_test.c b/wpa_supplicant/eapol_test.c
index 983bbcd..bde7508 100644
--- a/wpa_supplicant/eapol_test.c
+++ b/wpa_supplicant/eapol_test.c
@@ -938,13 +938,12 @@ static void wpa_init_conf(struct eapol_test_data *e,
*pos++ = a[3];
}
#else /* CONFIG_NATIVE_WINDOWS or CONFIG_ANSI_C_EXTRA */
- if (inet_aton(authsrv, &as->addr.u.v4) < 0) {
+ if (hostapd_parse_ip_addr(authsrv, &as->addr) < 0) {
wpa_printf(MSG_ERROR, "Invalid IP address '%s'",
authsrv);
assert(0);
}
#endif /* CONFIG_NATIVE_WINDOWS or CONFIG_ANSI_C_EXTRA */
- as->addr.af = AF_INET;
as->port = port;
as->shared_secret = (u8 *) os_strdup(secret);
as->shared_secret_len = os_strlen(secret);