diff options
Diffstat (limited to 'config_types.h')
-rw-r--r-- | config_types.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/config_types.h b/config_types.h new file mode 100644 index 000000000000..ffcffa3c0cd4 --- /dev/null +++ b/config_types.h @@ -0,0 +1,28 @@ +/* + * hostapd / Shared configuration file defines + * Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Alternatively, this software may be distributed under the terms of BSD + * license. + * + * See README and COPYING for more details. + */ + +#ifndef CONFIG_TYPES_H +#define CONFIG_TYPES_H + +struct hostapd_ip_addr { + union { + struct in_addr v4; +#ifdef CONFIG_IPV6 + struct in6_addr v6; +#endif /* CONFIG_IPV6 */ + } u; + int af; /* AF_INET / AF_INET6 */ +}; + +#endif /* CONFIG_TYPES_H */ |