Home
last modified time | relevance | path

Searched refs:iface (Results 1 – 25 of 258) sorted by relevance

1234567891011

/freebsd-11-stable/contrib/wpa/src/ap/
HDhw_features.c75 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()
95 iface->hw_flags = flags; in hostapd_get_hw_features()
96 iface->dfs_domain = dfs_domain; in hostapd_get_hw_features()
98 hostapd_free_hw_features(iface->hw_features, iface->num_hw_features); in hostapd_get_hw_features()
99 iface->hw_features = modes; in hostapd_get_hw_features()
100 iface->num_hw_features = num_modes; in hostapd_get_hw_features()
105 (iface->drv_flags & WPA_DRIVER_FLAGS_RADAR); in hostapd_get_hw_features()
123 !(iface->drv_flags & in hostapd_get_hw_features()
148 int hostapd_prepare_rates(struct hostapd_iface *iface, in hostapd_prepare_rates() argument
[all …]
HDdfs.c22 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 || iface->conf->ieee80211ax) { in dfs_get_used_n_chans()
32 switch (hostapd_get_oper_chwidth(iface->conf)) { in dfs_get_used_n_chans()
177 static int is_in_chanlist(struct hostapd_iface *iface, in is_in_chanlist() argument
180 if (!iface->conf->acs_ch_list.num) in is_in_chanlist()
183 return freq_range_list_includes(&iface->conf->acs_ch_list, chan->chan); in is_in_chanlist()
194 static int dfs_find_channel(struct hostapd_iface *iface, in dfs_find_channel() argument
202 mode = iface->current_mode; in dfs_find_channel()
203 n_chans = dfs_get_used_n_chans(iface, &n_chans1); in dfs_find_channel()
[all …]
HDap_list.c31 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 …]
HDacs.c245 static int acs_request_scan(struct hostapd_iface *iface);
264 void acs_cleanup(struct hostapd_iface *iface) in acs_cleanup() argument
269 for (i = 0; i < iface->current_mode->num_channels; i++) { in acs_cleanup()
270 chan = &iface->current_mode->channels[i]; in acs_cleanup()
280 iface->chans_surveyed = 0; in acs_cleanup()
281 iface->acs_num_completed_scans = 0; in acs_cleanup()
285 static void acs_fail(struct hostapd_iface *iface) in acs_fail() argument
288 acs_cleanup(iface); in acs_fail()
289 hostapd_disable_iface(iface); in acs_fail()
327 acs_survey_chan_interference_factor(struct hostapd_iface *iface, in acs_survey_chan_interference_factor() argument
[all …]
HDhostapd.c61 static int hostapd_setup_encryption(char *iface, struct hostapd_data *hapd);
63 static int setup_interface2(struct hostapd_iface *iface);
70 int (*cb)(struct hostapd_iface *iface, in hostapd_for_each_interface() argument
77 ret = cb(interfaces->iface[i], ctx); in hostapd_for_each_interface()
92 hostapd_setup_encryption(hapd->conf->iface, hapd); in hostapd_reconfig_encryption()
125 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 1); in hostapd_reload_bss()
127 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 0); in hostapd_reload_bss()
145 hostapd_setup_encryption(hapd->conf->iface, hapd); in hostapd_reload_bss()
158 wpa_printf(MSG_DEBUG, "Reconfigured interface %s", hapd->conf->iface); in hostapd_reload_bss()
162 static void hostapd_clear_old(struct hostapd_iface *iface) in hostapd_clear_old() argument
[all …]
HDieee802_11_ht.c29 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()
145 int hostapd_ht_operation_update(struct hostapd_iface *iface) in hostapd_ht_operation_update() argument
150 if (!iface->conf->ieee80211n || iface->conf->ht_op_mode_fixed) in hostapd_ht_operation_update()
154 __func__, iface->ht_op_mode); in hostapd_ht_operation_update()
156 if (!(iface->ht_op_mode & HT_OPER_OP_MODE_NON_GF_HT_STAS_PRESENT) in hostapd_ht_operation_update()
157 && iface->num_sta_ht_no_gf) { in hostapd_ht_operation_update()
158 iface->ht_op_mode |= HT_OPER_OP_MODE_NON_GF_HT_STAS_PRESENT; in hostapd_ht_operation_update()
[all …]
HDeth_p_oui.c33 struct eth_p_oui_iface *iface; member
53 struct eth_p_oui_iface *iface = ctx; in eth_p_rx() local
73 dl_list_for_each(receiver, &iface->receiver, in eth_p_rx()
91 struct eth_p_oui_iface *iface; in eth_p_oui_register() local
104 interfaces = hapd->iface->interfaces; in eth_p_oui_register()
106 dl_list_for_each(iface, &interfaces->eth_p_oui, struct eth_p_oui_iface, in eth_p_oui_register()
108 if (os_strcmp(iface->ifname, ifname) != 0) in eth_p_oui_register()
115 iface = os_zalloc(sizeof(*iface)); in eth_p_oui_register()
116 if (!iface) in eth_p_oui_register()
119 os_strlcpy(iface->ifname, ifname, sizeof(iface->ifname)); in eth_p_oui_register()
[all …]
HDbeacon.c79 *eid++ = hapd->iface->channel_utilization; in hostapd_eid_bss_load()
91 if (hapd->iface->current_mode == NULL || in ieee802_11_erp_info()
92 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G) in ieee802_11_erp_info()
95 if (hapd->iface->olbc) in ieee802_11_erp_info()
97 if (hapd->iface->num_sta_non_erp > 0) { in ieee802_11_erp_info()
101 if (hapd->iface->num_sta_no_short_preamble > 0 || in ieee802_11_erp_info()
120 if (hapd->iface->current_mode == NULL || in hostapd_eid_erp_info()
121 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G) in hostapd_eid_erp_info()
148 if (hapd->iface->current_mode == NULL || in hostapd_eid_pwr_constraint()
149 hapd->iface->current_mode->mode != HOSTAPD_MODE_IEEE80211A) in hostapd_eid_pwr_constraint()
[all …]
HDhw_features.h17 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 …]
HDairtime_policy.c36 static int get_airtime_policy_update_timeout(struct hostapd_iface *iface, in get_airtime_policy_update_timeout() argument
40 unsigned int update_int = iface->conf->airtime_update_interval; in get_airtime_policy_update_timeout()
131 struct hostapd_iface *iface = eloop_data; in update_airtime_weights() local
138 Boolean apply_limit = iface->conf->airtime_mode == AIRTIME_MODE_DYNAMIC; in update_airtime_weights()
142 for (i = 0; i < iface->num_bss; i++) { in update_airtime_weights()
143 bss = iface->bss[i]; in update_airtime_weights()
161 for (i = 0; i < iface->num_bss; i++) { in update_airtime_weights()
162 bss = iface->bss[i]; in update_airtime_weights()
188 for (i = 0; i < iface->num_bss; i++) { in update_airtime_weights()
189 bss = iface->bss[i]; in update_airtime_weights()
[all …]
HDieee802_11_he.c51 struct hostapd_hw_modes *mode = hapd->iface->current_mode; in hostapd_eid_he_capab()
63 switch (hapd->iface->conf->he_oper_chwidth) { in hostapd_eid_he_capab()
99 if (hapd->iface->conf->he_phy_capab.he_su_beamformer) in hostapd_eid_he_capab()
106 if (hapd->iface->conf->he_phy_capab.he_su_beamformee) in hostapd_eid_he_capab()
113 if (hapd->iface->conf->he_phy_capab.he_mu_beamformer) in hostapd_eid_he_capab()
136 if (!hapd->iface->current_mode) in hostapd_eid_he_operation()
146 if (hapd->iface->conf->he_op.he_default_pe_duration) in hostapd_eid_he_operation()
147 params |= (hapd->iface->conf->he_op.he_default_pe_duration << in hostapd_eid_he_operation()
150 if (hapd->iface->conf->he_op.he_twt_required) in hostapd_eid_he_operation()
153 if (hapd->iface->conf->he_op.he_rts_threshold) in hostapd_eid_he_operation()
[all …]
HDbss_load.c47 struct hostapd_iface *iface = hapd->iface; in update_channel_utilization() local
52 err = hostapd_drv_get_survey(hapd, hapd->iface->freq); in update_channel_utilization()
64 iface->chan_util_samples_sum += iface->channel_utilization; in update_channel_utilization()
65 iface->chan_util_num_sample_periods += in update_channel_utilization()
67 if (iface->chan_util_num_sample_periods >= in update_channel_utilization()
69 iface->chan_util_average = in update_channel_utilization()
70 iface->chan_util_samples_sum / in update_channel_utilization()
71 (iface->chan_util_num_sample_periods / in update_channel_utilization()
73 iface->chan_util_samples_sum = 0; in update_channel_utilization()
74 iface->chan_util_num_sample_periods = 0; in update_channel_utilization()
/freebsd-11-stable/contrib/wpa/wpa_supplicant/
HDwpa_priv.c56 static void wpa_priv_cmd_register(struct wpa_priv_interface *iface, in wpa_priv_cmd_register() argument
61 if (iface->drv_priv) { in wpa_priv_cmd_register()
63 if (iface->driver->deinit) in wpa_priv_cmd_register()
64 iface->driver->deinit(iface->drv_priv); in wpa_priv_cmd_register()
65 iface->drv_priv = NULL; in wpa_priv_cmd_register()
66 if (iface->drv_global_priv) { in wpa_priv_cmd_register()
67 iface->driver->global_deinit(iface->drv_global_priv); in wpa_priv_cmd_register()
68 iface->drv_global_priv = NULL; in wpa_priv_cmd_register()
70 iface->wpas_registered = 0; in wpa_priv_cmd_register()
74 if (iface->l2[i]) { in wpa_priv_cmd_register()
[all …]
HDmain.c184 struct wpa_interface *ifaces, *iface; in main() local
195 iface = ifaces = os_zalloc(sizeof(struct wpa_interface)); in main()
214 iface->bridge_ifname = optarg; in main()
220 iface->confname = optarg; in main()
223 iface->ctrl_interface = optarg; in main()
226 iface->driver = optarg; in main()
257 iface->ifname = optarg; in main()
260 iface->confanother = optarg; in main()
281 iface->driver_param = optarg; in main()
318 iface = os_realloc_array(params.match_ifaces, in main()
[all …]
/freebsd-11-stable/usr.sbin/ppp/
HDiface.c90 struct iface *
100 struct iface *iface; in iface_Create() local
138 iface = NULL; in iface_Create()
141 while (ptr < end && iface == NULL) { in iface_Create()
147 iface = (struct iface *)malloc(sizeof *iface); in iface_Create()
148 if (iface == NULL) { in iface_Create()
152 iface->name = strdup(name); in iface_Create()
153 iface->descr = NULL; in iface_Create()
154 iface->index = ifm->ifm_index; in iface_Create()
155 iface->flags = ifm->ifm_flags; in iface_Create()
[all …]
/freebsd-11-stable/contrib/wpa/wpa_supplicant/dbus/
HDdbus_new_introspect.c30 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(15000); 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 …]
HDdbus_new.c135 struct wpas_dbus_priv *iface; in wpas_dbus_signal_interface() local
139 iface = wpa_s->global->dbus; in wpas_dbus_signal_interface()
142 if (iface == NULL || !wpa_s->dbus_new_path) in wpas_dbus_signal_interface()
155 iface, wpa_s->dbus_new_path, in wpas_dbus_signal_interface()
159 dbus_connection_send(iface->con, msg, NULL); in wpas_dbus_signal_interface()
198 struct wpas_dbus_priv *iface; in wpas_dbus_signal_scan_done() local
202 iface = wpa_s->global->dbus; in wpas_dbus_signal_scan_done()
205 if (iface == NULL || !wpa_s->dbus_new_path) in wpas_dbus_signal_scan_done()
217 dbus_connection_send(iface->con, msg, NULL); in wpas_dbus_signal_scan_done()
237 struct wpas_dbus_priv *iface; in wpas_dbus_signal_bss() local
[all …]
/freebsd-11-stable/contrib/wpa/src/fst/
HDfst.c22 static void fst_ctrl_iface_notify_peer_state_change(struct fst_iface *iface, in fst_ctrl_iface_notify_peer_state_change() argument
29 os_strlcpy(extra.peer_state.ifname, fst_iface_get_name(iface), in fst_ctrl_iface_notify_peer_state_change()
34 iface, NULL, &extra); in fst_ctrl_iface_notify_peer_state_change()
44 struct fst_iface *iface = NULL; in fst_attach() local
68 iface = fst_iface_create(group, ifname, own_addr, iface_obj, cfg); in fst_attach()
69 if (!iface) { in fst_attach()
77 fst_group_attach_iface(group, iface); in fst_attach()
80 foreach_fst_ctrl_call(on_iface_added, iface); in fst_attach()
82 fst_printf_iface(iface, MSG_DEBUG, in fst_attach()
86 return iface; in fst_attach()
[all …]
/freebsd-11-stable/contrib/wpa/hostapd/
HDmain.c97 hapd->conf->iface, MAC2STR(addr), in hostapd_logger_cb()
102 hapd->conf->iface, module_str ? " " : "", in hostapd_logger_cb()
155 static int hostapd_driver_init(struct hostapd_iface *iface) in hostapd_driver_init() argument
159 struct hostapd_data *hapd = iface->bss[0]; in hostapd_driver_init()
181 wpa_drivers[i]->global_init(iface->interfaces); in hostapd_driver_init()
194 params.ifname = hapd->conf->iface; in hostapd_driver_init()
198 params.num_bridge = hapd->iface->num_bss; in hostapd_driver_init()
199 params.bridge = os_calloc(hapd->iface->num_bss, sizeof(char *)); in hostapd_driver_init()
202 for (i = 0; i < hapd->iface->num_bss; i++) { in hostapd_driver_init()
203 struct hostapd_data *bss = hapd->iface->bss[i]; in hostapd_driver_init()
[all …]
/freebsd-11-stable/share/examples/jails/
HDjng190 eval __mac_num=\${_${iface}_num:--1}
192 eval _${iface}_num=\$__mac_num
285 local iface parent eiface eiface_devid
287 for iface in $*; do
291 case "$iface" in
292 =*) iface=${iface#=} clone_mac=1 ;;
293 !*) iface=${iface#!} no_derive=1 ;;
304 ifconfig $iface up || return
307 ngctl msg $iface: setpromisc 1 || return
308 ngctl msg $iface: setautosrc 0 || return
[all …]
/freebsd-11-stable/sys/mips/nlm/dev/net/
HDsgmii.c76 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 …]
/freebsd-11-stable/contrib/apr/network_io/unix/
HDmulticast.c30 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 …]
/freebsd-11-stable/sys/netgraph/netflow/
HDng_netflow.c285 iface_p iface; in ng_netflow_newhook() local
302 iface = &priv->ifaces[ifnum]; in ng_netflow_newhook()
305 NG_HOOK_SET_PRIVATE(hook, iface); in ng_netflow_newhook()
306 iface->hook = hook; in ng_netflow_newhook()
313 iface->info.ifinfo_dlt = DLT_EN10MB; in ng_netflow_newhook()
317 iface_p iface; in ng_netflow_newhook() local
334 iface = &priv->ifaces[ifnum]; in ng_netflow_newhook()
337 NG_HOOK_SET_PRIVATE(hook, iface); in ng_netflow_newhook()
338 iface->out = hook; in ng_netflow_newhook()
423 struct ng_netflow_iface *iface; in ng_netflow_rcvmsg() local
[all …]
/freebsd-11-stable/usr.sbin/ancontrol/
HDancontrol.c135 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 …]
/freebsd-11-stable/contrib/ntp/ntpd/
HDntp_io.c575 print_interface(const endpt *iface, const char *pfx, const char *sfx) in print_interface() argument
579 iface->ifnum, in print_interface()
580 (long long)iface->fd, in print_interface()
581 (long long)iface->bfd, in print_interface()
582 iface->name, in print_interface()
583 iface->flags, in print_interface()
584 iface->ifindex, in print_interface()
585 stoa(&iface->sin)); in print_interface()
586 if (AF_INET == iface->family) { in print_interface()
587 if (iface->flags & INT_BROADCAST) in print_interface()
[all …]

1234567891011