aboutsummaryrefslogtreecommitdiff
path: root/config_types.h
blob: ffcffa3c0cd47f52e7a9b9dd871fc3fa48099e45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 */