| /NextBSD/contrib/wpa/src/ap/ |
| HD | hw_features.c | 75 int hostapd_get_hw_features(struct hostapd_iface *iface) in hostapd_get_hw_features() argument 77 struct hostapd_data *hapd = iface->bss[0]; in hostapd_get_hw_features() 93 iface->hw_flags = flags; in hostapd_get_hw_features() 95 hostapd_free_hw_features(iface->hw_features, iface->num_hw_features); in hostapd_get_hw_features() 96 iface->hw_features = modes; in hostapd_get_hw_features() 97 iface->num_hw_features = num_modes; in hostapd_get_hw_features() 102 (iface->drv_flags & WPA_DRIVER_FLAGS_RADAR); in hostapd_get_hw_features() 120 !(iface->drv_flags & in hostapd_get_hw_features() 145 int hostapd_prepare_rates(struct hostapd_iface *iface, in hostapd_prepare_rates() argument 154 if (iface->conf->basic_rates) in hostapd_prepare_rates() [all …]
|
| HD | dfs.c | 22 static int dfs_get_used_n_chans(struct hostapd_iface *iface, int *seg1) in dfs_get_used_n_chans() argument 28 if (iface->conf->ieee80211n && iface->conf->secondary_channel) in dfs_get_used_n_chans() 31 if (iface->conf->ieee80211ac) { in dfs_get_used_n_chans() 32 switch (iface->conf->vht_oper_chwidth) { in dfs_get_used_n_chans() 165 static int is_in_chanlist(struct hostapd_iface *iface, in is_in_chanlist() argument 168 if (!iface->conf->acs_ch_list.num) in is_in_chanlist() 171 return freq_range_list_includes(&iface->conf->acs_ch_list, chan->chan); in is_in_chanlist() 182 static int dfs_find_channel(struct hostapd_iface *iface, in dfs_find_channel() argument 190 mode = iface->current_mode; in dfs_find_channel() 191 n_chans = dfs_get_used_n_chans(iface, &n_chans1); in dfs_find_channel() [all …]
|
| HD | ap_list.c | 31 static int ap_list_beacon_olbc(struct hostapd_iface *iface, struct ap_info *ap) in ap_list_beacon_olbc() argument 35 if (iface->current_mode == NULL || in ap_list_beacon_olbc() 36 iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G || in ap_list_beacon_olbc() 37 iface->conf->channel != ap->channel) in ap_list_beacon_olbc() 53 static struct ap_info * ap_get_ap(struct hostapd_iface *iface, const u8 *ap) in ap_get_ap() argument 57 s = iface->ap_hash[STA_HASH(ap)]; in ap_get_ap() 64 static void ap_ap_list_add(struct hostapd_iface *iface, struct ap_info *ap) in ap_ap_list_add() argument 66 if (iface->ap_list) { in ap_ap_list_add() 67 ap->prev = iface->ap_list->prev; in ap_ap_list_add() 68 iface->ap_list->prev = ap; in ap_ap_list_add() [all …]
|
| HD | acs.c | 244 static int acs_request_scan(struct hostapd_iface *iface); 263 static void acs_cleanup(struct hostapd_iface *iface) in acs_cleanup() argument 268 for (i = 0; i < iface->current_mode->num_channels; i++) { in acs_cleanup() 269 chan = &iface->current_mode->channels[i]; in acs_cleanup() 279 iface->chans_surveyed = 0; in acs_cleanup() 280 iface->acs_num_completed_scans = 0; in acs_cleanup() 284 static void acs_fail(struct hostapd_iface *iface) in acs_fail() argument 287 acs_cleanup(iface); in acs_fail() 288 hostapd_disable_iface(iface); in acs_fail() 326 acs_survey_chan_interference_factor(struct hostapd_iface *iface, in acs_survey_chan_interference_factor() argument [all …]
|
| HD | ieee802_11_ht.c | 29 if (!hapd->iconf->ieee80211n || !hapd->iface->current_mode || in hostapd_eid_ht_capabilities() 39 cap->a_mpdu_params = hapd->iface->current_mode->a_mpdu_params; in hostapd_eid_ht_capabilities() 40 os_memcpy(cap->supported_mcs_set, hapd->iface->current_mode->mcs_set, in hostapd_eid_ht_capabilities() 97 oper->operation_mode = host_to_le16(hapd->iface->ht_op_mode); in hostapd_eid_ht_operation() 122 int hostapd_ht_operation_update(struct hostapd_iface *iface) in hostapd_ht_operation_update() argument 127 if (!iface->conf->ieee80211n || iface->conf->ht_op_mode_fixed) in hostapd_ht_operation_update() 131 __func__, iface->ht_op_mode); in hostapd_ht_operation_update() 133 if (!(iface->ht_op_mode & HT_OPER_OP_MODE_NON_GF_HT_STAS_PRESENT) in hostapd_ht_operation_update() 134 && iface->num_sta_ht_no_gf) { in hostapd_ht_operation_update() 135 iface->ht_op_mode |= HT_OPER_OP_MODE_NON_GF_HT_STAS_PRESENT; in hostapd_ht_operation_update() [all …]
|
| HD | hostapd.c | 48 static int hostapd_setup_encryption(char *iface, struct hostapd_data *hapd); 50 static int setup_interface2(struct hostapd_iface *iface); 55 int (*cb)(struct hostapd_iface *iface, in hostapd_for_each_interface() argument 62 ret = cb(interfaces->iface[i], ctx); in hostapd_for_each_interface() 94 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 1); in hostapd_reload_bss() 96 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 0); in hostapd_reload_bss() 114 hostapd_setup_encryption(hapd->conf->iface, hapd); in hostapd_reload_bss() 127 wpa_printf(MSG_DEBUG, "Reconfigured interface %s", hapd->conf->iface); in hostapd_reload_bss() 131 static void hostapd_clear_old(struct hostapd_iface *iface) in hostapd_clear_old() argument 139 for (j = 0; j < iface->num_bss; j++) { in hostapd_clear_old() [all …]
|
| HD | beacon.c | 73 *eid++ = hapd->iface->channel_utilization; in hostapd_eid_bss_load() 85 if (hapd->iface->current_mode == NULL || in ieee802_11_erp_info() 86 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G) in ieee802_11_erp_info() 89 if (hapd->iface->olbc) in ieee802_11_erp_info() 91 if (hapd->iface->num_sta_non_erp > 0) { in ieee802_11_erp_info() 95 if (hapd->iface->num_sta_no_short_preamble > 0 || in ieee802_11_erp_info() 114 if (hapd->iface->current_mode == NULL || in hostapd_eid_erp_info() 115 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G) in hostapd_eid_erp_info() 142 if (hapd->iface->current_mode == NULL || in hostapd_eid_pwr_constraint() 143 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211A) in hostapd_eid_pwr_constraint() [all …]
|
| HD | hw_features.h | 17 int hostapd_get_hw_features(struct hostapd_iface *iface); 18 int hostapd_acs_completed(struct hostapd_iface *iface, int err); 19 int hostapd_select_hw_mode(struct hostapd_iface *iface); 23 int hostapd_check_ht_capab(struct hostapd_iface *iface); 24 int hostapd_prepare_rates(struct hostapd_iface *iface, 26 void hostapd_stop_setup_timers(struct hostapd_iface *iface); 34 static inline int hostapd_get_hw_features(struct hostapd_iface *iface) in hostapd_get_hw_features() argument 39 static inline int hostapd_acs_completed(struct hostapd_iface *iface, int err) in hostapd_acs_completed() argument 44 static inline int hostapd_select_hw_mode(struct hostapd_iface *iface) in hostapd_select_hw_mode() argument 59 static inline int hostapd_check_ht_capab(struct hostapd_iface *iface) in hostapd_check_ht_capab() argument [all …]
|
| HD | drv_callbacks.c | 130 (hapd->iface->conf->ht_capab & in hostapd_notif_assoc() 138 ht40_intolerant_add(hapd->iface, sta); in hostapd_notif_assoc() 161 if (hapd->iface->fst) in hostapd_notif_assoc() 458 hapd->iface->freq = freq; in hostapd_event_ch_switch() 486 switch (hapd->iface->current_mode->mode) { in hostapd_event_ch_switch() 517 } else if (hapd->iface->drv_flags & WPA_DRIVER_FLAGS_DFS_OFFLOAD) { in hostapd_event_ch_switch() 553 if (!hapd->iface->current_mode) { in hostapd_acs_channel_selected() 554 for (i = 0; i < hapd->iface->num_hw_features; i++) { in hostapd_acs_channel_selected() 556 &hapd->iface->hw_features[i]; in hostapd_acs_channel_selected() 559 hapd->iface->current_mode = mode; in hostapd_acs_channel_selected() [all …]
|
| HD | utils.c | 48 static int prune_associations(struct hostapd_iface *iface, void *ctx) in prune_associations() argument 55 for (j = 0; j < iface->num_bss; j++) { in prune_associations() 56 ohapd = iface->bss[j]; in prune_associations() 61 if (ohapd->iface->fst && in prune_associations() 62 data->hapd->iface->fst && in prune_associations() 63 fst_are_ifaces_aggregated(ohapd->iface->fst, in prune_associations() 64 data->hapd->iface->fst)) in prune_associations() 72 ohapd->conf->iface, MAC2STR(osta->addr)); in prune_associations() 92 if (hapd->iface->interfaces && in hostapd_prune_associations() 93 hapd->iface->interfaces->for_each_interface) in hostapd_prune_associations() [all …]
|
| HD | ctrl_iface_ap.c | 415 struct hostapd_iface *iface = hapd->iface; in hostapd_ctrl_iface_status() local 433 hostapd_state_text(iface->state), in hostapd_ctrl_iface_status() 434 iface->phy, in hostapd_ctrl_iface_status() 435 iface->freq, in hostapd_ctrl_iface_status() 436 iface->num_sta_non_erp, in hostapd_ctrl_iface_status() 437 iface->num_sta_no_short_slot_time, in hostapd_ctrl_iface_status() 438 iface->num_sta_no_short_preamble, in hostapd_ctrl_iface_status() 439 iface->olbc, in hostapd_ctrl_iface_status() 440 iface->num_sta_ht_no_gf, in hostapd_ctrl_iface_status() 441 iface->num_sta_no_ht, in hostapd_ctrl_iface_status() [all …]
|
| /NextBSD/contrib/wpa/wpa_supplicant/ |
| HD | wpa_priv.c | 44 static void wpa_priv_cmd_register(struct wpa_priv_interface *iface, in wpa_priv_cmd_register() argument 47 if (iface->drv_priv) { in wpa_priv_cmd_register() 49 if (iface->driver->deinit) in wpa_priv_cmd_register() 50 iface->driver->deinit(iface->drv_priv); in wpa_priv_cmd_register() 51 iface->drv_priv = NULL; in wpa_priv_cmd_register() 52 if (iface->drv_global_priv) { in wpa_priv_cmd_register() 53 iface->driver->global_deinit(iface->drv_global_priv); in wpa_priv_cmd_register() 54 iface->drv_global_priv = NULL; in wpa_priv_cmd_register() 56 iface->wpas_registered = 0; in wpa_priv_cmd_register() 59 if (iface->l2) { in wpa_priv_cmd_register() [all …]
|
| HD | main.c | 159 struct wpa_interface *ifaces, *iface; in main() local 170 iface = ifaces = os_zalloc(sizeof(struct wpa_interface)); in main() 184 iface->bridge_ifname = optarg; in main() 190 iface->confname = optarg; in main() 193 iface->ctrl_interface = optarg; in main() 196 iface->driver = optarg; in main() 227 iface->ifname = optarg; in main() 230 iface->confanother = optarg; in main() 251 iface->driver_param = optarg; in main() 287 iface = os_realloc_array(ifaces, iface_count, in main() [all …]
|
| /NextBSD/usr.sbin/ppp/ |
| HD | iface.c | 88 struct iface * 98 struct iface *iface; in iface_Create() local 136 iface = NULL; in iface_Create() 139 while (ptr < end && iface == NULL) { in iface_Create() 145 iface = (struct iface *)malloc(sizeof *iface); in iface_Create() 146 if (iface == NULL) { in iface_Create() 150 iface->name = strdup(name); in iface_Create() 151 iface->descr = NULL; in iface_Create() 152 iface->index = ifm->ifm_index; in iface_Create() 153 iface->flags = ifm->ifm_flags; in iface_Create() [all …]
|
| /NextBSD/contrib/wpa/wpa_supplicant/dbus/ |
| HD | dbus_new_introspect.c | 30 struct interfaces *iface; in add_interface() local 32 dl_list_for_each(iface, list, struct interfaces, list) { in add_interface() 33 if (os_strcmp(iface->dbus_interface, dbus_interface) == 0) in add_interface() 34 return iface; /* already in the list */ in add_interface() 37 iface = os_zalloc(sizeof(struct interfaces)); in add_interface() 38 if (!iface) in add_interface() 40 iface->dbus_interface = os_strdup(dbus_interface); in add_interface() 41 iface->xml = wpabuf_alloc(6000); in add_interface() 42 if (iface->dbus_interface == NULL || iface->xml == NULL) { in add_interface() 43 os_free(iface->dbus_interface); in add_interface() [all …]
|
| HD | dbus_new.c | 133 struct wpas_dbus_priv *iface; in wpas_dbus_signal_interface() local 137 iface = wpa_s->global->dbus; in wpas_dbus_signal_interface() 140 if (iface == NULL || !wpa_s->dbus_new_path) in wpas_dbus_signal_interface() 153 iface, wpa_s->dbus_new_path, in wpas_dbus_signal_interface() 157 dbus_connection_send(iface->con, msg, NULL); in wpas_dbus_signal_interface() 196 struct wpas_dbus_priv *iface; in wpas_dbus_signal_scan_done() local 200 iface = wpa_s->global->dbus; in wpas_dbus_signal_scan_done() 203 if (iface == NULL || !wpa_s->dbus_new_path) in wpas_dbus_signal_scan_done() 215 dbus_connection_send(iface->con, msg, NULL); in wpas_dbus_signal_scan_done() 235 struct wpas_dbus_priv *iface; in wpas_dbus_signal_bss() local [all …]
|
| /NextBSD/contrib/wpa/src/fst/ |
| HD | fst.c | 21 static void fst_ctrl_iface_notify_peer_state_change(struct fst_iface *iface, in fst_ctrl_iface_notify_peer_state_change() argument 28 os_strlcpy(extra.peer_state.ifname, fst_iface_get_name(iface), in fst_ctrl_iface_notify_peer_state_change() 33 iface, NULL, &extra); in fst_ctrl_iface_notify_peer_state_change() 43 struct fst_iface *iface = NULL; in fst_attach() local 67 iface = fst_iface_create(group, ifname, own_addr, iface_obj, cfg); in fst_attach() 68 if (!iface) { in fst_attach() 76 fst_group_attach_iface(group, iface); in fst_attach() 79 foreach_fst_ctrl_call(on_iface_added, iface); in fst_attach() 81 fst_printf_iface(iface, MSG_DEBUG, in fst_attach() 85 return iface; in fst_attach() [all …]
|
| /NextBSD/contrib/wpa/hostapd/ |
| HD | main.c | 95 hapd->conf->iface, MAC2STR(addr), in hostapd_logger_cb() 100 hapd->conf->iface, module_str ? " " : "", in hostapd_logger_cb() 149 static int hostapd_driver_init(struct hostapd_iface *iface) in hostapd_driver_init() argument 153 struct hostapd_data *hapd = iface->bss[0]; in hostapd_driver_init() 187 params.ifname = hapd->conf->iface; in hostapd_driver_init() 191 params.num_bridge = hapd->iface->num_bss; in hostapd_driver_init() 192 params.bridge = os_calloc(hapd->iface->num_bss, sizeof(char *)); in hostapd_driver_init() 195 for (i = 0; i < hapd->iface->num_bss; i++) { in hostapd_driver_init() 196 struct hostapd_data *bss = hapd->iface->bss[i]; in hostapd_driver_init() 216 iface->drv_flags = capa.flags; in hostapd_driver_init() [all …]
|
| /NextBSD/sys/mips/nlm/dev/net/ |
| HD | sgmii.c | 76 nlm_nae_setup_mac(uint64_t nae_base, int nblock, int iface, int reset, in nlm_nae_setup_mac() argument 82 SGMII_MAC_CONF1(nblock,iface)); in nlm_nae_setup_mac() 84 SGMII_MAC_CONF2(nblock,iface)); in nlm_nae_setup_mac() 86 SGMII_NET_IFACE_CTRL(nblock, iface)); in nlm_nae_setup_mac() 118 SGMII_NET_IFACE_CTRL(nblock, iface), in nlm_nae_setup_mac() 134 nlm_write_nae_reg(nae_base, SGMII_MAC_CONF1(nblock, iface), mac_cfg1); in nlm_nae_setup_mac() 135 nlm_write_nae_reg(nae_base, SGMII_MAC_CONF2(nblock, iface), mac_cfg2); in nlm_nae_setup_mac() 136 nlm_write_nae_reg(nae_base, SGMII_NET_IFACE_CTRL(nblock, iface), in nlm_nae_setup_mac() 141 nlm_nae_setup_rx_mode_sgmii(uint64_t base, int nblock, int iface, int port_type, in nlm_nae_setup_rx_mode_sgmii() argument 157 SGMII_NETIOR_VLANTYPE_FILTER(nblock, iface)); in nlm_nae_setup_rx_mode_sgmii() [all …]
|
| /NextBSD/contrib/apr/network_io/unix/ |
| HD | multicast.c | 30 apr_sockaddr_t *iface) in fill_mip_v4() argument 33 if (iface == NULL) { in fill_mip_v4() 37 mip->imr_interface = iface->sa.sin.sin_addr; in fill_mip_v4() 44 static unsigned int find_if_index(const apr_sockaddr_t *iface) in find_if_index() argument 64 if (memcmp(&iface->sa.sin6.sin6_addr, in find_if_index() 66 sizeof(iface->sa.sin6.sin6_addr)) == 0) { in find_if_index() 80 const apr_sockaddr_t *iface) in fill_mip_v6() argument 85 if (iface == NULL) { in fill_mip_v6() 89 mip->ipv6mr_interface = find_if_index(iface); in fill_mip_v6() 112 apr_sockaddr_t *mcast, apr_sockaddr_t *iface, in do_mcast() argument [all …]
|
| /NextBSD/sys/netgraph/netflow/ |
| HD | ng_netflow.c | 283 iface_p iface; in ng_netflow_newhook() local 300 iface = &priv->ifaces[ifnum]; in ng_netflow_newhook() 303 NG_HOOK_SET_PRIVATE(hook, iface); in ng_netflow_newhook() 304 iface->hook = hook; in ng_netflow_newhook() 311 iface->info.ifinfo_dlt = DLT_EN10MB; in ng_netflow_newhook() 315 iface_p iface; in ng_netflow_newhook() local 332 iface = &priv->ifaces[ifnum]; in ng_netflow_newhook() 335 NG_HOOK_SET_PRIVATE(hook, iface); in ng_netflow_newhook() 336 iface->out = hook; in ng_netflow_newhook() 421 struct ng_netflow_iface *iface; in ng_netflow_rcvmsg() local [all …]
|
| /NextBSD/usr.sbin/ancontrol/ |
| HD | ancontrol.c | 135 an_getval(const char *iface, struct an_req *areq) in an_getval() argument 142 strlcpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name)); in an_getval() 161 an_setval(const char *iface, struct an_req *areq) in an_setval() argument 168 strlcpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name)); in an_setval() 246 an_dumpstatus(const char *iface) in an_dumpstatus() argument 259 rssimap_valid = an_getval(iface, (struct an_req*)&an_rssimap); in an_dumpstatus() 269 an_getval(iface, &areq); in an_dumpstatus() 351 an_dumpcaps(const char *iface) in an_dumpcaps() argument 360 an_getval(iface, &areq); in an_dumpcaps() 436 an_dumpstats(const char *iface) in an_dumpstats() argument [all …]
|
| /NextBSD/contrib/ntp/ntpd/ |
| HD | ntp_io.c | 567 print_interface(const endpt *iface, const char *pfx, const char *sfx) in print_interface() argument 571 iface->ifnum, in print_interface() 572 iface->fd, in print_interface() 573 iface->bfd, in print_interface() 574 iface->name, in print_interface() 575 iface->flags, in print_interface() 576 iface->ifindex, in print_interface() 577 stoa(&iface->sin)); in print_interface() 578 if (AF_INET == iface->family) { in print_interface() 579 if (iface->flags & INT_BROADCAST) in print_interface() [all …]
|
| /NextBSD/contrib/wpa/src/wps/ |
| HD | wps_upnp_web.c | 182 static void format_wps_device_xml(struct upnp_wps_device_interface *iface, in format_wps_device_xml() argument 195 s = iface->wps->friendly_name; in format_wps_device_xml() 199 s = iface->wps->dev.manufacturer; in format_wps_device_xml() 203 if (iface->wps->manufacturer_url) in format_wps_device_xml() 205 iface->wps->manufacturer_url); in format_wps_device_xml() 207 if (iface->wps->model_description) in format_wps_device_xml() 209 iface->wps->model_description); in format_wps_device_xml() 211 s = iface->wps->dev.model_name; in format_wps_device_xml() 215 if (iface->wps->dev.model_number) in format_wps_device_xml() 217 iface->wps->dev.model_number); in format_wps_device_xml() [all …]
|
| /NextBSD/contrib/openresolv/ |
| HD | resolvconf.in | 128 local new=true iface= private=false p= domain= l= islocal= 136 iface="${line#\# resolv.conf from *}" 138 if [ -e "$PRIVATEDIR/$iface" ]; then 145 case "$iface" in 502 *) cmd="$OPT"; iface="$OPTARG";; 506 args="$iface${iface:+ }$*" 530 make_vars "$iface" 536 if [ -z "$iface" ]; then 546 case "$iface" in 551 case "$iface" in [all …]
|