From: Jouni Malinen Date: Thu, 24 Dec 2009 10:26:47 +0000 (+0200) Subject: Redesign struct hostapd_ip_addr to be of fixed size X-Git-Tag: hostap_0_7_1~237 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6aa9e7a64ac4677b03dfafc48f3ef1ed23fe8dd5;p=thirdparty%2Fhostap.git Redesign struct hostapd_ip_addr to be of fixed size This structure is embedded in some other structures and as such, it would be nicer if this would not change its length based on build options. --- diff --git a/src/utils/ip_addr.h b/src/utils/ip_addr.h index 192049a58..28ccaefde 100644 --- a/src/utils/ip_addr.h +++ b/src/utils/ip_addr.h @@ -16,13 +16,14 @@ #define IP_ADDR_H struct hostapd_ip_addr { + int af; /* AF_INET / AF_INET6 */ union { struct in_addr v4; #ifdef CONFIG_IPV6 struct in6_addr v6; #endif /* CONFIG_IPV6 */ + u8 max_len[16]; } u; - int af; /* AF_INET / AF_INET6 */ }; const char * hostapd_ip_txt(const struct hostapd_ip_addr *addr, char *buf,