/external/wpa_supplicant_8/wpa_supplicant/ |
D | wpa_priv.c | 43 static void wpa_priv_cmd_register(struct wpa_priv_interface *iface, in wpa_priv_cmd_register() argument 46 if (iface->drv_priv) { in wpa_priv_cmd_register() 48 if (iface->driver->deinit) in wpa_priv_cmd_register() 49 iface->driver->deinit(iface->drv_priv); in wpa_priv_cmd_register() 50 iface->drv_priv = NULL; in wpa_priv_cmd_register() 51 iface->wpas_registered = 0; in wpa_priv_cmd_register() 54 if (iface->l2) { in wpa_priv_cmd_register() 57 l2_packet_deinit(iface->l2); in wpa_priv_cmd_register() 58 iface->l2 = NULL; in wpa_priv_cmd_register() 61 if (iface->driver->init == NULL) in wpa_priv_cmd_register() [all …]
|
/external/dhcpcd/ |
D | dhcpcd.c | 182 struct interface *iface; in cleanup() local 188 iface = ifaces; in cleanup() 189 ifaces = iface->next; in cleanup() 190 free_interface(iface); in cleanup() 237 drop_dhcp(struct interface *iface, const char *reason) in drop_dhcp() argument 239 free(iface->state->old); in drop_dhcp() 240 iface->state->old = iface->state->new; in drop_dhcp() 241 iface->state->new = NULL; in drop_dhcp() 242 iface->state->reason = reason; in drop_dhcp() 243 configure(iface); in drop_dhcp() [all …]
|
D | arp.c | 48 send_arp(const struct interface *iface, int op, in_addr_t sip, in_addr_t tip) in send_arp() argument 56 ar.ar_hrd = htons(iface->family); in send_arp() 58 ar.ar_hln = iface->hwlen; in send_arp() 63 memcpy(p, iface->hwaddr, iface->hwlen); in send_arp() 64 p += iface->hwlen; in send_arp() 68 retval = iface->hwlen; in send_arp() 74 retval = send_raw_packet(iface, ETHERTYPE_ARP, arp_buffer, len); in send_arp() 79 handle_arp_failure(struct interface *iface) in handle_arp_failure() argument 84 if ((iface->state->offer != NULL && in handle_arp_failure() 85 iface->state->offer->cookie != htonl(MAGIC_COOKIE)) || in handle_arp_failure() [all …]
|
D | ipv4ll.c | 88 struct interface *iface = arg; in start_ipv4ll() local 91 delete_timeout(NULL, iface); in start_ipv4ll() 92 iface->state->probes = 0; in start_ipv4ll() 93 iface->state->claims = 0; in start_ipv4ll() 94 if (iface->addr.s_addr) { in start_ipv4ll() 95 iface->state->conflicts = 0; in start_ipv4ll() 96 if (IN_LINKLOCAL(htonl(iface->addr.s_addr))) { in start_ipv4ll() 97 send_arp_announce(iface); in start_ipv4ll() 102 if (iface->state->offer == NULL) in start_ipv4ll() 105 addr = iface->state->offer->yiaddr; in start_ipv4ll() [all …]
|
D | bpf.c | 52 open_socket(struct interface *iface, int protocol) in open_socket() argument 89 strlcpy(ifr.ifr_name, iface->name, sizeof(ifr.ifr_name)); in open_socket() 96 if (iface->buffer_size != (size_t)buf_len) { in open_socket() 97 free(iface->buffer); in open_socket() 98 iface->buffer_size = buf_len; in open_socket() 99 iface->buffer = xmalloc(buf_len); in open_socket() 100 iface->buffer_len = iface->buffer_pos = 0; in open_socket() 113 fdp = &iface->arp_fd; in open_socket() 117 fdp = &iface->raw_fd; in open_socket() 131 free(iface->buffer); in open_socket() [all …]
|
D | configure.c | 166 make_env(const struct interface *iface, const char *reason, char ***argv) in make_env() argument 170 const struct if_options *ifo = iface->state->options; in make_env() 189 e = strlen("interface") + strlen(iface->name) + 2; in make_env() 191 snprintf(env[0], e, "interface=%s", iface->name); in make_env() 202 snprintf(env[3], e, "ifmetric=%d", iface->metric); in make_env() 204 snprintf(env[4], e, "ifwireless=%d", iface->wireless); in make_env() 206 snprintf(env[5], e, "ifflags=%u", iface->flags); in make_env() 208 snprintf(env[6], e, "ifmtu=%d", get_mtu(iface->name)); in make_env() 224 if ((dhcp && iface->state->new) || (ra && iface->ras)) { in make_env() 231 if (*iface->state->profile) { in make_env() [all …]
|
D | net.h | 86 const struct interface *iface; member 103 #define get_mtu(iface) do_mtu(iface, 0) argument 104 #define set_mtu(iface, mtu) do_mtu(iface, mtu) argument 118 #define add_address(iface, addr, net, brd) \ argument 119 if_address(iface, addr, net, brd, 1) 120 #define del_address(iface, addr, net) \ argument 121 if_address(iface, addr, net, NULL, -1) 122 #define has_address(iface, addr, net) \ argument 123 do_address(iface, addr, net, NULL, 0) 124 #define get_address(iface, addr, net, dst) \ argument [all …]
|
D | lpf.c | 68 open_socket(struct interface *iface, int protocol) in open_socket() argument 89 if (!(su.sll.sll_ifindex = if_nametoindex(iface->name))) { in open_socket() 118 fd = &iface->arp_fd; in open_socket() 120 fd = &iface->raw_fd; in open_socket() 132 send_raw_packet(const struct interface *iface, int protocol, in send_raw_packet() argument 145 if (!(su.sll.sll_ifindex = if_nametoindex(iface->name))) { in send_raw_packet() 149 su.sll.sll_hatype = htons(iface->family); in send_raw_packet() 150 su.sll.sll_halen = iface->hwlen; in send_raw_packet() 151 if (iface->family == ARPHRD_INFINIBAND) in send_raw_packet() 155 memset(&su.sll.sll_addr, 0xff, iface->hwlen); in send_raw_packet() [all …]
|
D | net.c | 204 struct interface *iface = NULL; in init_interface() local 211 iface = xzalloc(sizeof(*iface)); in init_interface() 212 strlcpy(iface->name, ifname, sizeof(iface->name)); in init_interface() 213 iface->flags = ifr.ifr_flags; in init_interface() 216 iface->metric = 200 + if_nametoindex(iface->name); in init_interface() 217 if (getifssid(ifname, iface->ssid) != -1) { in init_interface() 218 iface->wireless = 1; in init_interface() 219 iface->metric += 100; in init_interface() 232 snprintf(iface->leasefile, sizeof(iface->leasefile), in init_interface() 235 iface->raw_fd = -1; in init_interface() [all …]
|
D | bind.c | 123 struct interface *iface = arg; in bind_interface() local 124 struct if_state *state = iface->state; in bind_interface() 130 close_sockets(iface); in bind_interface() 143 iface->name, inet_ntoa(lease->addr)); in bind_interface() 149 iface->name, inet_ntoa(lease->addr)); in bind_interface() 156 lease->addr.s_addr = iface->addr.s_addr; in bind_interface() 157 syslog(LOG_INFO, "%s: received approval for %s", iface->name, in bind_interface() 171 iface->name, inet_ntoa(lease->addr)); in bind_interface() 176 iface->name, DHCP_MIN_LEASE); in bind_interface() 186 iface->name, lease->rebindtime); in bind_interface() [all …]
|
/external/wpa_supplicant_8/src/ap/ |
D | ap_list.c | 32 static int ap_list_beacon_olbc(struct hostapd_iface *iface, struct ap_info *ap) in ap_list_beacon_olbc() argument 36 if (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() 71 ap->next = iface->ap_list; in ap_ap_list_add() [all …]
|
D | hw_features.c | 48 int hostapd_get_hw_features(struct hostapd_iface *iface) in hostapd_get_hw_features() argument 50 struct hostapd_data *hapd = iface->bss[0]; in hostapd_get_hw_features() 66 iface->hw_flags = flags; in hostapd_get_hw_features() 68 hostapd_free_hw_features(iface->hw_features, iface->num_hw_features); in hostapd_get_hw_features() 69 iface->hw_features = modes; in hostapd_get_hw_features() 70 iface->num_hw_features = num_modes; in hostapd_get_hw_features() 105 int hostapd_prepare_rates(struct hostapd_iface *iface, in hostapd_prepare_rates() argument 114 if (iface->conf->basic_rates) in hostapd_prepare_rates() 115 basic_rates = iface->conf->basic_rates; in hostapd_prepare_rates() 137 os_free(iface->basic_rates); in hostapd_prepare_rates() [all …]
|
D | acs.c | 243 static int acs_request_scan(struct hostapd_iface *iface); 261 static void acs_cleanup(struct hostapd_iface *iface) in acs_cleanup() argument 266 for (i = 0; i < iface->current_mode->num_channels; i++) { in acs_cleanup() 267 chan = &iface->current_mode->channels[i]; in acs_cleanup() 277 iface->chans_surveyed = 0; in acs_cleanup() 278 iface->acs_num_completed_scans = 0; in acs_cleanup() 282 void acs_fail(struct hostapd_iface *iface) in acs_fail() argument 285 acs_cleanup(iface); in acs_fail() 323 acs_survey_chan_interference_factor(struct hostapd_iface *iface, in acs_survey_chan_interference_factor() argument 341 iface->lowest_nf); in acs_survey_chan_interference_factor() [all …]
|
D | ieee802_11_ht.c | 33 if (!hapd->iconf->ieee80211n || !hapd->iface->current_mode || in hostapd_eid_ht_capabilities() 43 cap->a_mpdu_params = hapd->iface->current_mode->a_mpdu_params; in hostapd_eid_ht_capabilities() 44 os_memcpy(cap->supported_mcs_set, hapd->iface->current_mode->mcs_set, in hostapd_eid_ht_capabilities() 72 oper->operation_mode = host_to_le16(hapd->iface->ht_op_mode); in hostapd_eid_ht_operation() 97 int hostapd_ht_operation_update(struct hostapd_iface *iface) in hostapd_ht_operation_update() argument 102 if (!iface->conf->ieee80211n || iface->conf->ht_op_mode_fixed) in hostapd_ht_operation_update() 106 __func__, iface->ht_op_mode); in hostapd_ht_operation_update() 108 if (!(iface->ht_op_mode & HT_INFO_OPERATION_MODE_NON_GF_DEVS_PRESENT) in hostapd_ht_operation_update() 109 && iface->num_sta_ht_no_gf) { in hostapd_ht_operation_update() 110 iface->ht_op_mode |= in hostapd_ht_operation_update() [all …]
|
D | hostapd.c | 38 static int hostapd_setup_encryption(char *iface, struct hostapd_data *hapd); 46 int (*cb)(struct hostapd_iface *iface, in hostapd_for_each_interface() argument 53 ret = cb(interfaces->iface[i], ctx); in hostapd_for_each_interface() 74 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 1); in hostapd_reload_bss() 76 hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 0); in hostapd_reload_bss() 94 hostapd_setup_encryption(hapd->conf->iface, hapd); in hostapd_reload_bss() 107 wpa_printf(MSG_DEBUG, "Reconfigured interface %s", hapd->conf->iface); in hostapd_reload_bss() 111 static void hostapd_clear_old(struct hostapd_iface *iface) in hostapd_clear_old() argument 119 for (j = 0; j < iface->num_bss; j++) { in hostapd_clear_old() 120 hostapd_flush_old_stations(iface->bss[j], in hostapd_clear_old() [all …]
|
/external/chromium_org/ppapi/native_client/src/untrusted/pnacl_irt_shim/ |
D | pnacl_shim.c | 253 const struct PPB_Console_1_0 *iface = Pnacl_WrapperInfo_PPB_Console_1_0.real_iface; in Pnacl_M25_PPB_Console_Log() local 254 iface->Log(instance, level, *value); in Pnacl_M25_PPB_Console_Log() 258 const struct PPB_Console_1_0 *iface = Pnacl_WrapperInfo_PPB_Console_1_0.real_iface; in Pnacl_M25_PPB_Console_LogWithSource() local 259 iface->LogWithSource(instance, level, *source, *value); in Pnacl_M25_PPB_Console_LogWithSource() 267 const struct PPB_Core_1_0 *iface = Pnacl_WrapperInfo_PPB_Core_1_0.real_iface; in Pnacl_M14_PPB_Core_AddRefResource() local 268 iface->AddRefResource(resource); in Pnacl_M14_PPB_Core_AddRefResource() 272 const struct PPB_Core_1_0 *iface = Pnacl_WrapperInfo_PPB_Core_1_0.real_iface; in Pnacl_M14_PPB_Core_ReleaseResource() local 273 iface->ReleaseResource(resource); in Pnacl_M14_PPB_Core_ReleaseResource() 277 const struct PPB_Core_1_0 *iface = Pnacl_WrapperInfo_PPB_Core_1_0.real_iface; in Pnacl_M14_PPB_Core_GetTime() local 278 return iface->GetTime(); in Pnacl_M14_PPB_Core_GetTime() [all …]
|
/external/libsepol/src/ |
D | iface_record.c | 56 const sepol_iface_t * iface, in hidden_def() 60 if (sepol_iface_key_create(handle, iface->name, key_ptr) < 0) { in hidden_def() 62 "interface %s", iface->name); in hidden_def() 74 int sepol_iface_compare(const sepol_iface_t * iface, in sepol_iface_compare() argument 78 return strcmp(iface->name, key->name); in sepol_iface_compare() 81 int sepol_iface_compare2(const sepol_iface_t * iface, in sepol_iface_compare2() argument 85 return strcmp(iface->name, iface2->name); in sepol_iface_compare2() 89 int sepol_iface_create(sepol_handle_t * handle, sepol_iface_t ** iface) in sepol_iface_create() argument 104 *iface = tmp_iface; in sepol_iface_create() 112 const char *sepol_iface_get_name(const sepol_iface_t * iface) in hidden_def() [all …]
|
D | interfaces.c | 14 ocontext_t ** iface, const sepol_iface_t * record) in iface_from_record() argument 47 *iface = tmp_iface; in iface_from_record() 68 ocontext_t * iface, sepol_iface_t ** record) in iface_to_record() argument 71 char *name = iface->u.name; in iface_to_record() 72 context_struct_t *ifcon = &iface->context[0]; in iface_to_record() 73 context_struct_t *msgcon = &iface->context[1]; in iface_to_record() 172 ocontext_t *head, *prev, *c, *iface = NULL; in sepol_iface_modify() local 177 if (iface_from_record(handle, policydb, &iface, data) < 0) in sepol_iface_modify() 186 iface->next = c->next; in sepol_iface_modify() 188 policydb->ocontexts[OCON_NETIF] = iface; in sepol_iface_modify() [all …]
|
/external/chromium_org/ppapi/generators/ |
D | idl_gen_wrapper.py | 21 def ChoosePPFunc(iface, ppb_func, ppp_func): argument 22 name = iface.node.GetName() 227 for iface in ifaces: 228 releases_for_iface = iface.GetUniqueReleases(releases) 230 version = iface.GetVersion(release) 231 struct_name = self.cgen.GetStructName(iface, release, 233 needs_wrap = self.InterfaceVersionNeedsWrapping(iface, version) 239 Interface(iface, release, version, 259 for iface in iface_releases: 260 header_files.add(iface.header_file) [all …]
|
/external/libppp/src/ |
D | iface.c | 91 struct iface * 101 struct iface *iface; in iface_Create() local 139 iface = NULL; in iface_Create() 142 while (ptr < end && iface == NULL) { in iface_Create() 148 iface = (struct iface *)malloc(sizeof *iface); in iface_Create() 149 if (iface == NULL) { in iface_Create() 153 iface->name = strdup(name); in iface_Create() 154 iface->index = ifm->ifm_index; in iface_Create() 155 iface->flags = ifm->ifm_flags; in iface_Create() 156 iface->mtu = 0; in iface_Create() [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/dbus/ |
D | 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->xml = wpabuf_alloc(6000); in add_interface() 41 if (iface->xml == NULL) { in add_interface() 42 os_free(iface); in add_interface() 45 wpabuf_printf(iface->xml, "<interface name=\"%s\">", dbus_interface); in add_interface() [all …]
|
/external/libvpx/libvpx/vpx/src/ |
D | vpx_decoder.c | 22 vpx_codec_iface_t *iface, in vpx_codec_dec_init_ver() argument 30 else if (!ctx || !iface) in vpx_codec_dec_init_ver() 32 else if (iface->abi_version != VPX_CODEC_INTERNAL_ABI_VERSION) in vpx_codec_dec_init_ver() 34 else if ((flags & VPX_CODEC_USE_XMA) && !(iface->caps & VPX_CODEC_CAP_XMA)) in vpx_codec_dec_init_ver() 36 else if ((flags & VPX_CODEC_USE_POSTPROC) && !(iface->caps & VPX_CODEC_CAP_POSTPROC)) in vpx_codec_dec_init_ver() 39 !(iface->caps & VPX_CODEC_CAP_ERROR_CONCEALMENT)) in vpx_codec_dec_init_ver() 42 !(iface->caps & VPX_CODEC_CAP_INPUT_FRAGMENTS)) in vpx_codec_dec_init_ver() 44 else if (!(iface->caps & VPX_CODEC_CAP_DECODER)) in vpx_codec_dec_init_ver() 48 ctx->iface = iface; in vpx_codec_dec_init_ver() 49 ctx->name = iface->name; in vpx_codec_dec_init_ver() [all …]
|
D | vpx_encoder.c | 24 vpx_codec_iface_t *iface, in vpx_codec_enc_init_ver() argument 32 else if (!ctx || !iface || !cfg) in vpx_codec_enc_init_ver() 34 else if (iface->abi_version != VPX_CODEC_INTERNAL_ABI_VERSION) in vpx_codec_enc_init_ver() 36 else if (!(iface->caps & VPX_CODEC_CAP_ENCODER)) in vpx_codec_enc_init_ver() 38 else if ((flags & VPX_CODEC_USE_XMA) && !(iface->caps & VPX_CODEC_CAP_XMA)) in vpx_codec_enc_init_ver() 41 && !(iface->caps & VPX_CODEC_CAP_PSNR)) in vpx_codec_enc_init_ver() 44 && !(iface->caps & VPX_CODEC_CAP_OUTPUT_PARTITION)) in vpx_codec_enc_init_ver() 47 ctx->iface = iface; in vpx_codec_enc_init_ver() 48 ctx->name = iface->name; in vpx_codec_enc_init_ver() 52 res = ctx->iface->init(ctx, NULL); in vpx_codec_enc_init_ver() [all …]
|
/external/libsepol/include/sepol/ |
D | iface_record.h | 13 extern int sepol_iface_compare(const sepol_iface_t * iface, 16 extern int sepol_iface_compare2(const sepol_iface_t * iface, 27 const sepol_iface_t * iface, 33 extern const char *sepol_iface_get_name(const sepol_iface_t * iface); 36 sepol_iface_t * iface, const char *name); 39 extern sepol_context_t *sepol_iface_get_ifcon(const sepol_iface_t * iface); 42 sepol_iface_t * iface, sepol_context_t * con); 44 extern sepol_context_t *sepol_iface_get_msgcon(const sepol_iface_t * iface); 47 sepol_iface_t * iface, sepol_context_t * con); 54 const sepol_iface_t * iface, [all …]
|
/external/wpa_supplicant_8/hostapd/ |
D | main.c | 101 hapd->conf->iface, MAC2STR(addr), in hostapd_logger_cb() 105 hapd->conf->iface, module_str ? " " : "", in hostapd_logger_cb() 210 static int hostapd_driver_init(struct hostapd_iface *iface) in hostapd_driver_init() argument 214 struct hostapd_data *hapd = iface->bss[0]; in hostapd_driver_init() 248 params.ifname = hapd->conf->iface; in hostapd_driver_init() 254 params.num_bridge = hapd->iface->num_bss; in hostapd_driver_init() 255 params.bridge = os_calloc(hapd->iface->num_bss, sizeof(char *)); in hostapd_driver_init() 258 for (i = 0; i < hapd->iface->num_bss; i++) { in hostapd_driver_init() 259 struct hostapd_data *bss = hapd->iface->bss[i]; in hostapd_driver_init() 277 iface->drv_flags = capa.flags; in hostapd_driver_init() [all …]
|