[PATCH] Add the address family when manually constructing IPv4 addresses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Stefan Paetow <oss@xxxxxxxx>

Add the address family when manually constructing IPv4 addresses in eapol_test
on Windows. See CONFIG_NATIVE_WINDOWS define lines 1018-1027. Otherwise
other functions, like hostapd_ip_txt() in src/utils/ip_addr.c, that
rely on addr->af being
set fail miserably.

Signed-off-by: Stefan Paetow <oss@xxxxxxxx>

---
wpa_supplicant/eapol_test.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/wpa_supplicant/eapol_test.c b/wpa_supplicant/eapol_test.c
index 9f69736..d137ad6 100644
--- a/wpa_supplicant/eapol_test.c
+++ b/wpa_supplicant/eapol_test.c
@@ -1025,6 +1025,7 @@ static void wpa_init_conf(struct eapol_test_data *e,
                *pos++ = a[1];
                *pos++ = a[2];
                *pos++ = a[3];
+               as->addr.af = AF_INET;
        }
#else /* CONFIG_NATIVE_WINDOWS or CONFIG_ANSI_C_EXTRA */
        if (hostapd_parse_ip_addr(authsrv, &as->addr) < 0) {
--
2.2.1

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux