hostapd / Configuration file More...
#include "defs.h"#include "ip_addr.h"#include "wpa_common.h"

Go to the source code of this file.
Data Structures | |
| struct | mac_acl_entry |
| struct | hostapd_wep_keys |
| struct | hostapd_ssid |
| struct | hostapd_vlan |
| struct | hostapd_wpa_psk |
| struct | hostapd_eap_user |
| struct | hostapd_tx_queue_params |
| struct | hostapd_wmm_ac_params |
| struct | hostapd_bss_config |
| Per-BSS configuration. More... | |
| struct | hostapd_config |
| Per-radio interface configuration. More... | |
Defines | |
| #define | IFNAMSIZ 16 |
| #define | HOSTAPD_MAX_SSID_LEN 32 |
| #define | NUM_WEP_KEYS 4 |
| #define | DYNAMIC_VLAN_DISABLED 0 |
| #define | DYNAMIC_VLAN_OPTIONAL 1 |
| #define | DYNAMIC_VLAN_REQUIRED 2 |
| #define | VLAN_ID_WILDCARD -1 |
| #define | PMK_LEN 32 |
| #define | EAP_USER_MAX_METHODS 8 |
| #define | NUM_TX_QUEUES 8 |
Typedefs | |
| typedef u8 | macaddr [ETH_ALEN] |
| typedef enum hostap_security_policy | secpolicy |
Enumerations | |
| enum | hostap_security_policy { SECURITY_PLAINTEXT = 0, SECURITY_STATIC_WEP = 1, SECURITY_IEEE_802_1X = 2, SECURITY_WPA_PSK = 3, SECURITY_WPA = 4 } |
Functions | |
| int | hostapd_mac_comp (const void *a, const void *b) |
| int | hostapd_mac_comp_empty (const void *a) |
| struct hostapd_config * | hostapd_config_defaults (void) |
| struct hostapd_config * | hostapd_config_read (const char *fname) |
| Read and parse a configuration file. | |
| void | hostapd_config_free (struct hostapd_config *conf) |
| Free hostapd configuration. | |
| int | hostapd_maclist_found (struct mac_acl_entry *list, int num_entries, const u8 *addr, int *vlan_id) |
| Find a MAC address from a list. | |
| int | hostapd_rate_found (int *list, int rate) |
| int | hostapd_wep_key_cmp (struct hostapd_wep_keys *a, struct hostapd_wep_keys *b) |
| const u8 * | hostapd_get_psk (const struct hostapd_bss_config *conf, const u8 *addr, const u8 *prev_psk) |
| int | hostapd_setup_wpa_psk (struct hostapd_bss_config *conf) |
| const char * | hostapd_get_vlan_id_ifname (struct hostapd_vlan *vlan, int vlan_id) |
| struct hostapd_eap_user * | hostapd_get_eap_user (const struct hostapd_bss_config *conf, const u8 *identity, size_t identity_len, int phase2) |
hostapd / Configuration file
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.
Definition in file config.h.
| void hostapd_config_free | ( | struct hostapd_config * | conf | ) |
Free hostapd configuration.
| conf | Configuration data from hostapd_config_read(). |
| struct hostapd_config* hostapd_config_read | ( | const char * | fname | ) | [read] |
| int hostapd_maclist_found | ( | struct mac_acl_entry * | list, | |
| int | num_entries, | |||
| const u8 * | addr, | |||
| int * | vlan_id | |||
| ) |
Find a MAC address from a list.
| list | MAC address list | |
| num_entries | Number of addresses in the list | |
| addr | Address to search for | |
| vlan_id | Buffer for returning VLAN ID or NULL if not needed |
Perform a binary search for given MAC address from a pre-sorted list.
1.6.1