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
00025 } u;
00026 int af;
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
00035