/external/wpa_supplicant_8/src/common/ |
D | wpa_helpers.c | 22 static struct wpa_ctrl * wpa_open_ctrl(const char *ifname) in wpa_open_ctrl() argument 27 os_snprintf(buf, sizeof(buf), "%s%s", wpas_ctrl_path, ifname); in wpa_open_ctrl() 35 int wpa_command(const char *ifname, const char *cmd) in wpa_command() argument 41 printf("wpa_command(ifname='%s', cmd='%s')\n", ifname, cmd); in wpa_command() 42 ctrl = wpa_open_ctrl(ifname); in wpa_command() 61 int wpa_command_resp(const char *ifname, const char *cmd, in wpa_command_resp() argument 67 printf("wpa_command(ifname='%s', cmd='%s')\n", ifname, cmd); in wpa_command_resp() 68 ctrl = wpa_open_ctrl(ifname); in wpa_command_resp() 83 struct wpa_ctrl * open_wpa_mon(const char *ifname) in open_wpa_mon() argument 87 ctrl = wpa_open_ctrl(ifname); in open_wpa_mon() [all …]
|
D | wpa_helpers.h | 13 int wpa_command(const char *ifname, const char *cmd); 14 int wpa_command_resp(const char *ifname, const char *cmd, 16 int get_wpa_status(const char *ifname, const char *field, char *obuf, 19 struct wpa_ctrl * open_wpa_mon(const char *ifname); 20 int wait_ip_addr(const char *ifname, int timeout); 27 int add_network(const char *ifname); 28 int set_network(const char *ifname, int id, const char *field, 30 int set_network_quoted(const char *ifname, int id, const char *field, 32 int add_cred(const char *ifname); 33 int set_cred(const char *ifname, int id, const char *field, const char *value); [all …]
|
/external/wpa_supplicant_8/src/drivers/ |
D | linux_ioctl.c | 18 int linux_set_iface_flags(int sock, const char *ifname, int dev_up) in linux_set_iface_flags() argument 27 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_set_iface_flags() 32 ifname, strerror(errno)); in linux_set_iface_flags() 50 ifname, dev_up ? "UP" : "DOWN", strerror(errno)); in linux_set_iface_flags() 58 int linux_iface_up(int sock, const char *ifname) in linux_iface_up() argument 67 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_iface_up() 72 ifname, strerror(errno)); in linux_iface_up() 80 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr) in linux_get_ifhwaddr() argument 85 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in linux_get_ifhwaddr() 88 ifname, strerror(errno)); in linux_get_ifhwaddr() [all …]
|
D | driver_wired.c | 49 char ifname[IFNAMSIZ + 1]; member 222 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name)); in wired_init_sockets() 248 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name)); in wired_init_sockets() 290 os_strlcpy(ifr.ifr_ifrn.ifrn_name, drv->ifname, IFNAMSIZ); in wired_init_sockets() 361 os_strlcpy(drv->ifname, params->ifname, sizeof(drv->ifname)); in wired_driver_hapd_init() 410 static int wpa_driver_wired_get_ifflags(const char *ifname, int *flags) in wpa_driver_wired_get_ifflags() argument 422 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wired_get_ifflags() 434 static int wpa_driver_wired_set_ifflags(const char *ifname, int flags) in wpa_driver_wired_set_ifflags() argument 446 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in wpa_driver_wired_set_ifflags() 459 static int wpa_driver_wired_get_ifstatus(const char *ifname, int *status) in wpa_driver_wired_get_ifstatus() argument [all …]
|
D | linux_ioctl.h | 12 int linux_set_iface_flags(int sock, const char *ifname, int dev_up); 13 int linux_iface_up(int sock, const char *ifname); 14 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr); 15 int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr); 18 int linux_br_add_if(int sock, const char *brname, const char *ifname); 19 int linux_br_del_if(int sock, const char *brname, const char *ifname); 20 int linux_br_get(char *brname, const char *ifname);
|
D | driver_openbsd.c | 21 char ifname[IFNAMSIZ + 1]; member 36 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name)); in wpa_driver_openbsd_get_ssid() 52 os_strlcpy(id.i_name, drv->ifname, sizeof(id.i_name)); in wpa_driver_openbsd_get_bssid() 71 wpa_driver_openbsd_set_key(const char *ifname, void *priv, enum wpa_alg alg, in wpa_driver_openbsd_set_key() argument 82 os_strlcpy(keyavail.i_name, drv->ifname, sizeof(keyavail.i_name)); in wpa_driver_openbsd_set_key() 94 wpa_driver_openbsd_init(void *ctx, const char *ifname) in wpa_driver_openbsd_init() argument 107 os_strlcpy(drv->ifname, ifname, sizeof(drv->ifname)); in wpa_driver_openbsd_init()
|
D | driver_roboswitch.c | 58 char ifname[IFNAMSIZ + 1]; member 211 sep = drv->ifname + os_strlen(drv->ifname); in wpa_driver_roboswitch_set_param() 213 drv->l2 = l2_packet_init(drv->ifname, NULL, ETH_P_ALL, in wpa_driver_roboswitch_set_param() 218 __func__, drv->ifname); in wpa_driver_roboswitch_set_param() 234 return drv->ifname; in wpa_driver_roboswitch_get_ifname() 347 static void * wpa_driver_roboswitch_init(void *ctx, const char *ifname) in wpa_driver_roboswitch_init() argument 359 sep = drv->ifname + in wpa_driver_roboswitch_init() 360 os_strlcpy(drv->ifname, ifname, sizeof(drv->ifname)) - 2; in wpa_driver_roboswitch_init() 362 while (sep > drv->ifname && *sep != '.') sep--; in wpa_driver_roboswitch_init() 363 if (sep <= drv->ifname) { in wpa_driver_roboswitch_init() [all …]
|
D | driver_macsec_qca.c | 58 char ifname[IFNAMSIZ + 1]; member 127 static int macsec_qca_get_ifflags(const char *ifname, int *flags) in macsec_qca_get_ifflags() argument 139 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in macsec_qca_get_ifflags() 151 static int macsec_qca_set_ifflags(const char *ifname, int flags) in macsec_qca_set_ifflags() argument 163 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in macsec_qca_set_ifflags() 176 static int macsec_qca_get_ifstatus(const char *ifname, int *status) in macsec_qca_get_ifstatus() argument 188 os_strlcpy(ifmr.ifm_name, ifname, IFNAMSIZ); in macsec_qca_get_ifstatus() 203 static int macsec_qca_multi(const char *ifname, const u8 *addr, int add) in macsec_qca_multi() argument 219 os_strlcpy(ifr.ifr_name, ifname, IFNAMSIZ); in macsec_qca_multi() 304 static void * macsec_qca_init(void *ctx, const char *ifname) in macsec_qca_init() argument [all …]
|
D | driver_wext.c | 48 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_auth_param() 78 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_bssid() 103 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_bssid() 132 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_get_ssid() 174 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_ssid() 216 os_strlcpy(iwr.ifr_name, drv->ifname, IFNAMSIZ); in wpa_driver_wext_set_freq() 546 if (len > sizeof(event.interface_status.ifname)) in wpa_driver_wext_event_link() 547 len = sizeof(event.interface_status.ifname) - 1; in wpa_driver_wext_event_link() 548 os_memcpy(event.interface_status.ifname, buf, len); in wpa_driver_wext_event_link() 554 event.interface_status.ifname, in wpa_driver_wext_event_link() [all …]
|
D | driver_wext.h | 19 char ifname[IFNAMSIZ + 1]; member 55 int wpa_driver_wext_set_key(const char *ifname, void *priv, enum wpa_alg alg, 65 const char *ifname); 67 void * wpa_driver_wext_init(void *ctx, const char *ifname);
|
D | driver_bsd.c | 56 char ifname[IFNAMSIZ+1]; /* interface name */ member 78 os_strlcpy(ireq.i_name, drv->ifname, sizeof(ireq.i_name)); in bsd_set80211() 100 os_strlcpy(ireq->i_name, drv->ifname, sizeof(ireq->i_name)); in bsd_get80211() 144 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name)); in bsd_get_ssid() 167 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name)); in bsd_set_ssid() 182 os_strlcpy(ifmr.ifm_name, drv->ifname, sizeof(ifmr.ifm_name)); in bsd_get_if_media() 200 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name)); in bsd_set_if_media() 264 os_strlcpy(ifr.ifr_name, drv->ifname, sizeof(ifr.ifr_name)); in bsd_ctrl_iface() 290 bsd_set_key(const char *ifname, void *priv, enum wpa_alg alg, in bsd_set_key() argument 569 os_strlcpy(creq.i_name, drv->ifname, sizeof(creq.i_name)); in bsd_set_freq() [all …]
|
/external/compiler-rt/test/msan/ |
D | if_indextoname.cc | 14 char ifname[IF_NAMESIZE + 1]; in main() local 15 assert(0 == __msan_test_shadow(ifname, sizeof(ifname))); in main() 16 if (!if_indextoname(1, ifname)) { in main() 21 assert(strlen(ifname) + 1 == __msan_test_shadow(ifname, sizeof(ifname))); in main()
|
/external/wpa_supplicant_8/src/ap/ |
D | vlan_init.c | 477 static void vlan_newlink(char *ifname, struct hostapd_data *hapd) in vlan_newlink() argument 485 wpa_printf(MSG_DEBUG, "VLAN: vlan_newlink(%s)", ifname); in vlan_newlink() 488 if (os_strcmp(ifname, vlan->ifname) == 0) { in vlan_newlink() 531 if (!br_addif(br_name, ifname)) in vlan_newlink() 534 ifconfig_up(ifname); in vlan_newlink() 543 static void vlan_dellink(char *ifname, struct hostapd_data *hapd) in vlan_dellink() argument 551 wpa_printf(MSG_DEBUG, "VLAN: vlan_dellink(%s)", ifname); in vlan_dellink() 556 if (os_strcmp(ifname, vlan->ifname) == 0) { in vlan_dellink() 571 br_delif(br_name, vlan->ifname); in vlan_dellink() 636 char ifname[IFNAMSIZ + 1]; in vlan_read_ifnames() local [all …]
|
D | preauth_auth.c | 36 char *ifname; member 51 "from interface '%s'", piface->ifname); in rsn_preauth_receive() 97 static int rsn_preauth_iface_add(struct hostapd_data *hapd, const char *ifname) in rsn_preauth_iface_add() argument 101 wpa_printf(MSG_DEBUG, "RSN pre-auth interface '%s'", ifname); in rsn_preauth_iface_add() 108 piface->ifname = os_strdup(ifname); in rsn_preauth_iface_add() 109 if (piface->ifname == NULL) { in rsn_preauth_iface_add() 113 piface->l2 = l2_packet_init(piface->ifname, NULL, ETH_P_PREAUTH, in rsn_preauth_iface_add() 126 os_free(piface->ifname); in rsn_preauth_iface_add() 143 os_free(prev->ifname); in rsn_preauth_iface_deinit()
|
/external/wpa_supplicant_8/src/l2_packet/ |
D | l2_packet_pcap.c | 33 char ifname[100]; member 55 l2->eth = eth_open(l2->ifname); in l2_packet_init_libdnet() 57 printf("Failed to open interface '%s'.\n", l2->ifname); in l2_packet_init_libdnet() 64 l2->ifname); in l2_packet_init_libdnet() 204 char ifname[128]; in l2_packet_init_libpcap() local 205 os_snprintf(ifname, sizeof(ifname), "\\Device\\NPF_%s", l2->ifname); in l2_packet_init_libpcap() 206 pcap_lookupnet(ifname, &pcap_netp, &pcap_maskp, pcap_err); in l2_packet_init_libpcap() 207 l2->pcap = pcap_open_live(ifname, 2500, 0, 10, pcap_err); in l2_packet_init_libpcap() 210 fprintf(stderr, "ifname='%s'\n", ifname); in l2_packet_init_libpcap() 217 pcap_lookupnet(l2->ifname, &pcap_netp, &pcap_maskp, pcap_err); in l2_packet_init_libpcap() [all …]
|
D | l2_packet_freebsd.c | 38 char ifname[100]; member 109 pcap_lookupnet(l2->ifname, &pcap_netp, &pcap_maskp, pcap_err); in l2_packet_init_libpcap() 110 l2->pcap = pcap_open_live(l2->ifname, 2500, 0, 10, pcap_err); in l2_packet_init_libpcap() 113 fprintf(stderr, "ifname='%s'\n", l2->ifname); in l2_packet_init_libpcap() 151 __func__, l2->ifname, strerror(errno)); in l2_packet_init_libpcap() 228 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument 238 os_strlcpy(l2->ifname, ifname, sizeof(l2->ifname)); in l2_packet_init() 243 if (eth_get(l2->ifname, l2->own_addr) < 0) { in l2_packet_init() 245 "interface '%s'.\n", l2->ifname); in l2_packet_init() 286 if (os_strcmp(dev->name, l2->ifname) != 0) in l2_packet_get_ip_addr()
|
D | l2_packet_winpcap.c | 50 char ifname[100]; member 168 pcap_lookupnet(l2->ifname, &pcap_netp, &pcap_maskp, pcap_err); in l2_packet_init_libpcap() 169 l2->pcap = pcap_open_live(l2->ifname, 2500, 0, 1, pcap_err); in l2_packet_init_libpcap() 172 fprintf(stderr, "ifname='%s'\n", l2->ifname); in l2_packet_init_libpcap() 199 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument 210 if (os_strncmp(ifname, "\\Device\\NPF_", 12) == 0) in l2_packet_init() 211 os_strlcpy(l2->ifname, ifname, sizeof(l2->ifname)); in l2_packet_init() 213 os_snprintf(l2->ifname, sizeof(l2->ifname), "\\Device\\NPF_%s", in l2_packet_init() 214 ifname); in l2_packet_init() 309 if (os_strcmp(dev->name, l2->ifname) != 0) in l2_packet_get_ip_addr()
|
D | l2_packet_none.c | 19 char ifname[17]; member 68 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument 78 os_strlcpy(l2->ifname, ifname, sizeof(l2->ifname)); in l2_packet_init()
|
D | l2_packet_linux.c | 21 char ifname[IFNAMSIZ + 1]; member 92 const char *ifname, const u8 *own_addr, unsigned short protocol, in l2_packet_init() argument 104 os_strlcpy(l2->ifname, ifname, sizeof(l2->ifname)); in l2_packet_init() 118 os_strlcpy(ifr.ifr_name, l2->ifname, sizeof(ifr.ifr_name)); in l2_packet_init() 183 os_strlcpy(ifr.ifr_name, l2->ifname, sizeof(ifr.ifr_name)); in l2_packet_get_ip_addr()
|
/external/dhcpcd/ |
D | platform-linux.c | 127 check_ipv6(const char *ifname) in check_ipv6() argument 132 if (ifname == NULL) in check_ipv6() 133 ifname = "all"; in check_ipv6() 135 snprintf(path, sizeof(path), "%s/%s/accept_ra", prefix, ifname); in check_ipv6() 139 "%s: not configured to accept IPv6 RAs", ifname); in check_ipv6() 145 prefix, ifname); in check_ipv6() 148 "%s: configured as a router, not a host", ifname); in check_ipv6()
|
D | if-linux-wireless.c | 62 int getifssid(const char *ifname, char *ssid); 65 getifssid(const char *ifname, char *ssid) in getifssid() argument 74 strlcpy(iwr.ifr_name, ifname, sizeof(iwr.ifr_name)); in getifssid() 87 ifname = ssid; in getifssid()
|
D | if-bsd.c | 115 getifssid(const char *ifname, char *ssid) in getifssid() argument 128 strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in getifssid() 138 strlcpy(ireq.i_name, ifname, sizeof(ireq.i_name)); in getifssid() 315 char ifname[IF_NAMESIZE]; in manage_link() local 366 memset(ifname, 0, sizeof(ifname)); in manage_link() 367 if (!(if_indextoname(ifm->ifm_index, ifname))) in manage_link() 387 handle_carrier(len, ifm->ifm_flags, ifname); in manage_link() 413 if (!if_indextoname(ifam->ifam_index, ifname)) in manage_link() 429 handle_hwaddr(ifname, hwaddr, in manage_link() 438 handle_ifa(rtm->rtm_type, ifname, in manage_link()
|
/external/android-clat/ |
D | setif.c | 39 int add_address(const char *ifname, int family, const void *address, int prefixlen, const void *bro… in add_address() argument 52 if (!(ifa.ifa_index = if_nametoindex(ifname))) { in add_address() 101 int if_up(const char *ifname, int mtu) { in if_up() argument 107 if (!(ifi.ifi_index = if_nametoindex(ifname))) { in if_up() 161 int add_anycast_address(int sock, struct in6_addr *addr, const char *ifname) { in add_anycast_address() argument 164 ifindex = if_nametoindex(ifname); in add_anycast_address() 166 logmsg(ANDROID_LOG_ERROR, "%s: unknown ifindex for interface %s", __func__, ifname); in add_anycast_address()
|
/external/ppp/pppd/plugins/rp-pppoe/ |
D | if.c | 147 getHWaddr(int sock, char const *ifname, unsigned char *hwaddr) in getHWaddr() argument 173 !strncmp(ifname, ifr->ifr_name, sizeof(ifr->ifr_name))) { in getHWaddr() 176 sprintf(buffer, "interface %.16s has more than one ethernet address", ifname); in getHWaddr() 187 sprintf(buffer, "interface %.16s has no ethernet address", ifname); in getHWaddr() 275 openInterface(char const *ifname, UINT16_t type, unsigned char *hwaddr) in openInterface() argument 324 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in openInterface() 330 sprintf(buffer, "Interface %.16s is not up\n", ifname); in openInterface() 338 getHWaddr(sock, ifname, hwaddr); in openInterface() 343 strncpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); in openInterface() 350 ifname, ifr.ifr_mtu, ETH_DATA_LEN); in openInterface() [all …]
|
/external/wpa_supplicant_8/hs20/client/ |
D | osu_client.c | 732 if (wpa_command(ctx->ifname, cmd) < 0) in remove_sp_creds() 750 if (set_cred_quoted(ctx->ifname, id, "excluded_ssid", txt) < 0) in set_pps_cred_policy_spe() 816 if (set_cred_quoted(ctx->ifname, id, "roaming_partner", val) < 0) in set_pps_cred_policy_prp() 887 set_cred(ctx->ifname, id, "min_dl_bandwidth_home", dl) < 0) in set_pps_cred_policy_min_backhaul() 890 set_cred(ctx->ifname, id, "min_ul_bandwidth_home", ul) < 0) in set_pps_cred_policy_min_backhaul() 894 set_cred(ctx->ifname, id, "min_dl_bandwidth_roaming", dl) < in set_pps_cred_policy_min_backhaul() 898 set_cred(ctx->ifname, id, "min_ul_bandwidth_roaming", ul) < in set_pps_cred_policy_min_backhaul() 973 if (set_cred(ctx->ifname, id, "req_conn_capab", buf) < 0) in set_pps_cred_policy_required_proto_port() 1001 if (set_cred(ctx->ifname, id, "max_bss_load", str) < 0) in set_pps_cred_policy_max_bss_load() 1043 if (set_cred(ctx->ifname, id, "sp_priority", str) < 0) in set_pps_cred_priority() [all …]
|