mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-12-01 11:48:23 -05:00
3988046de5
Previously, MAC ACL could be modified only through file operations (modify accept/deny_mac_file and reload it to hostapd). Extend this to allow MAC ACL to be modified and displayed through new control interface commands: ACCEPT_ACL <subcmd> [argument] DENY_ACL <subcmd> [argument] subcmd: ADD_MAC <addr>[ VLAN_ID=<id>]|DEL_MAC <addr>|SHOW|CLEAR Signed-off-by: Tamizh chelvam <tamizhr@codeaurora.org>
23 lines
720 B
C
23 lines
720 B
C
/*
|
|
* hostapd / Configuration file parser
|
|
* Copyright (c) 2003-2009, Jouni Malinen <j@w1.fi>
|
|
*
|
|
* This software may be distributed under the terms of the BSD license.
|
|
* See README for more details.
|
|
*/
|
|
|
|
#ifndef CONFIG_FILE_H
|
|
#define CONFIG_FILE_H
|
|
|
|
struct hostapd_config * hostapd_config_read(const char *fname);
|
|
int hostapd_set_iface(struct hostapd_config *conf,
|
|
struct hostapd_bss_config *bss, const char *field,
|
|
char *value);
|
|
int hostapd_acl_comp(const void *a, const void *b);
|
|
int hostapd_add_acl_maclist(struct mac_acl_entry **acl, int *num,
|
|
int vlan_id, const u8 *addr);
|
|
void hostapd_remove_acl_mac(struct mac_acl_entry **acl, int *num,
|
|
const u8 *addr);
|
|
|
|
#endif /* CONFIG_FILE_H */
|