Searched refs:iface (Results 1 - 25 of 237) sorted by relevance

12345678910

/freebsd-11-stable/contrib/wpa/src/ap/
H A Dacs.h15 enum hostapd_chan_status acs_init(struct hostapd_iface *iface);
16 void acs_cleanup(struct hostapd_iface *iface);
20 static inline enum hostapd_chan_status acs_init(struct hostapd_iface *iface) argument
26 static inline void acs_cleanup(struct hostapd_iface *iface) argument
H A Dhw_features.c75 int hostapd_get_hw_features(struct hostapd_iface *iface) argument
77 struct hostapd_data *hapd = iface->bss[0];
95 iface->hw_flags = flags;
96 iface->dfs_domain = dfs_domain;
98 hostapd_free_hw_features(iface->hw_features, iface->num_hw_features);
99 iface->hw_features = modes;
100 iface->num_hw_features = num_modes;
105 (iface->drv_flags & WPA_DRIVER_FLAGS_RADAR);
123 !(iface
148 hostapd_prepare_rates(struct hostapd_iface *iface, struct hostapd_hw_modes *mode) argument
228 ieee80211n_allowed_ht40_channel_pair(struct hostapd_iface *iface) argument
240 ieee80211n_switch_pri_sec(struct hostapd_iface *iface) argument
252 ieee80211n_check_40mhz_5g(struct hostapd_iface *iface, struct wpa_scan_results *scan_res) argument
276 ieee80211n_check_40mhz_2g4(struct hostapd_iface *iface, struct wpa_scan_results *scan_res) argument
289 ieee80211n_check_scan(struct hostapd_iface *iface) argument
343 ieee80211n_scan_channels_2g4(struct hostapd_iface *iface, struct wpa_driver_scan_params *params) argument
388 ieee80211n_scan_channels_5g(struct hostapd_iface *iface, struct wpa_driver_scan_params *params) argument
432 struct hostapd_iface *iface = eloop_data; local
468 hostapd_stop_setup_timers(struct hostapd_iface *iface) argument
474 ieee80211n_check_40mhz(struct hostapd_iface *iface) argument
517 ieee80211n_supported_ht_capab(struct hostapd_iface *iface) argument
627 ieee80211ac_supported_vht_capab(struct hostapd_iface *iface) argument
660 ieee80211ax_supported_he_capab(struct hostapd_iface *iface) argument
669 hostapd_check_ht_capab(struct hostapd_iface *iface) argument
707 hostapd_is_usable_chan(struct hostapd_iface *iface, int channel, int primary) argument
733 hostapd_is_usable_chans(struct hostapd_iface *iface) argument
774 hostapd_check_chans(struct hostapd_iface *iface) argument
799 hostapd_notify_bad_chans(struct hostapd_iface *iface) argument
821 hostapd_acs_completed(struct hostapd_iface *iface, int err) argument
871 hostapd_select_hw_mode(struct hostapd_iface *iface) argument
[all...]
H A Dhw_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) argument
39 static inline int hostapd_acs_completed(struct hostapd_iface *iface, int err) argument
44 static inline int hostapd_select_hw_mode(struct hostapd_iface *iface) argument
59 static inline int hostapd_check_ht_capab(struct hostapd_iface *iface) argument
64 hostapd_prepare_rates(struct hostapd_iface *iface, struct hostapd_hw_modes *mode) argument
70 hostapd_stop_setup_timers(struct hostapd_iface *iface) argument
[all...]
H A Dap_list.c31 static int ap_list_beacon_olbc(struct hostapd_iface *iface, struct ap_info *ap) argument
35 if (iface->current_mode == NULL ||
36 iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G ||
37 iface->conf->channel != ap->channel)
53 static struct ap_info * ap_get_ap(struct hostapd_iface *iface, const u8 *ap) argument
57 s = iface->ap_hash[STA_HASH(ap)];
64 static void ap_ap_list_add(struct hostapd_iface *iface, struct ap_info *ap) argument
66 if (iface->ap_list) {
67 ap->prev = iface->ap_list->prev;
68 iface
76 ap_ap_list_del(struct hostapd_iface *iface, struct ap_info *ap) argument
90 ap_ap_hash_add(struct hostapd_iface *iface, struct ap_info *ap) argument
97 ap_ap_hash_del(struct hostapd_iface *iface, struct ap_info *ap) argument
119 ap_free_ap(struct hostapd_iface *iface, struct ap_info *ap) argument
129 hostapd_free_aps(struct hostapd_iface *iface) argument
145 ap_ap_add(struct hostapd_iface *iface, const u8 *addr) argument
169 ap_list_process_beacon(struct hostapd_iface *iface, const struct ieee80211_mgmt *mgmt, struct ieee802_11_elems *elems, struct hostapd_frame_info *fi) argument
251 ap_list_timer(struct hostapd_iface *iface) argument
303 ap_list_init(struct hostapd_iface *iface) argument
309 ap_list_deinit(struct hostapd_iface *iface) argument
[all...]
H A Dairtime_policy.h26 int airtime_policy_update_init(struct hostapd_iface *iface);
27 void airtime_policy_update_deinit(struct hostapd_iface *iface);
37 static inline int airtime_policy_update_init(struct hostapd_iface *iface) argument
42 static inline void airtime_policy_update_deinit(struct hostapd_iface *iface) argument
H A Dap_list.h35 void ap_list_process_beacon(struct hostapd_iface *iface,
40 int ap_list_init(struct hostapd_iface *iface);
41 void ap_list_deinit(struct hostapd_iface *iface);
42 void ap_list_timer(struct hostapd_iface *iface);
44 static inline int ap_list_init(struct hostapd_iface *iface) argument
49 static inline void ap_list_deinit(struct hostapd_iface *iface) argument
53 static inline void ap_list_timer(struct hostapd_iface *iface) argument
H A Dbeacon.h19 int ieee802_11_set_beacons(struct hostapd_iface *iface);
20 int ieee802_11_update_beacons(struct hostapd_iface *iface);
24 void sta_track_add(struct hostapd_iface *iface, const u8 *addr, int ssi_signal);
26 void sta_track_expire(struct hostapd_iface *iface, int force);
28 sta_track_seen_on(struct hostapd_iface *iface, const u8 *addr,
30 void sta_track_claim_taxonomy_info(struct hostapd_iface *iface, const u8 *addr,
H A Ddfs.h12 int hostapd_handle_dfs(struct hostapd_iface *iface);
14 int hostapd_dfs_complete_cac(struct hostapd_iface *iface, int success, int freq,
17 int hostapd_dfs_pre_cac_expired(struct hostapd_iface *iface, int freq,
20 int hostapd_dfs_radar_detected(struct hostapd_iface *iface, int freq,
24 int hostapd_dfs_nop_finished(struct hostapd_iface *iface, int freq,
27 int hostapd_is_dfs_required(struct hostapd_iface *iface);
28 int hostapd_dfs_start_cac(struct hostapd_iface *iface, int freq,
31 int hostapd_handle_dfs_offload(struct hostapd_iface *iface);
H A Ddfs.c22 static int dfs_get_used_n_chans(struct hostapd_iface *iface, int *seg1) argument
28 if (iface->conf->ieee80211n && iface->conf->secondary_channel)
31 if (iface->conf->ieee80211ac || iface->conf->ieee80211ax) {
32 switch (hostapd_get_oper_chwidth(iface->conf)) {
177 static int is_in_chanlist(struct hostapd_iface *iface, argument
180 if (!iface->conf->acs_ch_list.num)
183 return freq_range_list_includes(&iface->conf->acs_ch_list, chan->chan);
194 static int dfs_find_channel(struct hostapd_iface *iface, argument
235 dfs_adjust_center_freq(struct hostapd_iface *iface, struct hostapd_channel_data *chan, int secondary_channel, u8 *oper_centr_freq_seg0_idx, u8 *oper_centr_freq_seg1_idx) argument
277 dfs_get_start_chan_idx(struct hostapd_iface *iface, int *seg1_start) argument
364 dfs_check_chans_radar(struct hostapd_iface *iface, int start_chan_idx, int n_chans) argument
384 dfs_check_chans_available(struct hostapd_iface *iface, int start_chan_idx, int n_chans) argument
412 dfs_check_chans_unavailable(struct hostapd_iface *iface, int start_chan_idx, int n_chans) argument
436 dfs_get_valid_channel(struct hostapd_iface *iface, int *secondary_channel, u8 *oper_centr_freq_seg0_idx, u8 *oper_centr_freq_seg1_idx, int skip_radar) argument
485 set_dfs_state_freq(struct hostapd_iface *iface, int freq, u32 state) argument
511 set_dfs_state(struct hostapd_iface *iface, int freq, int ht_enabled, int chan_offset, int chan_width, int cf1, int cf2, u32 state) argument
566 dfs_are_channels_overlapped(struct hostapd_iface *iface, int freq, int chan_width, int cf1, int cf2) argument
631 dfs_get_cac_time(struct hostapd_iface *iface, int start_chan_idx, int n_chans) argument
659 hostapd_handle_dfs(struct hostapd_iface *iface) argument
762 hostapd_config_dfs_chan_available(struct hostapd_iface *iface) argument
779 hostapd_dfs_complete_cac(struct hostapd_iface *iface, int success, int freq, int ht_enabled, int chan_offset, int chan_width, int cf1, int cf2) argument
821 hostapd_dfs_pre_cac_expired(struct hostapd_iface *iface, int freq, int ht_enabled, int chan_offset, int chan_width, int cf1, int cf2) argument
840 hostapd_dfs_start_channel_switch_cac(struct hostapd_iface *iface) argument
881 hostapd_dfs_start_channel_switch(struct hostapd_iface *iface) argument
1009 hostapd_dfs_radar_detected(struct hostapd_iface *iface, int freq, int ht_enabled, int chan_offset, int chan_width, int cf1, int cf2) argument
1042 hostapd_dfs_nop_finished(struct hostapd_iface *iface, int freq, int ht_enabled, int chan_offset, int chan_width, int cf1, int cf2) argument
1066 hostapd_is_dfs_required(struct hostapd_iface *iface) argument
1092 hostapd_dfs_start_cac(struct hostapd_iface *iface, int freq, int ht_enabled, int chan_offset, int chan_width, int cf1, int cf2) argument
1112 hostapd_handle_dfs_offload(struct hostapd_iface *iface) argument
[all...]
H A Deth_p_oui.c33 struct eth_p_oui_iface *iface; member in struct:eth_p_oui_ctx
53 struct eth_p_oui_iface *iface = ctx; local
73 dl_list_for_each(receiver, &iface->receiver,
91 struct eth_p_oui_iface *iface; local
104 interfaces = hapd->iface->interfaces;
106 dl_list_for_each(iface, &interfaces->eth_p_oui, struct eth_p_oui_iface,
108 if (os_strcmp(iface->ifname, ifname) != 0)
115 iface = os_zalloc(sizeof(*iface));
116 if (!iface)
143 struct eth_p_oui_iface *iface; local
164 struct eth_p_oui_iface *iface = ctx->iface; local
[all...]
H A Dbss_load.c47 struct hostapd_iface *iface = hapd->iface; local
52 err = hostapd_drv_get_survey(hapd, hapd->iface->freq);
64 iface->chan_util_samples_sum += iface->channel_utilization;
65 iface->chan_util_num_sample_periods +=
67 if (iface->chan_util_num_sample_periods >=
69 iface->chan_util_average =
70 iface->chan_util_samples_sum /
71 (iface
[all...]
H A Dieee802_11_ht.c29 if (!hapd->iconf->ieee80211n || !hapd->iface->current_mode ||
39 cap->a_mpdu_params = hapd->iface->current_mode->a_mpdu_params;
40 os_memcpy(cap->supported_mcs_set, hapd->iface->current_mode->mcs_set,
97 oper->operation_mode = host_to_le16(hapd->iface->ht_op_mode);
145 int hostapd_ht_operation_update(struct hostapd_iface *iface) argument
150 if (!iface->conf->ieee80211n || iface->conf->ht_op_mode_fixed)
154 __func__, iface->ht_op_mode);
156 if (!(iface->ht_op_mode & HT_OPER_OP_MODE_NON_GF_HT_STAS_PRESENT)
157 && iface
201 is_40_allowed(struct hostapd_iface *iface, int channel) argument
232 struct hostapd_iface *iface = hapd->iface; local
410 ht40_intolerant_add(struct hostapd_iface *iface, struct sta_info *sta) argument
433 ht40_intolerant_remove(struct hostapd_iface *iface, struct sta_info *sta) argument
551 struct hostapd_iface *iface = eloop_data; local
[all...]
H A Dacs.c245 static int acs_request_scan(struct hostapd_iface *iface);
264 void acs_cleanup(struct hostapd_iface *iface) argument
269 for (i = 0; i < iface->current_mode->num_channels; i++) {
270 chan = &iface->current_mode->channels[i];
280 iface->chans_surveyed = 0;
281 iface->acs_num_completed_scans = 0;
285 static void acs_fail(struct hostapd_iface *iface) argument
288 acs_cleanup(iface);
289 hostapd_disable_iface(iface);
327 acs_survey_chan_interference_factor(struct hostapd_iface *iface, argument
456 acs_surveys_are_sufficient(struct hostapd_iface *iface) argument
482 is_in_chanlist(struct hostapd_iface *iface, struct hostapd_channel_data *chan) argument
492 acs_survey_all_chans_intereference_factor( struct hostapd_iface *iface) argument
518 acs_find_chan(struct hostapd_iface *iface, int freq) argument
575 acs_find_ideal_chan(struct hostapd_iface *iface) argument
786 acs_adjust_center_freq(struct hostapd_iface *iface) argument
815 acs_study_survey_based(struct hostapd_iface *iface) argument
834 acs_study_options(struct hostapd_iface *iface) argument
846 acs_study(struct hostapd_iface *iface) argument
887 acs_scan_complete(struct hostapd_iface *iface) argument
920 acs_request_scan(struct hostapd_iface *iface) argument
963 acs_init(struct hostapd_iface *iface) argument
[all...]
H A Dutils.c48 static int prune_associations(struct hostapd_iface *iface, void *ctx) argument
55 for (j = 0; j < iface->num_bss; j++) {
56 ohapd = iface->bss[j];
61 if (ohapd->iface->fst &&
62 data->hapd->iface->fst &&
63 fst_are_ifaces_aggregated(ohapd->iface->fst,
64 data->hapd->iface->fst))
72 ohapd->conf->iface, MAC2STR(osta->addr));
92 if (hapd->iface->interfaces &&
93 hapd->iface
[all...]
H A Diapp.h17 struct iapp_data * iapp_init(struct hostapd_data *hapd, const char *iface);
28 const char *iface)
27 iapp_init(struct hostapd_data *hapd, const char *iface) argument
/freebsd-11-stable/usr.sbin/ppp/
H A Diface.h28 * $FreeBSD: stable/11/usr.sbin/ppp/iface.h 330449 2018-03-05 07:26:05Z eadler $
39 struct iface { struct
59 extern struct iface *iface_Create(const char *name);
60 extern void iface_Clear(struct iface *, struct ncp *, int, int);
61 extern int iface_Name(struct iface *, const char *);
63 extern int iface_Add(struct iface *, struct ncp *, const struct ncprange *,
65 extern int iface_Delete(struct iface *, struct ncp *, const struct ncpaddr *);
69 extern void iface_Free(struct iface *);
70 extern void iface_Destroy(struct iface *);
H A Diface.c28 * $FreeBSD: stable/11/usr.sbin/ppp/iface.c 330804 2018-03-12 17:36:37Z eugen $
83 #include "iface.h"
90 struct iface *
100 struct iface *iface; local
138 iface = NULL;
141 while (ptr < end && iface == NULL) {
147 iface = (struct iface *)malloc(sizeof *iface);
377 iface_Name(struct iface *iface, const char *name) argument
413 struct iface *iface; local
475 iface_Clear(struct iface *iface, struct ncp *ncp, int family, int how) argument
532 iface_Add(struct iface *iface, struct ncp *ncp, const struct ncprange *ifa, const struct ncpaddr *peer, int how) argument
618 iface_Delete(struct iface *iface, struct ncp *ncp, const struct ncpaddr *del) argument
711 iface_Free(struct iface *iface) argument
720 iface_Destroy(struct iface *iface) argument
766 struct iface *iface = arg->bundle->iface, *current; local
[all...]
/freebsd-11-stable/contrib/wpa/wpa_supplicant/
H A Dwpa_priv.c56 static void wpa_priv_cmd_register(struct wpa_priv_interface *iface, argument
61 if (iface->drv_priv) {
63 if (iface->driver->deinit)
64 iface->driver->deinit(iface->drv_priv);
65 iface->drv_priv = NULL;
66 if (iface->drv_global_priv) {
67 iface->driver->global_deinit(iface->drv_global_priv);
68 iface
120 wpa_priv_cmd_unregister(struct wpa_priv_interface *iface, struct sockaddr_un *from) argument
136 wpa_priv_cmd_scan(struct wpa_priv_interface *iface, void *buf, size_t len) argument
181 wpa_priv_get_scan_results2(struct wpa_priv_interface *iface, struct sockaddr_un *from, socklen_t fromlen) argument
227 wpa_priv_cmd_get_scan_results(struct wpa_priv_interface *iface, struct sockaddr_un *from, socklen_t fromlen) argument
241 wpa_priv_cmd_authenticate(struct wpa_priv_interface *iface, void *buf, size_t len) argument
293 wpa_priv_cmd_associate(struct wpa_priv_interface *iface, void *buf, size_t len) argument
341 wpa_priv_cmd_get_bssid(struct wpa_priv_interface *iface, struct sockaddr_un *from, socklen_t fromlen) argument
362 wpa_priv_cmd_get_ssid(struct wpa_priv_interface *iface, struct sockaddr_un *from, socklen_t fromlen) argument
389 wpa_priv_cmd_set_key(struct wpa_priv_interface *iface, void *buf, size_t len) argument
417 wpa_priv_cmd_get_capa(struct wpa_priv_interface *iface, struct sockaddr_un *from, socklen_t fromlen) argument
446 struct wpa_priv_interface *iface = l2_ctx->parent; local
474 wpa_priv_cmd_l2_register(struct wpa_priv_interface *iface, struct sockaddr_un *from, socklen_t fromlen, void *buf, size_t len) argument
535 wpa_priv_cmd_l2_unregister(struct wpa_priv_interface *iface, struct sockaddr_un *from, socklen_t fromlen) argument
559 wpa_priv_cmd_l2_notify_auth_start(struct wpa_priv_interface *iface, struct sockaddr_un *from) argument
571 wpa_priv_cmd_l2_send(struct wpa_priv_interface *iface, struct sockaddr_un *from, socklen_t fromlen, void *buf, size_t len) argument
615 wpa_priv_cmd_set_country(struct wpa_priv_interface *iface, char *buf) argument
628 struct wpa_priv_interface *iface = eloop_ctx; local
709 wpa_priv_interface_deinit(struct wpa_priv_interface *iface) argument
741 struct wpa_priv_interface *iface; local
856 wpa_priv_send_event(struct wpa_priv_interface *iface, int event, const void *data, size_t data_len) argument
883 wpa_priv_send_auth(struct wpa_priv_interface *iface, union wpa_event_data *data) argument
913 wpa_priv_send_assoc(struct wpa_priv_interface *iface, int event, union wpa_event_data *data) argument
974 wpa_priv_send_interface_status(struct wpa_priv_interface *iface, union wpa_event_data *data) argument
1006 wpa_priv_send_ft_response(struct wpa_priv_interface *iface, union wpa_event_data *data) argument
1037 struct wpa_priv_interface *iface = ctx; local
1102 struct wpa_priv_interface *iface; local
1132 struct wpa_priv_interface *iface = ctx; local
1205 struct wpa_priv_interface *iface; local
[all...]
H A Dmain_none.c16 struct wpa_interface iface; local
28 memset(&iface, 0, sizeof(iface));
31 if (wpa_supplicant_add_iface(global, &iface, NULL) == NULL)
/freebsd-11-stable/share/examples/netgraph/
H A Draw10 ngctl mkpeer ${CARD}: iface rawdata inet
/freebsd-11-stable/contrib/wpa/hostapd/logwatch/
H A Dhostapd29 if (my ($iface,$mac,$layer,$details) = ($line =~ /(.*?): STA (.*?) (.*?): (.*?)$/i)) {
34 $hostapd{$iface}->{$mac}->{$layer}->{$details}++;
41 foreach my $iface (sort keys %hostapd) {
42 print "Interface $iface:\n";
43 foreach my $mac (sort keys %{$hostapd{$iface}}) {
45 foreach my $layer (sort keys %{$hostapd{$iface}->{$mac}}) {
47 foreach my $details (sort keys %{$hostapd{$iface}->{$mac}->{$layer}}) {
49 my $count = $hostapd{$iface}->{$mac}->{$layer}->{$details};
/freebsd-11-stable/contrib/wpa/src/fst/
H A Dfst.c22 static void fst_ctrl_iface_notify_peer_state_change(struct fst_iface *iface, argument
29 os_strlcpy(extra.peer_state.ifname, fst_iface_get_name(iface),
34 iface, NULL, &extra);
44 struct fst_iface *iface = NULL; local
68 iface = fst_iface_create(group, ifname, own_addr, iface_obj, cfg);
69 if (!iface) {
70 fst_printf_group(group, MSG_ERROR, "cannot create iface for %s",
77 fst_group_attach_iface(group, iface);
80 foreach_fst_ctrl_call(on_iface_added, iface);
82 fst_printf_iface(iface, MSG_DEBU
90 fst_detach(struct fst_iface *iface) argument
166 fst_rx_action(struct fst_iface *iface, const struct ieee80211_mgmt *mgmt, size_t len) argument
178 fst_notify_peer_connected(struct fst_iface *iface, const u8 *addr) argument
194 fst_notify_peer_disconnected(struct fst_iface *iface, const u8 *addr) argument
[all...]
/freebsd-11-stable/contrib/wpa/wpa_supplicant/dbus/
H A Ddbus_new_introspect.c30 struct interfaces *iface; local
32 dl_list_for_each(iface, list, struct interfaces, list) {
33 if (os_strcmp(iface->dbus_interface, dbus_interface) == 0)
34 return iface; /* already in the list */
37 iface = os_zalloc(sizeof(struct interfaces));
38 if (!iface)
40 iface->dbus_interface = os_strdup(dbus_interface);
41 iface->xml = wpabuf_alloc(15000);
42 if (iface->dbus_interface == NULL || iface
100 struct interfaces *iface; local
115 struct interfaces *iface; local
130 struct interfaces *iface; local
161 struct interfaces *iface, *n; local
[all...]
/freebsd-11-stable/contrib/hyperv/tools/scripts/
H A Dhyperv_vfattach22 iface=$1
31 ifconfig $iface up
37 # Check to see whether $iface is a VF or not.
38 # If $iface is a VF, bring it up now.
54 if [ $vf = $iface ]
58 # make sure that $iface is fully attached.
76 $iface $hyperv_vf_delay
/freebsd-11-stable/sys/mips/nlm/dev/net/
H A Dsgmii.c76 nlm_nae_setup_mac(uint64_t nae_base, int nblock, int iface, int reset, argument
82 SGMII_MAC_CONF1(nblock,iface));
84 SGMII_MAC_CONF2(nblock,iface));
86 SGMII_NET_IFACE_CTRL(nblock, iface));
118 SGMII_NET_IFACE_CTRL(nblock, iface),
134 nlm_write_nae_reg(nae_base, SGMII_MAC_CONF1(nblock, iface), mac_cfg1);
135 nlm_write_nae_reg(nae_base, SGMII_MAC_CONF2(nblock, iface), mac_cfg2);
136 nlm_write_nae_reg(nae_base, SGMII_NET_IFACE_CTRL(nblock, iface),
141 nlm_nae_setup_rx_mode_sgmii(uint64_t base, int nblock, int iface, int port_type, argument
157 SGMII_NETIOR_VLANTYPE_FILTER(nblock, iface));
180 nlm_nae_setup_mac_addr_sgmii(uint64_t base, int nblock, int iface, int port_type, uint8_t *mac_addr) argument
[all...]

Completed in 222 milliseconds

12345678910