/freebsd-10-stable/usr.sbin/ppp/ |
H A D | iface.h | 37 struct iface { struct 57 extern struct iface *iface_Create(const char *name); 58 extern void iface_Clear(struct iface *, struct ncp *, int, int); 59 extern int iface_Name(struct iface *, const char *); 61 extern int iface_Add(struct iface *, struct ncp *, const struct ncprange *, 63 extern int iface_Delete(struct iface *, struct ncp *, const struct ncpaddr *); 67 extern void iface_Free(struct iface *); 68 extern void iface_Destroy(struct iface *);
|
H A D | iface.c | 26 * $FreeBSD: stable/10/usr.sbin/ppp/iface.c 330805 2018-03-12 17:37:38Z eugen $ 84 #include "iface.h" 91 struct iface * 101 struct iface *iface; local 139 iface = NULL; 142 while (ptr < end && iface == NULL) { 148 iface = (struct iface *)malloc(sizeof *iface); 378 iface_Name(struct iface *iface, const char *name) argument 414 struct iface *iface; local 476 iface_Clear(struct iface *iface, struct ncp *ncp, int family, int how) argument 533 iface_Add(struct iface *iface, struct ncp *ncp, const struct ncprange *ifa, const struct ncpaddr *peer, int how) argument 619 iface_Delete(struct iface *iface, struct ncp *ncp, const struct ncpaddr *del) argument 712 iface_Free(struct iface *iface) argument 721 iface_Destroy(struct iface *iface) argument 767 struct iface *iface = arg->bundle->iface, *current; local [all...] |
/freebsd-10-stable/contrib/wpa/src/ap/ |
H A D | ap_list.c | 32 static int ap_list_beacon_olbc(struct hostapd_iface *iface, struct ap_info *ap) argument 36 if (iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G || 37 iface->conf->channel != ap->channel) 53 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->ap_list->prev = ap; 71 ap->next = iface 76 ap_ap_list_del(struct hostapd_iface *iface, struct ap_info *ap) argument 90 ap_ap_iter_list_add(struct hostapd_iface *iface, struct ap_info *ap) argument 103 ap_ap_iter_list_del(struct hostapd_iface *iface, struct ap_info *ap) argument 118 ap_ap_hash_add(struct hostapd_iface *iface, struct ap_info *ap) argument 125 ap_ap_hash_del(struct hostapd_iface *iface, struct ap_info *ap) argument 147 ap_free_ap(struct hostapd_iface *iface, struct ap_info *ap) argument 158 hostapd_free_aps(struct hostapd_iface *iface) argument 174 ap_ap_for_each(struct hostapd_iface *iface, int (*func)(struct ap_info *s, void *data), void *data) argument 193 ap_ap_add(struct hostapd_iface *iface, const u8 *addr) argument 218 ap_list_process_beacon(struct hostapd_iface *iface, const struct ieee80211_mgmt *mgmt, struct ieee802_11_elems *elems, struct hostapd_frame_info *fi) argument 313 struct hostapd_iface *iface = eloop_ctx; local 366 ap_list_init(struct hostapd_iface *iface) argument 373 ap_list_deinit(struct hostapd_iface *iface) argument [all...] |
H A D | beacon.h | 25 void ieee802_11_set_beacons(struct hostapd_iface *iface); 26 void ieee802_11_update_beacons(struct hostapd_iface *iface);
|
H A D | hw_features.h | 23 int hostapd_get_hw_features(struct hostapd_iface *iface); 24 int hostapd_select_hw_mode(struct hostapd_iface *iface); 28 int hostapd_check_ht_capab(struct hostapd_iface *iface); 29 int hostapd_prepare_rates(struct hostapd_iface *iface, 38 static inline int hostapd_get_hw_features(struct hostapd_iface *iface) argument 43 static inline int hostapd_select_hw_mode(struct hostapd_iface *iface) argument 58 static inline int hostapd_check_ht_capab(struct hostapd_iface *iface) argument 63 static inline int hostapd_prepare_rates(struct hostapd_iface *iface, argument
|
H A D | hw_features.c | 47 int hostapd_get_hw_features(struct hostapd_iface *iface) argument 49 struct hostapd_data *hapd = iface->bss[0]; 65 iface->hw_flags = flags; 67 hostapd_free_hw_features(iface->hw_features, iface->num_hw_features); 68 iface->hw_features = modes; 69 iface->num_hw_features = num_modes; 104 int hostapd_prepare_rates(struct hostapd_iface *iface, argument 113 if (iface->conf->basic_rates) 114 basic_rates = iface 184 ieee80211n_allowed_ht40_channel_pair(struct hostapd_iface *iface) argument 249 ieee80211n_switch_pri_sec(struct hostapd_iface *iface) argument 286 ieee80211n_check_40mhz_5g(struct hostapd_iface *iface, struct wpa_scan_results *scan_res) argument 357 ieee80211n_check_40mhz_2g4(struct hostapd_iface *iface, struct wpa_scan_results *scan_res) argument 416 ieee80211n_check_scan(struct hostapd_iface *iface) argument 454 ieee80211n_scan_channels_2g4(struct hostapd_iface *iface, struct wpa_driver_scan_params *params) argument 494 ieee80211n_check_40mhz(struct hostapd_iface *iface) argument 519 ieee80211n_supported_ht_capab(struct hostapd_iface *iface) argument 619 hostapd_check_ht_capab(struct hostapd_iface *iface) argument 646 hostapd_select_hw_mode(struct hostapd_iface *iface) argument [all...] |
H A D | ap_list.h | 50 struct ap_info * ap_get_ap(struct hostapd_iface *iface, const u8 *sta); 51 int ap_ap_for_each(struct hostapd_iface *iface, 53 void ap_list_process_beacon(struct hostapd_iface *iface, 58 int ap_list_init(struct hostapd_iface *iface); 59 void ap_list_deinit(struct hostapd_iface *iface); 61 static inline int ap_list_init(struct hostapd_iface *iface) argument 66 static inline void ap_list_deinit(struct hostapd_iface *iface) argument
|
H A D | ieee802_11_ht.c | 33 if (!hapd->iconf->ieee80211n || !hapd->iface->current_mode || 43 cap->a_mpdu_params = hapd->iface->current_mode->a_mpdu_params; 44 os_memcpy(cap->supported_mcs_set, hapd->iface->current_mode->mcs_set, 72 oper->operation_mode = host_to_le16(hapd->iface->ht_op_mode); 97 int hostapd_ht_operation_update(struct hostapd_iface *iface) argument 102 if (!iface->conf->ieee80211n || iface->conf->ht_op_mode_fixed) 106 __func__, iface->ht_op_mode); 108 if (!(iface->ht_op_mode & HT_INFO_OPERATION_MODE_NON_GF_DEVS_PRESENT) 109 && iface [all...] |
H A D | iapp.h | 17 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
|
H A D | utils.c | 47 static int prune_associations(struct hostapd_iface *iface, void *ctx) argument 54 for (j = 0; j < iface->num_bss; j++) { 55 ohapd = iface->bss[j]; 81 if (hapd->iface->interfaces && 82 hapd->iface->interfaces->for_each_interface) 83 hapd->iface->interfaces->for_each_interface( 84 hapd->iface->interfaces, prune_associations, &data);
|
H A D | hostapd.c | 38 static int hostapd_setup_encryption(char *iface, struct hostapd_data *hapd); 46 int (*cb)(struct hostapd_iface *iface, 53 ret = cb(interfaces->iface[i], ctx); 74 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 1); 76 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 0); 94 hostapd_setup_encryption(hapd->conf->iface, hapd); 107 wpa_printf(MSG_DEBUG, "Reconfigured interface %s", hapd->conf->iface); 111 int hostapd_reload_config(struct hostapd_iface *iface) argument 113 struct hostapd_data *hapd = iface->bss[0]; 117 if (iface 45 hostapd_for_each_interface(struct hapd_interfaces *interfaces, int (*cb)(struct hostapd_iface *iface, void *ctx), void *ctx) argument 310 hostapd_cleanup_iface_pre(struct hostapd_iface *iface) argument 315 hostapd_cleanup_iface_partial(struct hostapd_iface *iface) argument 334 hostapd_cleanup_iface(struct hostapd_iface *iface) argument 355 hostapd_setup_encryption(char *iface, struct hostapd_data *hapd) argument 421 hostapd_validate_bssid_configuration(struct hostapd_iface *iface) argument 805 hostapd_tx_queue_params(struct hostapd_iface *iface) argument 824 setup_interface(struct hostapd_iface *iface) argument 874 hostapd_setup_interface_complete(struct hostapd_iface *iface, int err) argument 982 hostapd_setup_interface(struct hostapd_iface *iface) argument 1030 hostapd_interface_deinit(struct hostapd_iface *iface) argument 1048 hostapd_interface_free(struct hostapd_iface *iface) argument 1059 hostapd_interface_deinit_free(struct hostapd_iface *iface) argument 1161 struct hostapd_iface **iface, *hapd_iface; local [all...] |
/freebsd-10-stable/contrib/wpa/hostapd/ |
H A D | dump_state.h | 12 int handle_dump_state_iface(struct hostapd_iface *iface, void *ctx);
|
H A D | main.c | 100 hapd->conf->iface, MAC2STR(addr), 104 hapd->conf->iface, module_str ? " " : "", 207 static int hostapd_driver_init(struct hostapd_iface *iface) argument 211 struct hostapd_data *hapd = iface->bss[0]; 245 params.ifname = hapd->conf->iface; 251 params.num_bridge = hapd->iface->num_bss; 252 params.bridge = os_calloc(hapd->iface->num_bss, sizeof(char *)); 255 for (i = 0; i < hapd->iface->num_bss; i++) { 256 struct hostapd_data *bss = hapd->iface->bss[i]; 274 iface 286 struct hostapd_iface *iface; local 325 handle_reload_iface(struct hostapd_iface *iface, void *ctx) argument [all...] |
/freebsd-10-stable/contrib/wpa/wpa_supplicant/ |
H A D | wpa_priv.c | 43 static void wpa_priv_cmd_register(struct wpa_priv_interface *iface, argument 46 if (iface->drv_priv) { 48 if (iface->driver->deinit) 49 iface->driver->deinit(iface->drv_priv); 50 iface->drv_priv = NULL; 51 iface->wpas_registered = 0; 54 if (iface->l2) { 57 l2_packet_deinit(iface->l2); 58 iface 83 wpa_priv_cmd_unregister(struct wpa_priv_interface *iface, struct sockaddr_un *from) argument 95 wpa_priv_cmd_scan(struct wpa_priv_interface *iface, char *buf, size_t len) argument 115 wpa_priv_get_scan_results2(struct wpa_priv_interface *iface, struct sockaddr_un *from) argument 161 wpa_priv_cmd_get_scan_results(struct wpa_priv_interface *iface, struct sockaddr_un *from) argument 175 wpa_priv_cmd_associate(struct wpa_priv_interface *iface, void *buf, size_t len) argument 221 wpa_priv_cmd_get_bssid(struct wpa_priv_interface *iface, struct sockaddr_un *from) argument 242 wpa_priv_cmd_get_ssid(struct wpa_priv_interface *iface, struct sockaddr_un *from) argument 268 wpa_priv_cmd_set_key(struct wpa_priv_interface *iface, void *buf, size_t len) argument 296 wpa_priv_cmd_get_capa(struct wpa_priv_interface *iface, struct sockaddr_un *from) argument 320 struct wpa_priv_interface *iface = ctx; local 341 wpa_priv_cmd_l2_register(struct wpa_priv_interface *iface, struct sockaddr_un *from, void *buf, size_t len) argument 394 wpa_priv_cmd_l2_unregister(struct wpa_priv_interface *iface, struct sockaddr_un *from) argument 404 wpa_priv_cmd_l2_notify_auth_start(struct wpa_priv_interface *iface, struct sockaddr_un *from) argument 412 wpa_priv_cmd_l2_send(struct wpa_priv_interface *iface, struct sockaddr_un *from, void *buf, size_t len) argument 444 wpa_priv_cmd_set_country(struct wpa_priv_interface *iface, char *buf) argument 457 struct wpa_priv_interface *iface = eloop_ctx; local 534 wpa_priv_interface_deinit(struct wpa_priv_interface *iface) argument 560 struct wpa_priv_interface *iface; local 675 wpa_priv_send_event(struct wpa_priv_interface *iface, int event, const void *data, size_t data_len) argument 701 wpa_priv_send_assoc(struct wpa_priv_interface *iface, int event, union wpa_event_data *data) argument 762 wpa_priv_send_interface_status(struct wpa_priv_interface *iface, union wpa_event_data *data) argument 794 wpa_priv_send_ft_response(struct wpa_priv_interface *iface, union wpa_event_data *data) argument 825 struct wpa_priv_interface *iface = ctx; local 888 struct wpa_priv_interface *iface = ctx; local 960 struct wpa_priv_interface *interfaces = NULL, *iface; local [all...] |
H A D | main_none.c | 16 struct wpa_interface iface; local 28 memset(&iface, 0, sizeof(iface)); 31 if (wpa_supplicant_add_iface(global, &iface) == NULL)
|
H A D | main.c | 138 struct wpa_interface *ifaces, *iface; local 149 iface = ifaces = os_zalloc(sizeof(struct wpa_interface)); 163 iface->bridge_ifname = optarg; 169 iface->confname = optarg; 172 iface->ctrl_interface = optarg; 175 iface->driver = optarg; 203 iface->ifname = optarg; 219 iface->driver_param = optarg; 255 iface = os_realloc_array(ifaces, iface_count, 257 if (iface [all...] |
/freebsd-10-stable/share/examples/netgraph/ |
H A D | raw | 10 ngctl mkpeer ${CARD}: iface rawdata inet
|
/freebsd-10-stable/contrib/wpa/hostapd/logwatch/ |
H A D | hostapd | 29 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-10-stable/contrib/wpa/wpa_supplicant/dbus/ |
H A D | dbus_new_introspect.c | 30 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->xml = wpabuf_alloc(6000); 41 if (iface->xml == NULL) { 42 os_free(iface); 45 wpabuf_printf(iface 98 struct interfaces *iface; local 112 struct interfaces *iface; local 126 struct interfaces *iface; local 156 struct interfaces *iface, *n; local [all...] |
/freebsd-10-stable/share/examples/ppp/ |
H A D | ppp.linkdown.sample | 30 # to keep the interface aliases to a minimum (see ``enable iface-alias'' 34 iface clear
|
/freebsd-10-stable/contrib/hyperv/tools/scripts/ |
H A D | hyperv_vfattach | 22 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-10-stable/sys/mips/nlm/dev/net/ |
H A D | sgmii.c | 76 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...] |
/freebsd-10-stable/contrib/ipfilter/ |
H A D | mkfilters | 94 ($iface = $_) =~ s/^([a-zA-Z]+\d+).*/$1/; 95 $ifaces{$iface} = $iface; 100 ($inet{$iface} = $_) =~ s/.*inet ([^ ]+) \-\-\> ([^ ]+).*/$1/; 101 ($ppp{$iface} = $_) =~ s/.*inet ([^ ]+) \-\-\> ([^ ]+).*/$2/; 103 ($inet{$iface} = $_) =~ s/.*inet ([^ ]+).*/$1/; 109 $netmask{$iface} = $mask; 112 ($bcast{$iface} = $_) =~ s/.*broadcast ([^ ]+).*/$1/;
|
/freebsd-10-stable/contrib/apr/network_io/unix/ |
H A D | multicast.c | 30 apr_sockaddr_t *iface) 33 if (iface == NULL) { 37 mip->imr_interface = iface->sa.sin.sin_addr; 44 static unsigned int find_if_index(const apr_sockaddr_t *iface) argument 64 if (memcmp(&iface->sa.sin6.sin6_addr, 66 sizeof(iface->sa.sin6.sin6_addr)) == 0) { 80 const apr_sockaddr_t *iface) 85 if (iface == NULL) { 89 mip->ipv6mr_interface = find_if_index(iface); 112 apr_sockaddr_t *mcast, apr_sockaddr_t *iface, 29 fill_mip_v4(struct ip_mreq *mip, apr_sockaddr_t *mcast, apr_sockaddr_t *iface) argument 79 fill_mip_v6(struct ipv6_mreq *mip, const apr_sockaddr_t *mcast, const apr_sockaddr_t *iface) argument 111 do_mcast(int type, apr_socket_t *sock, apr_sockaddr_t *mcast, apr_sockaddr_t *iface, apr_sockaddr_t *source) argument [all...] |
/freebsd-10-stable/tools/tools/net80211/w00t/libw00t/ |
H A D | w00t.h | 36 int open_tx(char *iface); 37 int open_rx(char *iface); 38 int open_rxtx(char *iface, int *rx, int *tx); 47 int open_tap(char *iface); 48 int set_iface_mac(char *iface, char *mac);
|