ip_addr.h

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

Generated on Sat Nov 21 23:16:54 2009 for hostapd by  doxygen 1.6.1