wpa_supplicant / hostapd 2.0

ip_addr.h

Go to the documentation of this file.
00001 
00010 #ifndef IP_ADDR_H
00011 #define IP_ADDR_H
00012 
00013 struct hostapd_ip_addr {
00014         int af; /* AF_INET / AF_INET6 */
00015         union {
00016                 struct in_addr v4;
00017 #ifdef CONFIG_IPV6
00018                 struct in6_addr v6;
00019 #endif /* CONFIG_IPV6 */
00020                 u8 max_len[16];
00021         } u;
00022 };
00023 
00024 const char * hostapd_ip_txt(const struct hostapd_ip_addr *addr, char *buf,
00025                             size_t buflen);
00026 int hostapd_ip_diff(struct hostapd_ip_addr *a, struct hostapd_ip_addr *b);
00027 int hostapd_parse_ip_addr(const char *txt, struct hostapd_ip_addr *addr);
00028 
00029 #endif /* IP_ADDR_H */
00030 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines