/netbsd-6-1-5-RELEASE/external/bsd/dhcpcd/dist/ |
H A D | ipv4ll.c | 88 struct interface *iface = arg; local 91 delete_timeout(NULL, iface); 92 iface->state->probes = 0; 93 iface->state->claims = 0; 94 if (iface->addr.s_addr) { 95 iface->state->conflicts = 0; 96 if (IN_LINKLOCAL(htonl(iface->addr.s_addr))) { 97 send_arp_announce(iface); 102 if (iface->state->offer == NULL) 105 addr = iface 125 struct interface *iface = arg; local [all...] |
H A D | duid.h | 33 size_t get_duid(unsigned char *duid, const struct interface *iface);
|
H A D | arp.c | 48 send_arp(const struct interface *iface, int op, in_addr_t sip, in_addr_t tip) argument 56 ar.ar_hrd = htons(iface->family); 58 ar.ar_hln = iface->hwlen; 63 memcpy(p, iface->hwaddr, iface->hwlen); 64 p += iface->hwlen; 68 retval = iface->hwlen; 74 retval = send_raw_packet(iface, ETHERTYPE_ARP, arp_buffer, len); 79 handle_arp_failure(struct interface *iface) argument 84 if ((iface 107 struct interface *iface = arg; local 203 struct interface *iface = arg; local 250 struct interface *iface = arg; local 305 start_arping(struct interface *iface) argument [all...] |
H A D | dhcpcd.c | 174 struct interface *iface; local 180 iface = ifaces; 181 ifaces = iface->next; 182 free_interface(iface); 229 drop_dhcp(struct interface *iface, const char *reason) argument 231 free(iface->state->old); 232 iface->state->old = iface->state->new; 233 iface->state->new = NULL; 234 iface 253 stop_interface(struct interface *iface) argument 281 dhcp_xid(struct interface *iface) argument 297 send_message(struct interface *iface, int type, void (*callback)(void *)) argument 418 struct interface *iface = arg; local 437 log_dhcp(int lvl, const char *msg, const struct interface *iface, const struct dhcp_message *dhcp, const struct in_addr *from) argument 499 handle_dhcp(struct interface *iface, struct dhcp_message **dhcpp, const struct in_addr *from) argument 658 struct interface *iface = arg; local 742 send_release(struct interface *iface) argument 763 send_decline(struct interface *iface) argument 769 configure_interface1(struct interface *iface) argument 856 select_profile(struct interface *iface, const char *profile) argument 887 struct interface *iface; local 895 configure_interface(struct interface *iface, int argc, char **argv) argument 905 struct interface *iface; local 956 struct interface *iface = arg; local 995 struct interface *iface = arg; local 1004 struct interface *iface = arg; local 1016 struct interface *iface = arg; local 1029 struct interface *iface = arg; local 1056 handle_3rdparty(struct interface *iface) argument 1078 start_static(struct interface *iface) argument 1092 start_inform(struct interface *iface) argument 1111 start_reboot(struct interface *iface) argument 1163 struct interface *iface = arg; local 1249 init_state(struct interface *iface, int argc, char **argv) argument 1441 if_reboot(struct interface *iface, int argc, char **argv) argument 1718 open_sockets(struct interface *iface) argument 1743 close_sockets(struct interface *iface) argument 1765 struct interface *iface; local [all...] |
H A D | bpf.c | 52 open_socket(struct interface *iface, int protocol) argument 89 strlcpy(ifr.ifr_name, iface->name, sizeof(ifr.ifr_name)); 96 if (iface->buffer_size != (size_t)buf_len) { 97 free(iface->buffer); 98 iface->buffer_size = buf_len; 99 iface->buffer = xmalloc(buf_len); 100 iface->buffer_len = iface->buffer_pos = 0; 113 fdp = &iface->arp_fd; 117 fdp = &iface 138 send_raw_packet(const struct interface *iface, int protocol, const void *data, ssize_t len) argument 162 get_raw_packet(struct interface *iface, int protocol, void *data, ssize_t len, int *partialcsum) argument [all...] |
H A D | configure.c | 156 make_env(const struct interface *iface, const char *reason, char ***argv) argument 160 const struct if_options *ifo = iface->state->options; 166 if (ipv6rs_has_ra(iface)) 184 e = strlen("interface") + strlen(iface->name) + 2; 186 snprintf(env[0], e, "interface=%s", iface->name); 197 snprintf(env[3], e, "ifmetric=%d", iface->metric); 199 snprintf(env[4], e, "ifwireless=%d", iface->wireless); 201 snprintf(env[5], e, "ifflags=%u", iface->flags); 203 snprintf(env[6], e, "ifmtu=%d", get_mtu(iface->name)); 222 } else if ((dhcp && iface 301 send_interface1(int fd, const struct interface *iface, const char *reason) argument 324 send_interface(int fd, const struct interface *iface) argument 337 run_script_reason(const struct interface *iface, const char *reason) argument 556 add_subnet_route(struct rt *rt, const struct interface *iface) argument 576 get_routes(const struct interface *iface) argument 607 massage_host_routes(struct rt *rt, const struct interface *iface) argument 619 add_destination_route(struct rt *rt, const struct interface *iface) argument 750 delete_address(struct interface *iface) argument 772 configure(struct interface *iface) argument [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/wpa/dist/src/ap/ |
H A D | ap_list.c | 38 static int ap_list_beacon_olbc(struct hostapd_iface *iface, struct ap_info *ap) argument 42 if (iface->current_mode->mode != HOSTAPD_MODE_IEEE80211G || 43 iface->conf->channel != ap->channel) 59 struct ap_info * ap_get_ap(struct hostapd_iface *iface, const u8 *ap) argument 63 s = iface->ap_hash[STA_HASH(ap)]; 70 static void ap_ap_list_add(struct hostapd_iface *iface, struct ap_info *ap) argument 72 if (iface->ap_list) { 73 ap->prev = iface->ap_list->prev; 74 iface->ap_list->prev = ap; 77 ap->next = iface 82 ap_ap_list_del(struct hostapd_iface *iface, struct ap_info *ap) argument 96 ap_ap_iter_list_add(struct hostapd_iface *iface, struct ap_info *ap) argument 109 ap_ap_iter_list_del(struct hostapd_iface *iface, struct ap_info *ap) argument 124 ap_ap_hash_add(struct hostapd_iface *iface, struct ap_info *ap) argument 131 ap_ap_hash_del(struct hostapd_iface *iface, struct ap_info *ap) argument 153 ap_free_ap(struct hostapd_iface *iface, struct ap_info *ap) argument 164 hostapd_free_aps(struct hostapd_iface *iface) argument 180 ap_ap_for_each(struct hostapd_iface *iface, int (*func)(struct ap_info *s, void *data), void *data) argument 199 ap_ap_add(struct hostapd_iface *iface, const u8 *addr) argument 224 ap_list_process_beacon(struct hostapd_iface *iface, const struct ieee80211_mgmt *mgmt, struct ieee802_11_elems *elems, struct hostapd_frame_info *fi) argument 333 struct hostapd_iface *iface = eloop_ctx; local 386 ap_list_init(struct hostapd_iface *iface) argument 393 ap_list_deinit(struct hostapd_iface *iface) argument [all...] |
H A D | hw_features.h | 22 int hostapd_get_hw_features(struct hostapd_iface *iface); 23 int hostapd_select_hw_mode(struct hostapd_iface *iface); 27 int hostapd_check_ht_capab(struct hostapd_iface *iface); 35 static inline int hostapd_get_hw_features(struct hostapd_iface *iface) argument 40 static inline int hostapd_select_hw_mode(struct hostapd_iface *iface) argument 55 static inline int hostapd_check_ht_capab(struct hostapd_iface *iface) argument
|
H A D | ap_list.h | 57 struct ap_info * ap_get_ap(struct hostapd_iface *iface, const u8 *sta); 58 int ap_ap_for_each(struct hostapd_iface *iface, 60 void ap_list_process_beacon(struct hostapd_iface *iface, 65 int ap_list_init(struct hostapd_iface *iface); 66 void ap_list_deinit(struct hostapd_iface *iface); 68 static inline int ap_list_init(struct hostapd_iface *iface) argument 73 static inline void ap_list_deinit(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; 135 os_free(hapd->iface->current_rates); 136 hapd->iface->num_rates = 0; 138 hapd->iface 177 ieee80211n_allowed_ht40_channel_pair(struct hostapd_iface *iface) argument 242 ieee80211n_switch_pri_sec(struct hostapd_iface *iface) argument 279 ieee80211n_check_40mhz_5g(struct hostapd_iface *iface, struct wpa_scan_results *scan_res) argument 350 ieee80211n_check_40mhz_2g4(struct hostapd_iface *iface, struct wpa_scan_results *scan_res) argument 423 ieee80211n_check_scan(struct hostapd_iface *iface) argument 459 ieee80211n_check_40mhz(struct hostapd_iface *iface) argument 481 ieee80211n_supported_ht_capab(struct hostapd_iface *iface) argument 584 hostapd_check_ht_capab(struct hostapd_iface *iface) argument 609 hostapd_select_hw_mode(struct hostapd_iface *iface) argument [all...] |
H A D | ieee802_11_ht.c | 33 if (!hapd->iconf->ieee80211n || !hapd->iface->current_mode) 42 cap->a_mpdu_params = hapd->iface->current_mode->a_mpdu_params; 43 os_memcpy(cap->supported_mcs_set, hapd->iface->current_mode->mcs_set, 71 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 | hostapd.c | 41 static int hostapd_setup_encryption(char *iface, struct hostapd_data *hapd); 46 int hostapd_reload_config(struct hostapd_iface *iface) argument 48 struct hostapd_data *hapd = iface->bss[0]; 52 if (iface->config_read_cb == NULL) 54 newconf = iface->config_read_cb(iface->config_fname); 62 for (j = 0; j < iface->num_bss; j++) 63 hostapd_flush_old_stations(iface->bss[j]); 74 iface->conf = newconf; 82 hapd->drv.set_drv_ieee8021x(hapd, hapd->conf->iface, 248 hostapd_cleanup_iface_pre(struct hostapd_iface *iface) argument 260 hostapd_cleanup_iface(struct hostapd_iface *iface) argument 276 hostapd_setup_encryption(char *iface, struct hostapd_data *hapd) argument 342 hostapd_validate_bssid_configuration(struct hostapd_iface *iface) argument 618 hostapd_tx_queue_params(struct hostapd_iface *iface) argument 640 setup_interface(struct hostapd_iface *iface) argument 690 hostapd_setup_interface_complete(struct hostapd_iface *iface, int err) argument 773 hostapd_setup_interface(struct hostapd_iface *iface) argument 821 hostapd_interface_deinit(struct hostapd_iface *iface) argument 838 hostapd_interface_free(struct hostapd_iface *iface) argument [all...] |
H A D | beacon.h | 25 void ieee802_11_set_beacons(struct hostapd_iface *iface); 31 static inline void ieee802_11_set_beacons(struct hostapd_iface *iface) argument
|
H A D | iapp.h | 23 struct iapp_data * iapp_init(struct hostapd_data *hapd, const char *iface); 34 const char *iface) 33 iapp_init(struct hostapd_data *hapd, const char *iface) argument
|
/netbsd-6-1-5-RELEASE/external/bsd/wpa/dist/hostapd/ |
H A D | dump_state.h | 18 int handle_dump_state_iface(struct hostapd_iface *iface, void *ctx);
|
/netbsd-6-1-5-RELEASE/external/bsd/wpa/dist/wpa_supplicant/ |
H A D | wpa_priv.c | 49 static void wpa_priv_cmd_register(struct wpa_priv_interface *iface, argument 52 if (iface->drv_priv) { 54 if (iface->driver->deinit) 55 iface->driver->deinit(iface->drv_priv); 56 iface->drv_priv = NULL; 57 iface->wpas_registered = 0; 60 if (iface->l2) { 63 l2_packet_deinit(iface->l2); 64 iface 89 wpa_priv_cmd_unregister(struct wpa_priv_interface *iface, struct sockaddr_un *from) argument 101 wpa_priv_cmd_scan(struct wpa_priv_interface *iface, char *buf, size_t len) argument 121 wpa_priv_get_scan_results2(struct wpa_priv_interface *iface, struct sockaddr_un *from) argument 167 wpa_priv_cmd_get_scan_results(struct wpa_priv_interface *iface, struct sockaddr_un *from) argument 181 wpa_priv_cmd_associate(struct wpa_priv_interface *iface, void *buf, size_t len) argument 227 wpa_priv_cmd_get_bssid(struct wpa_priv_interface *iface, struct sockaddr_un *from) argument 248 wpa_priv_cmd_get_ssid(struct wpa_priv_interface *iface, struct sockaddr_un *from) argument 274 wpa_priv_cmd_set_key(struct wpa_priv_interface *iface, void *buf, size_t len) argument 302 wpa_priv_cmd_get_capa(struct wpa_priv_interface *iface, struct sockaddr_un *from) argument 326 struct wpa_priv_interface *iface = ctx; local 347 wpa_priv_cmd_l2_register(struct wpa_priv_interface *iface, struct sockaddr_un *from, void *buf, size_t len) argument 400 wpa_priv_cmd_l2_unregister(struct wpa_priv_interface *iface, struct sockaddr_un *from) argument 410 wpa_priv_cmd_l2_notify_auth_start(struct wpa_priv_interface *iface, struct sockaddr_un *from) argument 418 wpa_priv_cmd_l2_send(struct wpa_priv_interface *iface, struct sockaddr_un *from, void *buf, size_t len) argument 450 wpa_priv_cmd_set_country(struct wpa_priv_interface *iface, char *buf) argument 463 struct wpa_priv_interface *iface = eloop_ctx; local 540 wpa_priv_interface_deinit(struct wpa_priv_interface *iface) argument 566 struct wpa_priv_interface *iface; local 681 wpa_priv_send_event(struct wpa_priv_interface *iface, int event, const void *data, size_t data_len) argument 707 wpa_priv_send_assoc(struct wpa_priv_interface *iface, int event, union wpa_event_data *data) argument 768 wpa_priv_send_interface_status(struct wpa_priv_interface *iface, union wpa_event_data *data) argument 800 wpa_priv_send_ft_response(struct wpa_priv_interface *iface, union wpa_event_data *data) argument 831 struct wpa_priv_interface *iface = ctx; local 894 struct wpa_priv_interface *iface = ctx; local 966 struct wpa_priv_interface *interfaces = NULL, *iface; local [all...] |
H A D | main_none.c | 22 struct wpa_interface iface; local 34 memset(&iface, 0, sizeof(iface)); 37 if (wpa_supplicant_add_iface(global, &iface) == NULL)
|
H A D | main_symbian.cpp | 24 struct wpa_interface iface; local 36 memset(&iface, 0, sizeof(iface)); 39 if (wpa_supplicant_add_iface(global, &iface) == NULL)
|
/netbsd-6-1-5-RELEASE/external/bsd/wpa/dist/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};
|
/netbsd-6-1-5-RELEASE/usr.sbin/altq/libaltq/ |
H A D | qop_fifoq.c | 171 struct fifoq_interface iface; local 183 memset(&iface, 0, sizeof(iface)); 184 strncpy(iface.fifoq_ifname, ifinfo->ifname, IFNAMSIZ); 186 if (ioctl(fifoq_fd, FIFOQ_IF_ATTACH, &iface) < 0) 193 strncpy(conf.iface.fifoq_ifname, ifinfo->ifname, IFNAMSIZ); 199 LOG(LOG_INFO, 0, "fifoq attached to %s", iface.fifoq_ifname); 207 struct fifoq_interface iface; local 209 memset(&iface, 0, sizeof(iface)); 225 struct fifoq_interface iface; local 238 struct fifoq_interface iface; local [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/wpa/dist/wpa_supplicant/dbus/ |
H A D | dbus_new_introspect.c | 36 struct interfaces *iface; local 38 dl_list_for_each(iface, list, struct interfaces, list) { 39 if (os_strcmp(iface->dbus_interface, dbus_interface) == 0) 40 return iface; /* already in the list */ 43 iface = os_zalloc(sizeof(struct interfaces)); 44 if (!iface) 46 iface->xml = wpabuf_alloc(3000); 47 if (iface->xml == NULL) { 48 os_free(iface); 51 wpabuf_printf(iface 103 struct interfaces *iface; local 117 struct interfaces *iface; local 131 struct interfaces *iface; local 161 struct interfaces *iface, *n; local [all...] |
/netbsd-6-1-5-RELEASE/usr.bin/rump_dhcpclient/ |
H A D | bpf.c | 53 open_socket(struct interface *iface, int protocol) argument 90 strlcpy(ifr.ifr_name, iface->name, sizeof(ifr.ifr_name)); 97 if (iface->buffer_size != (size_t)buf_len) { 98 free(iface->buffer); 99 iface->buffer_size = buf_len; 100 iface->buffer = xmalloc(buf_len); 101 iface->buffer_len = iface->buffer_pos = 0; 114 fdp = &iface->arp_fd; 118 fdp = &iface 137 send_raw_packet(const struct interface *iface, int protocol, const void *data, ssize_t len) argument 161 get_raw_packet(struct interface *iface, int protocol, void *data, ssize_t len) argument [all...] |
H A D | net.h | 85 const struct interface *iface; member in struct:rt 100 #define get_mtu(iface) do_mtu(iface, 0) 101 #define set_mtu(iface, mtu) do_mtu(iface, mtu) 115 #define add_address(iface, addr, net, brd) \ 116 if_address(iface, addr, net, brd, 1) 117 #define del_address(iface, addr, net) \ 118 if_address(iface, addr, net, NULL, -1) 119 #define has_address(iface, add [all...] |
H A D | configure.c | 73 (srt || (!rt->iface || 74 rt->iface->metric == r->iface->metric)) && 116 desc_route("removing", f, f->iface->name); 126 n_route(struct rt *rt, const struct interface *iface) argument 131 !(iface->state->options->options & DHCPCD_GATEWAY)) 134 desc_route("adding", rt, iface->name); 135 if (!add_route(iface, &rt->dest, &rt->net, &rt->gate, iface->metric)) 139 if (rt->dest.s_addr == (iface 151 c_route(struct rt *ort, struct rt *nrt, const struct interface *iface) argument 173 d_route(struct rt *rt, const struct interface *iface, int metric) argument 207 add_subnet_route(struct rt *rt, const struct interface *iface) argument 227 get_routes(const struct interface *iface) argument 258 massage_host_routes(struct rt *rt, const struct interface *iface) argument 270 add_destination_route(struct rt *rt, const struct interface *iface) argument 394 delete_address(struct interface *iface) argument 416 configure(struct interface *iface) argument [all...] |
/netbsd-6-1-5-RELEASE/usr.sbin/iwictl/ |
H A D | iwictl.c | 62 char *iface = NULL; local 67 iface = argv[1]; 77 iface = optarg; 89 if (iface == NULL) 93 get_radio_state(iface); 96 get_statistics(iface); 104 (void)fprintf(stderr, "Usage: %s [-i] iface\n" 105 "\t%s [-i] iface -r\n", getprogname(), getprogname()); 111 do_req(const char *iface, unsigned long req, void *data) argument 121 (void)strncpy(ifr.ifr_name, iface, sizeo 132 get_radio_state(const char *iface) argument 205 get_statistics(const char *iface) argument [all...] |