input
stringlengths
16
454k
output
stringlengths
13
350k
function_name
stringlengths
1
100
repo_name
stringlengths
6
43
category
stringclasses
76 values
sample_id
stringlengths
22
88
decompiler
stringclasses
1 value
opt_level
stringclasses
1 value
int hostap_set_ieee8021x(void *priv, wpa_bss_params *params) { int enabled; enabled = params->enabled; if (hostap_ioctl_prism2param(priv, 23, enabled)) { puts("Could not setup IEEE 802.1X support in kernel driver."); return -1; } else if (enabled) { if (hostap_ioctl_prism2param(priv, 18, 1) || ...
static int hostap_set_ieee8021x(void *priv, struct wpa_bss_params *params) { struct hostap_driver_data *drv = priv; int enabled = params->enabled; if (hostap_ioctl_prism2param(drv, PRISM2_PARAM_IEEE_802_1X, enabled)) { printf("Could not setup IEEE 802.1X support in kernel driver." "\n"); retur...
hostap_set_ieee8021x
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostap_set_iface_flags(void *priv, int dev_up) { int *v3; char *v4; ifreq ifr; char ifname[24]; unsigned long v7; v7 = __readfsqword(0x28u); if (snprintf(ifname, 0x10u, "%sap", (const char *)priv + 8) <= 15) { if (linux_set_iface_flags(*((_DWORD *)priv + 8), ifname, dev_up) >= 0) { if (dev_...
static int hostap_set_iface_flags(void *priv, int dev_up) { struct hostap_driver_data *drv = priv; struct ifreq ifr; char ifname[IFNAMSIZ]; if (os_snprintf(ifname, IFNAMSIZ, "%sap", drv->iface) >= IFNAMSIZ) { wpa_printf(MSG_ERROR, "hostap: AP interface name truncated"); return -1; } if (linux_set_i...
hostap_set_iface_flags
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostap_set_privacy(void *priv, int enabled) { return hostap_ioctl_prism2param(priv, 37, enabled); }
static int hostap_set_privacy(void *priv, int enabled) { struct hostap_drvier_data *drv = priv; return hostap_ioctl_prism2param(drv, PRISM2_PARAM_PRIVACY_INVOKED, enabled); }
hostap_set_privacy
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostap_set_ssid(void *priv, const u8 *buf, int len) { int *v3; char *v4; iwreq iwr; unsigned long v8; v8 = __readfsqword(0x28u); memset(&iwr, 0, sizeof(iwr)); os_strlcpy(iwr.ifr_ifrn.ifrn_name, (const char *)priv + 8, 0x10u); iwr.u.essid.flags = 1; iwr.u.essid.pointer = (void *)buf; iwr.u.essid...
static int hostap_set_ssid(void *priv, const u8 *buf, int len) { struct hostap_driver_data *drv = priv; struct iwreq iwr; memset(&iwr, 0, sizeof(iwr)); os_strlcpy(iwr.ifr_name, drv->iface, IFNAMSIZ); iwr.u.essid.flags = 1; iwr.u.essid.pointer = (caddr_t)buf; iwr.u.essid.length = len + 1; if (ioctl(drv...
hostap_set_ssid
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostap_sta_add(void *priv, hostapd_sta_add_params *params) { const u8 *addr; int tx_supp_rates; size_t i; prism2_hostapd_param param; unsigned long v7; v7 = __readfsqword(0x28u); tx_supp_rates = 0; for (i = 0; i < params->supp_rates_len; ++i) { if ((params->supp_rates[i] & 0x7F) == 2) tx_...
static int hostap_sta_add(void *priv, struct hostapd_sta_add_params *params) { struct hostap_driver_data *drv = priv; struct prism2_hostapd_param param; int tx_supp_rates = 0; size_t i; #define WLAN_RATE_1M BIT(0) #define WLAN_RATE_2M BIT(1) #define WLAN_RATE_5M5 BIT(2) #define WLAN_RATE_11M BIT(3) for (i =...
hostap_sta_add
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostap_sta_clear_stats(void *priv, const u8 *addr) { prism2_hostapd_param param; unsigned long v4; v4 = __readfsqword(0x28u); memset(&param, 0, sizeof(param)); param.cmd = 15; *(_DWORD *)param.sta_addr = *(_DWORD *)addr; *(_WORD *)&param.sta_addr[4] = *((_WORD *)addr + 2); if (hostapd_ioctl(priv, &...
static int hostap_sta_clear_stats(void *priv, const u8 *addr) { struct hostap_driver_data *drv = priv; struct prism2_hostapd_param param; memset(&param, 0, sizeof(param)); param.cmd = PRISM2_HOSTAPD_STA_CLEAR_STATS; memcpy(param.sta_addr, addr, ETH_ALEN); if (hostapd_ioctl(drv, &param, sizeof(param))) { ...
hostap_sta_clear_stats
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostap_sta_deauth(void *priv, const u8 *own_addr, const u8 *addr, u16 reason) { ieee80211_mgmt mgmt; unsigned long v8; v8 = __readfsqword(0x28u); if (is_broadcast_ether_addr_1(addr)) return 0; memset(&mgmt, 0, sizeof(mgmt)); mgmt.frame_control = 192; *(_DWORD *)mgmt.da = *(_...
static int hostap_sta_deauth(void *priv, const u8 *own_addr, const u8 *addr, u16 reason) { struct hostap_driver_data *drv = priv; struct ieee80211_mgmt mgmt; if (is_broadcast_ether_addr(addr)) { return 0; } memset(&mgmt, 0, sizeof(mgmt)); mgmt.frame_control = IEEE80211_FC...
hostap_sta_deauth
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostap_sta_disassoc(void *priv, const u8 *own_addr, const u8 *addr, u16 reason) { ieee80211_mgmt mgmt; unsigned long v8; v8 = __readfsqword(0x28u); memset(&mgmt, 0, sizeof(mgmt)); mgmt.frame_control = 160; *(_DWORD *)mgmt.da = *(_DWORD *)addr; *(_WORD *)&mgmt.da[4] = *((_WORD ...
static int hostap_sta_disassoc(void *priv, const u8 *own_addr, const u8 *addr, u16 reason) { struct hostap_driver_data *drv = priv; struct ieee80211_mgmt mgmt; memset(&mgmt, 0, sizeof(mgmt)); mgmt.frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT, WLAN_FC_STYPE_DISASSOC); memcpy(m...
hostap_sta_disassoc
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostap_sta_remove(void *priv, const u8 *addr) { prism2_hostapd_param param; unsigned long v4; v4 = __readfsqword(0x28u); hostap_sta_set_flags(priv, addr, 0, 0, 0xFFFFFFFE); memset(&param, 0, sizeof(param)); param.cmd = 3; *(_DWORD *)param.sta_addr = *(_DWORD *)addr; *(_WORD *)&param.sta_addr[4] = *...
static int hostap_sta_remove(void *priv, const u8 *addr) { struct hostap_driver_data *drv = priv; struct prism2_hostapd_param param; hostap_sta_set_flags(drv, addr, 0, 0, ~WPA_STA_AUTHORIZED); memset(&param, 0, sizeof(param)); param.cmd = PRISM2_HOSTAPD_REMOVE_STA; memcpy(param.sta_addr, addr, ETH_ALEN); ...
hostap_sta_remove
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostap_sta_set_flags(void *priv, const u8 *addr, unsigned int total_flags, unsigned int flags_or, unsigned int flags_and) { long flags_anda; prism2_hostapd_param param; unsigned long v8; HIDWORD(flags_anda) = flags_or; v8 = __readfsqword(0x28u); if ((flags_or & 1) != 0) HID...
static int hostap_sta_set_flags(void *priv, const u8 *addr, unsigned int total_flags, unsigned int flags_or, unsigned int flags_and) { struct hostap_driver_data *drv = priv; struct prism2_hostapd_param param; if (flags_or & WPA_STA_AUTHORIZED) f...
hostap_sta_set_flags
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostap_wireless_event_init(hostap_driver_data *drv) { netlink_config *cfg; hostap_get_we_version(drv); cfg = (netlink_config *)os_zalloc(0x18u); if (!cfg) return -1; cfg->ctx = drv; cfg->newlink_cb = (void (*)(void *, ifinfomsg *, u8 *, size_t))hostapd_wireless_event_r...
static int hostap_wireless_event_init(struct hostap_driver_data *drv) { struct netlink_config *cfg; hostap_get_we_version(drv); cfg = os_zalloc(sizeof(*cfg)); if (cfg == NULL) return -1; cfg->ctx = drv; cfg->newlink_cb = hostapd_wireless_event_rtm_newlink; drv->netlink = netlink_init(cfg); if (drv...
hostap_wireless_event_init
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_2040_coex_action(hostapd_data *hapd, const ieee80211_mgmt *mgmt, size_t len) { const char *v3; const char *v4; const char *v5; const char *v6; const char *v7; const char *v8; u8 ielen; u8 chan; int is_ht40_allowed; int i; int delay_time; const u8 *data;...
void hostapd_2040_coex_action(struct hostapd_data *hapd, const struct ieee80211_mgmt *mgmt, size_t len) { struct hostapd_iface *iface = hapd->iface; struct ieee80211_2040_bss_coex_ie *bc_ie; struct ieee80211_2040_intol_chan_report *ic_report; int is_ht40_allowed = 1; int i; con...
hostapd_2040_coex_action
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_acl_cache_free(hostapd_cached_radius_acl *acl_cache) { hostapd_cached_radius_acl *prev; while (acl_cache) { prev = acl_cache; acl_cache = acl_cache->next; hostapd_acl_cache_free_entry(prev); } }
static void hostapd_acl_cache_free(struct hostapd_cached_radius_acl *acl_cache) { struct hostapd_cached_radius_acl *prev; while (acl_cache) { prev = acl_cache; acl_cache = acl_cache->next; hostapd_acl_cache_free_entry(prev); } }
hostapd_acl_cache_free
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_acl_cache_free_entry(hostapd_cached_radius_acl *e) { free(e->info.identity); free(e->info.radius_cui); hostapd_free_psk_list(e->info.psk); free(e); }
static void hostapd_acl_cache_free_entry(struct hostapd_cached_radius_acl *e) { os_free(e->info.identity); os_free(e->info.radius_cui); hostapd_free_psk_list(e->info.psk); os_free(e); }
hostapd_acl_cache_free_entry
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_acl_cache_get(hostapd_data *hapd, const u8 *addr, radius_sta *out) { long v4; long v5; long v6; long v7; long v8; long v9; long v10; long v11; long v12; char *identity; hostapd_cached_radius_acl *entry; os_reltime now; unsigned long v17; v17 = __readfsqword(0x28u); os_get_relt...
static int hostapd_acl_cache_get(struct hostapd_data *hapd, const u8 *addr, struct radius_sta *out) { struct hostapd_cached_radius_acl *entry; struct os_reltime now; os_get_reltime(&now); for (entry = hapd->acl_cache; entry; entry = entry->next) { if (os_memcmp(entry->addr...
hostapd_acl_cache_get
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_acl_comp(const void *a, const void *b) { return memcmp(a, b, 6u); }
int hostapd_acl_comp(const void *a, const void *b) { const struct mac_acl_entry *aa = a; const struct mac_acl_entry *bb = b; return os_memcmp(aa->addr, bb->addr, sizeof(macaddr)); }
hostapd_acl_comp
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_acl_deinit(hostapd_data *hapd) { hostapd_acl_query_data *query; hostapd_acl_query_data *prev; hostapd_acl_cache_free(hapd->acl_cache); hapd->acl_cache = 0; query = hapd->acl_queries; hapd->acl_queries = 0; while (query) { prev = query; query = query->next; hostapd_acl_query_free(...
void hostapd_acl_deinit(struct hostapd_data *hapd) { struct hostapd_acl_query_data *query, *prev; #ifndef CONFIG_NO_RADIUS hostapd_acl_cache_free(hapd->acl_cache); hapd->acl_cache = NULL; #endif query = hapd->acl_queries; hapd->acl_queries = NULL; while (query) { prev = query; query = query->next;...
hostapd_acl_deinit
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_acl_expire(hostapd_data *hapd) { os_reltime now; unsigned long v2; v2 = __readfsqword(0x28u); os_get_reltime(&now); hostapd_acl_expire_cache(hapd, &now); hostapd_acl_expire_queries(hapd, &now); }
void hostapd_acl_expire(struct hostapd_data *hapd) { struct os_reltime now; os_get_reltime(&now); hostapd_acl_expire_cache(hapd, &now); hostapd_acl_expire_queries(hapd, &now); }
hostapd_acl_expire
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_acl_expire_cache(hostapd_data *hapd, os_reltime *now) { hostapd_cached_radius_acl *prev; hostapd_cached_radius_acl *entry; hostapd_cached_radius_acl *tmp; prev = 0; entry = hapd->acl_cache; while (entry) { if (os_reltime_expired(now, &entry->timestamp, 30)) { wpa_printf( 2,...
static void hostapd_acl_expire_cache(struct hostapd_data *hapd, struct os_reltime *now) { struct hostapd_cached_radius_acl *prev, *entry, *tmp; prev = NULL; entry = hapd->acl_cache; while (entry) { if (os_reltime_expired(now, &entry->timestamp, RADIUS_ACL_TIMEOUT)) { ...
hostapd_acl_expire_cache
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_acl_expire_queries(hostapd_data *hapd, os_reltime *now) { hostapd_acl_query_data *prev; hostapd_acl_query_data *entry; hostapd_acl_query_data *tmp; prev = 0; entry = hapd->acl_queries; while (entry) { if (os_reltime_expired(now, &entry->timestamp, 30)) { wpa_printf(2, "ACL query for ...
static void hostapd_acl_expire_queries(struct hostapd_data *hapd, struct os_reltime *now) { struct hostapd_acl_query_data *prev, *entry, *tmp; prev = NULL; entry = hapd->acl_queries; while (entry) { if (os_reltime_expired(now, &entry->timestamp, RADIUS_ACL_TIMEOUT)) ...
hostapd_acl_expire_queries
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_acl_init(hostapd_data *hapd) { if (radius_client_register( hapd->radius, RADIUS_AUTH, (RadiusRxResult (*)(radius_msg *, radius_msg *, const u8 *, size_t, void *))hostapd_acl_recv_radius, hapd)) { return -1; } else { return 0; } }
int hostapd_acl_init(struct hostapd_data *hapd) { #ifndef CONFIG_NO_RADIUS if (radius_client_register(hapd->radius, RADIUS_AUTH, hostapd_acl_recv_radius, hapd)) return -1; #endif return 0; }
hostapd_acl_init
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_acl_query_free(hostapd_acl_query_data *query) { if (query) { free(query->auth_msg); free(query); } }
static void hostapd_acl_query_free(struct hostapd_acl_query_data *query) { if (query == NULL) return; os_free(query->auth_msg); os_free(query); }
hostapd_acl_query_free
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
RadiusRxResult hostapd_acl_recv_radius(radius_msg *msg, radius_msg *req, const u8 *shared_secret, size_t shared_secret_len, void *data) { char *v6; char *v7; const char *v8; u8 *buf; size_t len; hostapd_acl_query_data *query; ho...
static RadiusRxResult hostapd_acl_recv_radius(struct radius_msg *msg, struct radius_msg *req, const u8 *shared_secret, size_t shared_secret_len, ...
hostapd_acl_recv_radius
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_acs_channel_selected(hostapd_data *hapd, acs_selected_channels *acs_res) { int v2; int i; hostapd_hw_modes *mode; hostapd_channel_data *pri_chan; if (hapd->iconf->channel) { wpa_printf(3, "ACS: Channel was already set to %d", hapd->iconf->channel); retur...
void hostapd_acs_channel_selected(struct hostapd_data *hapd, struct acs_selected_channels *acs_res) { int ret, i; int err = 0; struct hostapd_channel_data *pri_chan; if (hapd->iconf->channel) { wpa_printf(MSG_INFO, "ACS: Channel was already set to %d", hapd-...
hostapd_acs_channel_selected
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_acs_completed(hostapd_iface *iface, int err) { hostapd_chan_status v2; int ret; ret = -1; if (!err) { v2 = hostapd_check_chans(iface); if (v2) { if (v2 == hostapd_chan_status_HOSTAPD_CHAN_ACS) wpa_printf(5, "ACS error - reported complete, but no result available"); else ...
int hostapd_acs_completed(struct hostapd_iface *iface, int err) { int ret = -1; if (err) goto out; switch (hostapd_check_chans(iface)) { case HOSTAPD_CHAN_VALID: wpa_msg(iface->bss[0]->msg_ctx, MSG_INFO, ACS_EVENT_COMPLETED "freq=%d channel=%d", iface->freq, iface->conf->channe...
hostapd_acs_completed
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_add_acl_maclist(mac_acl_entry **acl, int *num, int vlan_id, const u8 *addr) { mac_acl_entry *newacl; newacl = (mac_acl_entry *)os_realloc_array_0(*acl, *num + 1, 0x90u); if (newacl) { *acl = newacl; memcpy(&(*acl)[*num], addr, 6u); memset(&(*acl)[*num].vlan_id,...
int hostapd_add_acl_maclist(struct mac_acl_entry **acl, int *num, int vlan_id, const u8 *addr) { struct mac_acl_entry *newacl; newacl = os_realloc_array(*acl, *num + 1, sizeof(**acl)); if (!newacl) { wpa_printf(MSG_ERROR, "MAC list reallocation failed"); return -1; } *acl...
hostapd_add_acl_maclist
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_add_iface(hapd_interfaces *interfaces, char *buf) { hostapd_iface **iface; size_t count; char *v5; const char *v6; hostapd_config *conf; hostapd_iface *hapd_iface; hostapd_iface *new_iface; size_t i; size_t ia; size_t j; const char *conf_file; const char *driver; char *ptr; char ...
int hostapd_add_iface(struct hapd_interfaces *interfaces, char *buf) { struct hostapd_config *conf = NULL; struct hostapd_iface *hapd_iface = NULL, *new_iface = NULL; struct hostapd_data *hapd; char *ptr; size_t i, j; const char *conf_file = NULL, *phy_name = NULL; if (os_strncmp(buf, "bss_config=", 11) ...
hostapd_add_iface
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_add_sta_node(hostapd_data *hapd, const u8 *addr, u16 auth_alg) { if (hapd->driver && hapd->driver->add_sta_node) return hapd->driver->add_sta_node(hapd->drv_priv, addr, auth_alg); else return -95; }
int hostapd_add_sta_node(struct hostapd_data *hapd, const u8 *addr, u16 auth_alg) { if (hapd->driver == NULL || hapd->driver->add_sta_node == NULL) return -EOPNOTSUPP; return hapd->driver->add_sta_node(hapd->drv_priv, addr, auth_alg); }
hostapd_add_sta_node
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_add_tspec(hostapd_data *hapd, const u8 *addr, u8 *tspec_ie, size_t tspec_ielen) { if (hapd->driver && hapd->driver->add_tspec) return hapd->driver->add_tspec(hapd->drv_priv, addr, tspec_ie, tspec_ielen); else return 0; }
int hostapd_add_tspec(struct hostapd_data *hapd, const u8 *addr, u8 *tspec_ie, size_t tspec_ielen) { if (hapd->driver == NULL || hapd->driver->add_tspec == NULL) return 0; return hapd->driver->add_tspec(hapd->drv_priv, addr, tspec_ie, tspec_ielen); }
hostapd_add_tspec
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
hostapd_data *hostapd_alloc_bss_data(hostapd_iface *hapd_iface, hostapd_config *conf, hostapd_bss_config *bss) { hostapd_data *hapd; hapd = (hostapd_data *)os_zalloc(0xE80u); if (!hapd) return 0; hapd->new_assoc_sta_cb = (void ...
struct hostapd_data *hostapd_alloc_bss_data(struct hostapd_iface *hapd_iface, struct hostapd_config *conf, struct hostapd_bss_config *bss) { struct hostapd_data *hapd; hapd = os_zalloc(sizeof(*hapd)); if (hapd == NULL) re...
hostapd_alloc_bss_data
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
hostapd_iface *hostapd_alloc_iface() { hostapd_iface *hapd_iface; hapd_iface = (hostapd_iface *)os_zalloc(0x9D0u); if (!hapd_iface) return 0; dl_list_init_0(&hapd_iface->sta_seen); return hapd_iface; }
struct hostapd_iface *hostapd_alloc_iface(void) { struct hostapd_iface *hapd_iface; hapd_iface = os_zalloc(sizeof(*hapd_iface)); if (!hapd_iface) return NULL; dl_list_init(&hapd_iface->sta_seen); return hapd_iface; }
hostapd_alloc_iface
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_allowed_address(hostapd_data *hapd, const u8 *addr, const u8 *msg, size_t len, radius_sta *out, int is_probe_req) { int res; int resa; hostapd_acl_query_data *query; hostapd_acl_query_data *querya; memset(out, 0, sizeof(radius_sta)); res = hostapd_check_acl(hapd, add...
int hostapd_allowed_address(struct hostapd_data *hapd, const u8 *addr, const u8 *msg, size_t len, struct radius_sta *out, int is_probe_req) { int res; os_memset(out, 0, sizeof(*out)); res = hostapd_check_acl(hapd, addr, &out->vlan_id); if (res != HOSTAPD...
hostapd_allowed_address
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_bss_deinit(hostapd_data *hapd) { hostapd_bss_config *conf; if (hapd) { if (hapd->conf) conf = hapd->conf; else conf = (hostapd_bss_config *)"N/A"; wpa_printf(2, "%s: deinit bss %s", "hostapd_bss_deinit", conf->iface); hostapd_bss_deinit_no_free(hapd); wpa_msg(hapd->msg_...
static void hostapd_bss_deinit(struct hostapd_data *hapd) { if (!hapd) return; wpa_printf(MSG_DEBUG, "%s: deinit bss %s", __func__, hapd->conf ? hapd->conf->iface : "N/A"); hostapd_bss_deinit_no_free(hapd); wpa_msg(hapd->msg_ctx, MSG_INFO, AP_EVENT_DISABLED); #ifdef CONFIG_SQLITE if (hapd->ra...
hostapd_bss_deinit
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_bss_deinit_no_free(hostapd_data *hapd) { hostapd_free_stas(hapd); hostapd_flush_old_stations(hapd, 3u); }
void hostapd_bss_deinit_no_free(struct hostapd_data *hapd) { hostapd_free_stas(hapd); hostapd_flush_old_stations(hapd, WLAN_REASON_DEAUTH_LEAVING); #ifdef CONFIG_WEP hostapd_clear_wep(hapd); #endif }
hostapd_bss_deinit_no_free
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_build_ap_extra_ies(hostapd_data *hapd, wpabuf **beacon_ret, wpabuf **proberesp_ret, wpabuf **assocresp_ret) { wpabuf *beacon; wpabuf *proberesp; wpabuf *assocresp; u8 *pos; wpabuf *a; u8 buf[200]; unsigned long v13; v13 = __readfsqword(0x28u); beacon = 0; ...
int hostapd_build_ap_extra_ies(struct hostapd_data *hapd, struct wpabuf **beacon_ret, struct wpabuf **proberesp_ret, struct wpabuf **assocresp_ret) { struct wpabuf *beacon = NULL, *proberesp = NULL, *assocresp = NULL; u8 bu...
hostapd_build_ap_extra_ies
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_build_beacon_data(hostapd_data *hapd, beacon_data *beacon) { size_t v3; size_t v4; size_t v5; int ret; int reta; wpabuf *beacon_extra; wpabuf *proberesp_extra; wpabuf *assocresp_extra; wpa_driver_ap_params params; unsigned long v12; v12 = __readfsqword(0x28u); memset(beacon, 0, size...
static int hostapd_build_beacon_data(struct hostapd_data *hapd, struct beacon_data *beacon) { struct wpabuf *beacon_extra, *proberesp_extra, *assocresp_extra; struct wpa_driver_ap_params params; int ret; os_memset(beacon, 0, sizeof(*beacon)); ret = ieee802_11_build_ap_par...
hostapd_build_beacon_data
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_chan_switch_config(hostapd_data *hapd, hostapd_freq_params *freq_params) { unsigned int v2; unsigned int v3; if (freq_params->he_enabled) v2 = hapd->iconf->ch_switch_he_config | 1; else v2 = hapd->iconf->ch_switch_he_config | 2; hapd->iconf->ch_switch_he_c...
void hostapd_chan_switch_config(struct hostapd_data *hapd, struct hostapd_freq_params *freq_params) { if (freq_params->he_enabled) hapd->iconf->ch_switch_he_config |= CH_SWITCH_HE_ENABLED; else hapd->iconf->ch_switch_he_config |= CH_SWITCH_HE_DISABLED; if (freq_params->vht...
hostapd_chan_switch_config
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_change_config_freq(hostapd_data *hapd, hostapd_config *conf, hostapd_freq_params *params, hostapd_freq_params *old_params) { int secondary_channel; int ieee80211ax; int ieee80211ac; int ieee80211n; int v9; int freq; int bandwidth; ...
static int hostapd_change_config_freq(struct hostapd_data *hapd, struct hostapd_config *conf, struct hostapd_freq_params *params, struct hostapd_freq_params *old_params) { int channel; u8 seg0, seg1; ...
hostapd_change_config_freq
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_channel_info(void *ctx, wpa_channel_info *ci) { return hostapd_drv_channel_info((hostapd_data *)ctx, ci); }
static int hostapd_channel_info(void *ctx, struct wpa_channel_info *ci) { struct hostapd_data *hapd = ctx; return hostapd_drv_channel_info(hapd, ci); }
hostapd_channel_info
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_channel_list_updated(hostapd_iface *iface, int initiator) { if ((*((_BYTE *)iface + 72) & 1) != 0 && initiator == 1) { wpa_printf(2, "Channel list updated - continue setup"); eloop_cancel_timeout((eloop_timeout_handler)channel_list_update_timeout, iface, 0); setup_int...
void hostapd_channel_list_updated(struct hostapd_iface *iface, int initiator) { if (!iface->wait_channel_update || initiator != REGDOM_SET_BY_USER) return; wpa_printf(MSG_DEBUG, "Channel list updated - continue setup"); eloop_cancel_timeout(channel_list_update_timeout, iface, NULL); setup_interface2(iface)...
hostapd_channel_list_updated
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_check_acl(hostapd_data *hapd, const u8 *addr, vlan_description *vlan_id) { if (hostapd_maclist_found(hapd->conf->accept_mac, hapd->conf->num_accept_mac, addr, vlan_id)) return 1; if (hostapd_maclist_found(hapd->conf->deny_mac, hapd->conf->num_deny_ma...
int hostapd_check_acl(struct hostapd_data *hapd, const u8 *addr, struct vlan_description *vlan_id) { if (hostapd_maclist_found(hapd->conf->accept_mac, hapd->conf->num_accept_mac, addr, vlan_id)) return HOSTAPD_ACL_ACCEPT; if (hostapd_maclist_found(hapd->conf->d...
hostapd_check_acl
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
hostapd_chan_status hostapd_check_chans(hostapd_iface *iface) { if (iface->freq) { hostapd_determine_mode(iface); return hostapd_is_usable_chans(iface) == 0; } else if (acs_init(iface) == hostapd_chan_status_HOSTAPD_CHAN_ACS) { return hostapd_chan_status_HOSTAPD_CHAN_ACS; } else { return hostapd_c...
static enum hostapd_chan_status hostapd_check_chans(struct hostapd_iface *iface) { if (iface->freq) { hostapd_determine_mode(iface); if (hostapd_is_usable_chans(iface)) return HOSTAPD_CHAN_VALID; else return HOSTAPD_CHAN_INVALID; } switch (acs_init(iface)) { case HOSTAPD_CHAN_ACS: r...
hostapd_check_chans
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_check_edmg_capab(hostapd_iface *iface) { hostapd_hw_modes *mode; ieee80211_edmg_config edmg; unsigned long v4; ieee80211_edmg_config v5; v4 = __readfsqword(0x28u); mode = iface->hw_features; if (!iface->conf->enable_edmg) return 0; hostapd_encode_edmg_chan(iface->conf->enable_edmg, ifac...
int hostapd_check_edmg_capab(struct hostapd_iface *iface) { struct hostapd_hw_modes *mode = iface->hw_features; struct ieee80211_edmg_config edmg; if (!iface->conf->enable_edmg) return 0; hostapd_encode_edmg_chan(iface->conf->enable_edmg, iface->conf->edmg_channel, iface->conf->...
hostapd_check_edmg_capab
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_check_he_6ghz_capab(hostapd_iface *iface) { return 0; }
int hostapd_check_he_6ghz_capab(struct hostapd_iface *iface) { #ifdef CONFIG_IEEE80211AX struct he_capabilities *he_cap; u16 hw; if (!iface->current_mode || !is_6ghz_freq(iface->freq)) return 0; he_cap = &iface->current_mode->he_capab[IEEE80211_MODE_AP]; hw = he_cap->he_6ghz_capa; if (iface->conf->he_...
hostapd_check_he_6ghz_capab
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_check_ht_capab(hostapd_iface *iface) { u16 ht_capab; int ret; if (is_6ghz_freq(iface->freq)) return 0; if (!iface->conf->ieee80211n) return 0; if (iface->current_mode->mode >= (unsigned int)hostapd_hw_mode_HOSTAPD_MODE_IEEE80211A && (iface->conf->ht_capab & 0x1000) != 0) {...
int hostapd_check_ht_capab(struct hostapd_iface *iface) { int ret; if (is_6ghz_freq(iface->freq)) return 0; if (!iface->conf->ieee80211n) return 0; if (iface->current_mode->mode != HOSTAPD_MODE_IEEE80211B && iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G && (iface->conf->ht_capab & H...
hostapd_check_ht_capab
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_check_lci_age(hostapd_neighbor_entry *nr, u16 max_age) { os_time curr; os_time diff; unsigned long v5; v5 = __readfsqword(0x28u); if (nr->stationary || max_age == 0xFFFF) return 1; if (!max_age) return 0; if (os_get_time(&curr)) return 0; os_time_sub(&curr, &nr->lci_date, &diff)...
static int hostapd_check_lci_age(struct hostapd_neighbor_entry *nr, u16 max_age) { struct os_time curr, diff; unsigned long diff_l; if (nr->stationary || max_age == 0xffff) return 1; if (!max_age) return 0; if (os_get_time(&curr)) return 0; os_time_sub(&curr,...
hostapd_check_lci_age
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_clean_rrm(hostapd_data *hapd) { hostapd_free_neighbor_db(hapd); eloop_cancel_timeout((eloop_timeout_handler)hostapd_lci_rep_timeout_handler, hapd, 0); *((_BYTE *)hapd + 3547) &= ~1u; eloop_cancel_timeout((eloop_timeout_handler)hostapd_range_rep_timeout_handler, ...
void hostapd_clean_rrm(struct hostapd_data *hapd) { hostapd_free_neighbor_db(hapd); eloop_cancel_timeout(hostapd_lci_rep_timeout_handler, hapd, NULL); hapd->lci_req_active = 0; eloop_cancel_timeout(hostapd_range_rep_timeout_handler, hapd, NULL); hapd->range_req_active = 0; }
hostapd_clean_rrm
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_cleanup(hostapd_data *hapd) { hostapd_bss_config *conf; if (hapd->conf) conf = hapd->conf; else conf = (hostapd_bss_config *)"N/A"; wpa_printf(2, "%s(hapd=%p (%s))", "hostapd_cleanup", hapd, conf->iface); if (hapd->iface->interfaces && hapd->iface->interfaces->ctrl_iface_deinit) { wp...
static void hostapd_cleanup(struct hostapd_data *hapd) { wpa_printf(MSG_DEBUG, "%s(hapd=%p (%s))", __func__, hapd, hapd->conf ? hapd->conf->iface : "N/A"); if (hapd->iface->interfaces && hapd->iface->interfaces->ctrl_iface_deinit) { wpa_msg(hapd->msg_ctx, MSG_INFO, WPA_EVENT_TERMINATING); hapd-...
hostapd_cleanup
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_cleanup_cs_params(hostapd_data *hapd) { memset(&hapd->cs_freq_params, 0, sizeof(hapd->cs_freq_params)); hapd->cs_count = 0; hapd->cs_block_tx = 0; hapd->cs_c_off_beacon = 0; hapd->cs_c_off_proberesp = 0; hapd->csa_in_progress = 0; hapd->cs_c_off_ecsa_beacon = 0; hapd->cs_c_off_ecsa_proberes...
void hostapd_cleanup_cs_params(struct hostapd_data *hapd) { os_memset(&hapd->cs_freq_params, 0, sizeof(hapd->cs_freq_params)); hapd->cs_count = 0; hapd->cs_block_tx = 0; hapd->cs_c_off_beacon = 0; hapd->cs_c_off_proberesp = 0; hapd->csa_in_progress = 0; hapd->cs_c_off_ecsa_beacon = 0; hapd->cs_c_off_ecs...
hostapd_cleanup_cs_params
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_cleanup_iface(hostapd_iface *iface) { wpa_printf(2, "%s(%p)", "hostapd_cleanup_iface", iface); eloop_cancel_timeout((eloop_timeout_handler)channel_list_update_timeout, iface, 0); eloop_cancel_timeout( (eloop_timeout_handler)hostapd_interface_setup_failure_handler, iface, ...
static void hostapd_cleanup_iface(struct hostapd_iface *iface) { wpa_printf(MSG_DEBUG, "%s(%p)", __func__, iface); eloop_cancel_timeout(channel_list_update_timeout, iface, NULL); eloop_cancel_timeout(hostapd_interface_setup_failure_handler, iface, NULL); hostapd_cleanup_iface_partial(iface); hostapd_config_f...
hostapd_cleanup_iface
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_cleanup_iface_partial(hostapd_iface *iface) { wpa_printf(2, "%s(%p)", "hostapd_cleanup_iface_partial", iface); hostapd_stop_setup_timers(iface); if (iface->current_mode) acs_cleanup(iface); hostapd_free_hw_features(iface->hw_features, iface->num_hw_features); iface->hw_features = 0; iface->...
void hostapd_cleanup_iface_partial(struct hostapd_iface *iface) { wpa_printf(MSG_DEBUG, "%s(%p)", __func__, iface); #ifdef NEED_AP_MLME hostapd_stop_setup_timers(iface); #endif if (iface->current_mode) acs_cleanup(iface); hostapd_free_hw_features(iface->hw_features, iface->num_hw_features); iface->hw_feat...
hostapd_cleanup_iface_partial
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_clear_old(hostapd_iface *iface) { size_t j; for (j = 0; j < iface->num_bss; ++j) { hostapd_flush_old_stations(iface->bss[j], 2u); radius_client_flush(iface->bss[j]->radius, 0); } }
static void hostapd_clear_old(struct hostapd_iface *iface) { size_t j; for (j = 0; j < iface->num_bss; j++) { hostapd_flush_old_stations(iface->bss[j], WLAN_REASON_PREV_AUTH_NOT_VALID); #ifdef CONFIG_WEP hostapd_broadcast_wep_clear(iface->bss[j]); #endif #ifndef CONFIG_NO_RADIUS radius_client_flush(i...
hostapd_clear_old
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_client_poll_ok(hostapd_data *hapd, const u8 *addr) { hostapd_data *hapda; sta_info *sta; size_t j; hostapd_iface *iface; hapda = hapd; iface = hapd->iface; sta = ap_get_sta(hapd, addr); if (!sta && iface->num_bss > 1) { for (j = 0; j < iface->num_bss; ++j) { hapda = iface->bss[j]...
void hostapd_client_poll_ok(struct hostapd_data *hapd, const u8 *addr) { struct sta_info *sta; struct hostapd_iface *iface = hapd->iface; sta = ap_get_sta(hapd, addr); if (sta == NULL && iface->num_bss > 1) { size_t j; for (j = 0; j < iface->num_bss; j++) { hapd = iface->bss[j]; sta = ap_ge...
hostapd_client_poll_ok
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
hostapd_config *hostapd_config_alloc(hapd_interfaces *interfaces, const char *ifname, const char *ctrl_iface, const char *driver) { int j; hostapd_config *conf; hostapd_bss_config *bss; conf = hostapd_config_defaults(); if (conf) { ...
static struct hostapd_config * hostapd_config_alloc(struct hapd_interfaces *interfaces, const char *ifname, const char *ctrl_iface, const char *driver) { struct hostapd_bss_config *bss; struct hostapd_config *conf; conf = hostapd_config_defaults(); if (conf == NULL) { wpa_printf(MSG_ER...
hostapd_config_alloc
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_config_bss(hostapd_config *conf, const char *ifname) { hostapd_bss_config **v3; size_t num_bss; hostapd_bss_config **all; hostapd_bss_config *bss; if (!*ifname) return -1; all = (hostapd_bss_config **)os_realloc_array_0(conf->bss, conf->num_bss + 1, ...
static int hostapd_config_bss(struct hostapd_config *conf, const char *ifname) { struct hostapd_bss_config **all, *bss; if (*ifname == '\0') return -1; all = os_realloc_array(conf->bss, conf->num_bss + 1, sizeof(struct hostapd_bss_config *)); if (all == NULL) { wpa_printf(MSG_...
hostapd_config_bss
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_config_check(hostapd_config *conf, int full_config) { size_t i; size_t ia; if (!full_config || !conf->ieee80211d || conf->country[0] && conf->country[1]) { if (full_config && conf->ieee80211h && !conf->ieee80211d) { wpa_printf(5, "Cannot enable IEEE 802.11h without IEEE 802.11d enable...
int hostapd_config_check(struct hostapd_config *conf, int full_config) { size_t i; if (full_config && conf->ieee80211d && (!conf->country[0] || !conf->country[1])) { wpa_printf(MSG_ERROR, "Cannot enable IEEE 802.11d without " "setting the country_code"); return -1; } if...
hostapd_config_check
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_config_check_bss(hostapd_bss_config *bss, hostapd_config *conf, int full_config) { size_t i; if (full_config && is_6ghz_op_class(conf->op_class) && !hostapd_config_check_bss_6g(bss)) return -1; if (!full_config || !bss->ieee802_1x || bss->eap_server || bss...
static int hostapd_config_check_bss(struct hostapd_bss_config *bss, struct hostapd_config *conf, int full_config) { if (full_config && is_6ghz_op_class(conf->op_class) && !hostapd_config_check_bss_6g(bss)) return -1; if (full_config ...
hostapd_config_check_bss
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
bool hostapd_config_check_bss_6g(hostapd_bss_config *bss) { if (bss->wpa == 2) { if (bss->ieee80211w == mfp_options_MGMT_FRAME_PROTECTION_REQUIRED) { if ((bss->wpa_key_mgmt & 0x142) != 0) { wpa_printf(5, "Invalid AKM suite for 6 GHz"); return 0; } else if ((bss->rsn_pairwise & 0xE) != ...
static bool hostapd_config_check_bss_6g(struct hostapd_bss_config *bss) { if (bss->wpa != WPA_PROTO_RSN) { wpa_printf(MSG_ERROR, "Pre-RSNA security methods are not allowed in 6 GHz"); return false; } if (bss->ieee80211w != MGMT_FRAME_PROTECTION_REQUIRED) { wpa_printf(MSG_ERROR, "Management frame prot...
hostapd_config_check_bss_6g
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_config_check_cw(hostapd_config *conf, int queue) { int tx_cwmin; int tx_cwmax; int ac_cwmin; int ac_cwmax; tx_cwmin = conf->tx_queue[queue].cwmin; tx_cwmax = conf->tx_queue[queue].cwmax; ac_cwmin = conf->wmm_ac_params[queue].cwmin; ac_cwmax = conf->wmm_ac_params[queue].cwmax; if (tx_cwmin...
static int hostapd_config_check_cw(struct hostapd_config *conf, int queue) { int tx_cwmin = conf->tx_queue[queue].cwmin; int tx_cwmax = conf->tx_queue[queue].cwmax; int ac_cwmin = conf->wmm_ac_params[queue].cwmin; int ac_cwmax = conf->wmm_ac_params[queue].cwmax; if (tx_cwmin > tx_cwmax) { wpa_printf( ...
hostapd_config_check_cw
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_config_clear_wpa_psk(hostapd_wpa_psk **l) { hostapd_wpa_psk *psk; hostapd_wpa_psk *tmp; psk = *l; while (psk) { tmp = psk; psk = psk->next; bin_clear_free(tmp, 0x60u); } *l = 0; }
void hostapd_config_clear_wpa_psk(struct hostapd_wpa_psk **l) { struct hostapd_wpa_psk *psk, *tmp; for (psk = *l; psk;) { tmp = psk; psk = psk->next; bin_clear_free(tmp, sizeof(*tmp)); } *l = NULL; }
hostapd_config_clear_wpa_psk
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
hostapd_config *hostapd_config_defaults() { hostapd_config *conf; hostapd_bss_config *bss; conf = (hostapd_config *)os_zalloc(0x1D0u); bss = (hostapd_bss_config *)os_zalloc(0x908u); if (conf && bss) { conf->bss = (hostapd_bss_config **)os_calloc_3(1u, 8u); if (conf->bss) { *conf->bss = bss; ...
struct hostapd_config *hostapd_config_defaults(void) { #define ecw2cw(ecw) ((1 << (ecw)) - 1) struct hostapd_config *conf; struct hostapd_bss_config *bss; const int aCWmin = 4, aCWmax = 10; const struct hostapd_wmm_ac_params ac_bk = {aCWmin, aCWmax, 7, 0, 0}; const struct hostapd_wmm_ac_params ac_be = {aCWmi...
hostapd_config_defaults
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_config_defaults_bss(hostapd_bss_config *bss) { dl_list_init_2(&bss->anqp_elem); bss->logger_syslog_level = hostapd_logger_level_HOSTAPD_LEVEL_INFO; bss->logger_stdout_level = hostapd_logger_level_HOSTAPD_LEVEL_INFO; bss->logger_syslog = -1; bss->logger_stdout = -1; bss->auth_algs = 1; bss->ea...
void hostapd_config_defaults_bss(struct hostapd_bss_config *bss) { dl_list_init(&bss->anqp_elem); bss->logger_syslog_level = HOSTAPD_LEVEL_INFO; bss->logger_stdout_level = HOSTAPD_LEVEL_INFO; bss->logger_syslog = (unsigned int)-1; bss->logger_stdout = (unsigned int)-1; #ifdef CONFIG_WEP bss->auth_algs = W...
hostapd_config_defaults_bss
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_config_eap_user_salted(hostapd_eap_user *user, const char *hash, size_t len, char **pos, int line, const char *fname) { char *pos2; for (pos2 = *pos; *pos2 && *pos2 != 32 && *pos2 != 9 && *pos2 != 35; ++pos2) ; if (pos2 - *pos ...
static int hostapd_config_eap_user_salted(struct hostapd_eap_user *user, const char *hash, size_t len, char **pos, int line, const char *fname) { char *pos2 = *pos; while (*pos2 != '\0' && ...
hostapd_config_eap_user_salted
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_config_fill(hostapd_config *conf, hostapd_bss_config *bss, const char *buf, char *pos, int line) { u32 v6; char *v7; hostapd_radius_servers *radius; hostapd_radius_server *auth_server; hostapd_radius_server *v10; hostapd_radius_server *acct_server; hostapd_radius_server...
static int hostapd_config_fill(struct hostapd_config *conf, struct hostapd_bss_config *bss, const char *buf, char *pos, int line) { if (os_strcmp(buf, "interface") == 0) { os_strlcpy(conf->bss[0]->iface, pos, sizeof(conf->bss[0]->iface)); } else if (...
hostapd_config_fill
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_config_free(hostapd_config *conf) { size_t i; if (conf) { for (i = 0; i < conf->num_bss; ++i) hostapd_config_free_bss(conf->bss[i]); free(conf->bss); free(conf->supported_rates); free(conf->basic_rates); free(conf->acs_ch_list.range); free(conf->acs_freq_list.range); ...
void hostapd_config_free(struct hostapd_config *conf) { size_t i; if (conf == NULL) return; for (i = 0; i < conf->num_bss; i++) hostapd_config_free_bss(conf->bss[i]); os_free(conf->bss); os_free(conf->supported_rates); os_free(conf->basic_rates); os_free(conf->acs_ch_list.range); os_free(conf-...
hostapd_config_free
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_config_free_anqp_elem(hostapd_bss_config *conf) { dl_list *v1; anqp_element *elem; while (1) { v1 = dl_list_empty_2(&conf->anqp_elem) ? 0LL : conf->anqp_elem.next; elem = (anqp_element *)v1; if (!v1) break; dl_list_del_3(v1); wpabuf_free(elem->payload); free(elem); } ...
static void hostapd_config_free_anqp_elem(struct hostapd_bss_config *conf) { struct anqp_element *elem; while ((elem = dl_list_first(&conf->anqp_elem, struct anqp_element, list))) { dl_list_del(&elem->list); wpabuf_free(elem->payload); os_free(elem); } }
hostapd_config_free_anqp_elem
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_config_free_bss(hostapd_bss_config *conf) { size_t i; size_t ia; size_t ib; ft_remote_r0kh *r0kh; ft_remote_r1kh *r1kh; size_t j; hs20_osu_provider *p; ft_remote_r1kh *r1kh_prev; ft_remote_r0kh *r0kh_prev; if (conf) { hostapd_config_clear_wpa_psk(&conf->ssid.wpa_psk); str_clear...
void hostapd_config_free_bss(struct hostapd_bss_config *conf) { #if defined(CONFIG_WPS) || defined(CONFIG_HS20) size_t i; #endif if (conf == NULL) return; hostapd_config_clear_wpa_psk(&conf->ssid.wpa_psk); str_clear_free(conf->ssid.wpa_passphrase); os_free(conf->ssid.wpa_psk_file); #ifdef CONFIG_WEP ...
hostapd_config_free_bss
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_config_free_eap_user(hostapd_eap_user *user) { hostapd_config_free_radius_attr(user->accept_attr); free(user->identity); bin_clear_free(user->password, user->password_len); bin_clear_free(user->salt, user->salt_len); free(user); }
void hostapd_config_free_eap_user(struct hostapd_eap_user *user) { hostapd_config_free_radius_attr(user->accept_attr); os_free(user->identity); bin_clear_free(user->password, user->password_len); bin_clear_free(user->salt, user->salt_len); os_free(user); }
hostapd_config_free_eap_user
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_config_free_eap_users(hostapd_eap_user *user) { hostapd_eap_user *prev_user; while (user) { prev_user = user; user = user->next; hostapd_config_free_eap_user(prev_user); } }
void hostapd_config_free_eap_users(struct hostapd_eap_user *user) { struct hostapd_eap_user *prev_user; while (user) { prev_user = user; user = user->next; hostapd_config_free_eap_user(prev_user); } }
hostapd_config_free_eap_users
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_config_free_fils_realms(hostapd_bss_config *conf) { ; }
static void hostapd_config_free_fils_realms(struct hostapd_bss_config *conf) { #ifdef CONFIG_FILS struct fils_realm *realm; while ((realm = dl_list_first(&conf->fils_realms, struct fils_realm, list))) { dl_list_del(&realm->list); os_free(realm); } #endif }
hostapd_config_free_fils_realms
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_config_free_radius(hostapd_radius_server *servers, int num_servers) { int i; for (i = 0; i < num_servers; ++i) free(servers[i].shared_secret); free(servers); }
static void hostapd_config_free_radius(struct hostapd_radius_server *servers, int num_servers) { int i; for (i = 0; i < num_servers; i++) { os_free(servers[i].shared_secret); } os_free(servers); }
hostapd_config_free_radius
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_config_free_radius_attr(hostapd_radius_attr *attr) { hostapd_radius_attr *prev; while (attr) { prev = attr; attr = attr->next; wpabuf_free(prev->val); free(prev); } }
void hostapd_config_free_radius_attr(struct hostapd_radius_attr *attr) { struct hostapd_radius_attr *prev; while (attr) { prev = attr; attr = attr->next; wpabuf_free(prev->val); os_free(prev); } }
hostapd_config_free_radius_attr
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_config_free_sae_passwords(hostapd_bss_config *conf) { sae_password_entry *pw; sae_password_entry *tmp; pw = conf->sae_passwords; conf->sae_passwords = 0; while (pw) { tmp = pw; pw = pw->next; str_clear_free(tmp->password); free(tmp->identifier); sae_deinit_pt(tmp->pt); fr...
static void hostapd_config_free_sae_passwords(struct hostapd_bss_config *conf) { struct sae_password_entry *pw, *tmp; pw = conf->sae_passwords; conf->sae_passwords = NULL; while (pw) { tmp = pw; pw = pw->next; str_clear_free(tmp->password); os_free(tmp->identifier); #ifdef CONFIG_SAE sae_de...
hostapd_config_free_sae_passwords
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_config_free_vlan(hostapd_bss_config *bss) { hostapd_vlan *vlan; hostapd_vlan *prev; vlan = bss->vlan; while (vlan) { prev = vlan; vlan = vlan->next; free(prev); } bss->vlan = 0; }
static void hostapd_config_free_vlan(struct hostapd_bss_config *bss) { struct hostapd_vlan *vlan, *prev; vlan = bss->vlan; prev = NULL; while (vlan) { prev = vlan; vlan = vlan->next; os_free(prev); } bss->vlan = NULL; }
hostapd_config_free_vlan
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
hostapd_radius_attr *hostapd_config_get_radius_attr(hostapd_radius_attr *attr, u8 type) { while (attr) { if (type == attr->type) return attr; attr = attr->next; } return 0; }
struct hostapd_radius_attr * hostapd_config_get_radius_attr(struct hostapd_radius_attr *attr, u8 type) { for (; attr; attr = attr->next) { if (attr->type == type) return attr; } return NULL; }
hostapd_config_get_radius_attr
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_config_ht_capab(hostapd_config *conf, const char *capab) { u16 ht_capab; u16 v3; u16 v4; u16 v5; u16 v6; u16 v7; u16 v8; u16 v9; u16 v10; u16 v11; u16 v12; if (strstr(capab, "[LDPC]")) conf->ht_capab |= 1u; if (strstr(capab, "[HT40-]")) { conf->ht_capab |= 2u; conf->se...
static int hostapd_config_ht_capab(struct hostapd_config *conf, const char *capab) { if (os_strstr(capab, "[LDPC]")) conf->ht_capab |= HT_CAP_INFO_LDPC_CODING_CAP; if (os_strstr(capab, "[HT40-]")) { conf->ht_capab |= HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET; conf->secondary_...
hostapd_config_ht_capab
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_config_parse_acs_chan_bias(hostapd_config *conf, char *pos) { acs_bias *v2; acs_bias *v3; char *posb; char *posc; unsigned int num; char *end; acs_bias *bias; acs_bias *tmp; unsigned long v12; v12 = __readfsqword(0x28u); bias = 0; for (num = 0;; ++num) { if (!*pos) { free(...
static int hostapd_config_parse_acs_chan_bias(struct hostapd_config *conf, char *pos) { struct acs_bias *bias = NULL, *tmp; unsigned int num = 0; char *end; while (*pos) { tmp = os_realloc_array(bias, num + 1, sizeof(*bias)); if (!tmp) goto fail; ...
hostapd_config_parse_acs_chan_bias
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_config_parse_cipher(int line, const char *value) { int val; val = wpa_parse_cipher(value); if (val >= 0) { if (val) { return val; } else { wpa_printf(5, "Line %d: no cipher values configured.", line); return -1; } } else { wpa_printf(5, "Line %d: invalid cipher '%s...
static int hostapd_config_parse_cipher(int line, const char *value) { int val = wpa_parse_cipher(value); if (val < 0) { wpa_printf(MSG_ERROR, "Line %d: invalid cipher '%s'.", line, value); return -1; } if (val == 0) { wpa_printf(MSG_ERROR, "Line %d: no cipher values configured.", line); return -...
hostapd_config_parse_cipher
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_config_parse_key_mgmt(int line, const char *value) { int v3; int v4; int v5; int v6; int v7; int val; _BOOL4 last; char *start; char *end; char *buf; val = 0; buf = strdup(value); if (!buf) return -1; for (start = buf; *start; start = end + 1) { while (*start == 32 || *s...
static int hostapd_config_parse_key_mgmt(int line, const char *value) { int val = 0, last; char *start, *end, *buf; buf = os_strdup(value); if (buf == NULL) return -1; start = buf; while (*start != '\0') { while (*start == ' ' || *start == '\t') start++; if (*start == '\0') break; ...
hostapd_config_parse_key_mgmt
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
hostapd_config *hostapd_config_read(const char *fname) { int line; int errors; hostapd_config *conf; char *pos; char *posa; size_t i; FILE *f; hostapd_bss_config *bss; char buf[4104]; unsigned long v11; v11 = __readfsqword(0x28u); line = 0; errors = 0; f = fopen(fname, "r"); if (f) { ...
struct hostapd_config *hostapd_config_read(const char *fname) { struct hostapd_config *conf; FILE *f; char buf[4096], *pos; int line = 0; int errors = 0; size_t i; f = fopen(fname, "r"); if (f == NULL) { wpa_printf(MSG_ERROR, "Could not open configuration file '%s' " "...
hostapd_config_read
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_config_read_eap_user(const char *fname, hostapd_bss_config *conf) { u8 *v3; char *v4; eap_type type; u8 *v6; int line; int ret; int num_methods; char *pos; char *start; char *pos2; hostapd_eap_user *user; hostapd_eap_user *tail; hostapd_eap_user *new_user; hostapd_radius_attr *a;...
static int hostapd_config_read_eap_user(const char *fname, struct hostapd_bss_config *conf) { FILE *f; char buf[512], *pos, *start, *pos2; int line = 0, ret = 0, num_methods; struct hostapd_eap_user *user = NULL, *tail = NULL, *new_user = NULL; if (os_strncmp(fname, "s...
hostapd_config_read_eap_user
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_config_read_int10(const char *value) { int d; int i; char *pos; char *posa; i = atoi(value); pos = strchr(value, 46); d = 0; if (pos) { posa = pos + 1; if (*posa > 47 && *posa <= 57) d = *posa - 48; } return 10 * i + d; }
static int hostapd_config_read_int10(const char *value) { int i, d; char *pos; i = atoi(value); pos = os_strchr(value, '.'); d = 0; if (pos) { pos++; if (*pos >= '0' && *pos <= '9') d = *pos - '0'; } return i * 10 + d; }
hostapd_config_read_int10
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_config_read_maclist(const char *fname, mac_acl_entry **acl, int *num) { int line; int vlan_id; int rem; char *pos; const char *posa; char *posb; FILE *f; u8 addr[6]; char buf[136]; unsigned long v14; v14 = __readfsqword(0x28u); line = 0; f = fopen(f...
static int hostapd_config_read_maclist(const char *fname, struct mac_acl_entry **acl, int *num) { FILE *f; char buf[128], *pos; int line = 0; u8 addr[ETH_ALEN]; int vlan_id; f = fopen(fname, "r"); if (!f) { wpa_printf(MSG_ERROR, "MAC list file '%s' not found.", ...
hostapd_config_read_maclist
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_config_read_radius_addr(hostapd_radius_server **server, int *num_server, const char *val, int def_port, hostapd_radius_server **curr_serv) { int v6; int ret; hostapd_radius_server *nserv; host...
static int hostapd_config_read_radius_addr(struct hostapd_radius_server **server, int *num_server, const char *val, int def_port, struct hostapd_radius_server **curr_serv) { struct hostapd_radius_server *nserv; int ret; static int server_index = 1; ...
hostapd_config_read_radius_addr
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_config_read_vlan_file(hostapd_bss_config *bss, const char *fname) { char *v3; int line; int vlan_id; char *pos; char *pos2; char *pos3; FILE *f; hostapd_vlan *vlan; char buf[136]; unsigned long v12; v12 = __readfsqword(0x28u); line = 0; f = fopen(fname, "r"); if (f) { while ...
static int hostapd_config_read_vlan_file(struct hostapd_bss_config *bss, const char *fname) { FILE *f; char buf[128], *pos, *pos2, *pos3; int line = 0, vlan_id; struct hostapd_vlan *vlan; f = fopen(fname, "r"); if (!f) { wpa_printf(MSG_ERROR, "VLAN file '%s' not...
hostapd_config_read_vlan_file
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_config_read_wpa_psk(const char *fname, hostapd_ssid *ssid) { u8 *v3; int line; int ret; int ok; int vlan_id; int wps; int len; char *context; char *context2; char *pos; const char *keyid; char *token; char *value; FILE *f; char *name; hostapd_wpa_psk *psk; u8 addr[6]; cha...
static int hostapd_config_read_wpa_psk(const char *fname, struct hostapd_ssid *ssid) { FILE *f; char buf[128], *pos; const char *keyid; char *context; char *context2; char *token; char *name; char *value; int line = 0, ret = 0, len, ok; u8 addr[ETH_ALEN]; str...
hostapd_config_read_wpa_psk
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_config_tx_queue(hostapd_tx_queue_params *tx_queue, const char *name, const char *val) { int num; const char *pos; const char *posa; hostapd_tx_queue_params *queue; pos = name + 9; if (strncmp(name + 9, "data", 4u) || name[13] <= 47 || name[13] > 57 || name[14] ...
int hostapd_config_tx_queue(struct hostapd_tx_queue_params tx_queue[], const char *name, const char *val) { int num; const char *pos; struct hostapd_tx_queue_params *queue; pos = name + 9; if (os_strncmp(pos, "data", 4) == 0 && pos[4] >= '0' && pos[4] <= '9' && pos[5] == '_'...
hostapd_config_tx_queue
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_config_vht_capab(hostapd_config *conf, const char *capab) { u32 vht_capab; u32 v3; u32 v4; u32 v5; u32 v6; u32 v7; u32 v8; u32 v9; u32 v10; u32 v11; if (strstr(capab, "[MAX-MPDU-7991]")) conf->vht_capab |= 1u; if (strstr(capab, "[MAX-MPDU-11454]")) conf->vht_capab |= 2u; i...
static int hostapd_config_vht_capab(struct hostapd_config *conf, const char *capab) { if (os_strstr(capab, "[MAX-MPDU-7991]")) conf->vht_capab |= VHT_CAP_MAX_MPDU_LENGTH_7991; if (os_strstr(capab, "[MAX-MPDU-11454]")) conf->vht_capab |= VHT_CAP_MAX_MPDU_LENGTH_11454; if...
hostapd_config_vht_capab
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_config_wmm_ac(hostapd_wmm_ac_params *wmm_ac_params, const char *name, const char *val) { int num; int v; unsigned int va; unsigned int vb; unsigned int vc; unsigned int vd; const char *pos; const char *posa; hostapd_wmm_ac_params *ac; pos = name + 7; if (!str...
int hostapd_config_wmm_ac(struct hostapd_wmm_ac_params wmm_ac_params[], const char *name, const char *val) { int num, v; const char *pos; struct hostapd_wmm_ac_params *ac; pos = name + 7; if (os_strncmp(pos, "be_", 3) == 0) { num = 0; pos += 3; } else if (os_strncmp(pos, "...
hostapd_config_wmm_ac
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_copy_psk_list(hostapd_sta_wpa_psk_short **psk, hostapd_sta_wpa_psk_short *src) { if (psk) { if (src) ++src->ref; *psk = src; } }
void hostapd_copy_psk_list(struct hostapd_sta_wpa_psk_short **psk, struct hostapd_sta_wpa_psk_short *src) { if (!psk) return; if (src) src->ref++; *psk = src; }
hostapd_copy_psk_list
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_csa_in_progress(hostapd_iface *iface) { unsigned int i; for (i = 0; i < iface->num_bss; ++i) { if (iface->bss[i]->csa_in_progress) return 1; } return 0; }
int hostapd_csa_in_progress(struct hostapd_iface *iface) { unsigned int i; for (i = 0; i < iface->num_bss; i++) if (iface->bss[i]->csa_in_progress) return 1; return 0; }
hostapd_csa_in_progress
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_ctrl_check_event_enabled(wpa_ctrl_dst *dst, const char *buf) { return !str_starts(buf, "RX-PROBE-REQUEST ") || (dst->events & 1) != 0; }
static int hostapd_ctrl_check_event_enabled(struct wpa_ctrl_dst *dst, const char *buf) { if (str_starts(buf, RX_PROBE_REQUEST)) return !!(dst->events & WPA_EVENT_RX_PROBE_REQUEST); return 1; }
hostapd_ctrl_check_event_enabled
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_ctrl_check_freq_params(hostapd_freq_params *params) { int bandwidth; int v3; int v4; int sec_channel_offset; bandwidth = params->bandwidth; if (bandwidth == 160) { if (!params->center_freq1 || params->center_freq2 || !params->sec_channel_offset) return -1; sec_channel_offs...
static int hostapd_ctrl_check_freq_params(struct hostapd_freq_params *params) { switch (params->bandwidth) { case 0: case 20: if (params->center_freq1 && params->center_freq1 != params->freq) return -1; if (params->center_freq2 || params->sec_channel_offset) return -1; break; case 40: ...
hostapd_ctrl_check_freq_params
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_ctrl_driver_flags(hostapd_iface *iface, char *buf, size_t buflen) { const char *v4; int i; int ret; int reta; char *pos; char *end; ret = snprintf(buf, buflen, "%016llX:\n", iface->drv_flags); if (os_snprintf_error_9(buflen, ret)) return -1; pos = &buf[ret]; end = &buf[buflen]; fo...
static int hostapd_ctrl_driver_flags(struct hostapd_iface *iface, char *buf, size_t buflen) { int ret, i; char *pos, *end; ret = os_snprintf(buf, buflen, "%016llX:\n", (long long unsigned)iface->drv_flags); if (os_snprintf_error(buflen, ret)) return ...
hostapd_ctrl_driver_flags
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_ctrl_driver_flags2(hostapd_iface *iface, char *buf, size_t buflen) { const char *v4; int i; int ret; int reta; char *pos; char *end; ret = snprintf(buf, buflen, "%016llX:\n", iface->drv_flags2); if (os_snprintf_error_9(buflen, ret)) return -1; pos = &buf[ret]; end = &buf[buflen]; ...
static int hostapd_ctrl_driver_flags2(struct hostapd_iface *iface, char *buf, size_t buflen) { int ret, i; char *pos, *end; ret = os_snprintf(buf, buflen, "%016llX:\n", (long long unsigned)iface->drv_flags2); if (os_snprintf_error(buflen, ret)) retu...
hostapd_ctrl_driver_flags2
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_ctrl_iface_acl_add_mac(mac_acl_entry **acl, int *num, const char *cmd) { int ret; int vlanid; char *pos; vlan_description vlan_id; u8 addr[6]; unsigned long v10; v10 = __readfsqword(0x28u); ret = 0; vlanid = 0; if (hwaddr_aton(cmd, addr)) return -1...
static int hostapd_ctrl_iface_acl_add_mac(struct mac_acl_entry **acl, int *num, const char *cmd) { u8 addr[ETH_ALEN]; struct vlan_description vlan_id; int ret = 0, vlanid = 0; const char *pos; if (hwaddr_aton(cmd, addr)) return -1; pos = os_strstr(cmd, "VLAN_I...
hostapd_ctrl_iface_acl_add_mac
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
void hostapd_ctrl_iface_acl_clear_list(mac_acl_entry **acl, int *num) { while (*num) hostapd_remove_acl_mac(acl, num, (*acl)->addr); }
static void hostapd_ctrl_iface_acl_clear_list(struct mac_acl_entry **acl, int *num) { while (*num) hostapd_remove_acl_mac(acl, num, (*acl)[0].addr); }
hostapd_ctrl_iface_acl_clear_list
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_ctrl_iface_acl_del_mac(mac_acl_entry **acl, int *num, const char *txtaddr) { vlan_description vlan_id; u8 addr[6]; unsigned long v6; v6 = __readfsqword(0x28u); if (!*num) return 0; if (hwaddr_aton(txtaddr, addr)) return -1; if (hostapd_maclist_found(...
static int hostapd_ctrl_iface_acl_del_mac(struct mac_acl_entry **acl, int *num, const char *txtaddr) { u8 addr[ETH_ALEN]; struct vlan_description vlan_id; if (!(*num)) return 0; if (hwaddr_aton(txtaddr, addr)) return -1; if (hostapd_maclist_found(*acl, *num...
hostapd_ctrl_iface_acl_del_mac
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_ctrl_iface_acl_show_mac(mac_acl_entry *acl, int num, char *buf, size_t buflen) { int i; int len; int ret; i = 0; len = 0; if (!acl) return 0; while (i < num) { ret = snprintf(&buf[len], buflen - len, "%02x:%02x:%02x:%02x:%02x:%02x...
static int hostapd_ctrl_iface_acl_show_mac(struct mac_acl_entry *acl, int num, char *buf, size_t buflen) { int i = 0, len = 0, ret = 0; if (!acl) return 0; while (i < num) { ret = os_snprintf(buf + len, buflen - len, MACSTR " VLAN_ID=%d\n", ...
hostapd_ctrl_iface_acl_show_mac
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0
int hostapd_ctrl_iface_add(hapd_interfaces *interfaces, char *buf) { if (hostapd_add_iface(interfaces, buf) >= 0) return 0; wpa_printf(5, "Adding interface %s failed", buf); return -1; }
static int hostapd_ctrl_iface_add(struct hapd_interfaces *interfaces, char *buf) { if (hostapd_add_iface(interfaces, buf) < 0) { wpa_printf(MSG_ERROR, "Adding interface %s failed", buf); return -1; } return 0; }
hostapd_ctrl_iface_add
hostapd-2.10
net-wireless
O0/net-wireless/hostapd-2.10/hostapd
ida
O0