/external/wpa_supplicant_8/src/ap/ |
D | vlan_ioctl.c | 19 int vlan_rem(const char *if_name) in vlan_rem() argument 24 wpa_printf(MSG_DEBUG, "VLAN: vlan_rem(%s)", if_name); in vlan_rem() 25 if ((os_strlen(if_name) + 1) > sizeof(if_request.device1)) { in vlan_rem() 27 if_name); in vlan_rem() 39 os_strlcpy(if_request.device1, if_name, sizeof(if_request.device1)); in vlan_rem() 44 "%s", __func__, if_name, strerror(errno)); in vlan_rem() 62 int vlan_add(const char *if_name, int vid, const char *vlan_if_name) in vlan_add() argument 68 if_name, vid); in vlan_add() 69 ifconfig_up(if_name); in vlan_add() 71 if ((os_strlen(if_name) + 1) > sizeof(if_request.device1)) { in vlan_add() [all …]
|
D | vlan_util.c | 24 int vlan_add(const char *if_name, int vid, const char *vlan_if_name) in vlan_add() argument 32 "vlan_if_name=%s)", if_name, vid, vlan_if_name); in vlan_add() 34 if ((os_strlen(if_name) + 1) > IFNAMSIZ) { in vlan_add() 36 if_name); in vlan_add() 59 err = rtnl_link_get_kernel(handle, 0, if_name, &rlink); in vlan_add() 63 if_name); in vlan_add() 108 vlan_if_name, vid, if_name, if_idx, in vlan_add() 124 int vlan_rem(const char *if_name) in vlan_rem() argument 130 wpa_printf(MSG_DEBUG, "VLAN: vlan_rem(if_name=%s)", if_name); in vlan_rem() 145 err = rtnl_link_get_kernel(handle, 0, if_name, &rlink); in vlan_rem() [all …]
|
D | vlan_ifconfig.c | 19 int ifconfig_helper(const char *if_name, int up) in ifconfig_helper() argument 31 os_strlcpy(ifr.ifr_name, if_name, IFNAMSIZ); in ifconfig_helper() 36 __func__, if_name, strerror(errno)); in ifconfig_helper() 49 __func__, if_name, up, strerror(errno)); in ifconfig_helper() 59 int ifconfig_up(const char *if_name) in ifconfig_up() argument 61 wpa_printf(MSG_DEBUG, "VLAN: Set interface %s up", if_name); in ifconfig_up() 62 return ifconfig_helper(if_name, 1); in ifconfig_up()
|
D | vlan_util.h | 16 int vlan_add(const char *if_name, int vid, const char *vlan_if_name); 17 int vlan_rem(const char *if_name); 20 int ifconfig_helper(const char *if_name, int up); 21 int ifconfig_up(const char *if_name);
|
D | vlan_full.c | 120 static int ifconfig_down(const char *if_name) in ifconfig_down() argument 122 wpa_printf(MSG_DEBUG, "VLAN: Set interface %s down", if_name); in ifconfig_down() 123 return ifconfig_helper(if_name, 0); in ifconfig_down() 133 static int br_delif(const char *br_name, const char *if_name) in br_delif() argument 140 wpa_printf(MSG_DEBUG, "VLAN: br_delif(%s, %s)", br_name, if_name); in br_delif() 147 if (linux_br_del_if(fd, br_name, if_name) == 0) in br_delif() 150 if_index = if_nametoindex(if_name); in br_delif() 155 __func__, if_name); in br_delif() 170 "%s", __func__, br_name, if_name, strerror(errno)); in br_delif() 188 static int br_addif(const char *br_name, const char *if_name) in br_addif() argument [all …]
|
/external/linux-kselftest/tools/testing/selftests/net/forwarding/ |
D | lib.sh | 342 local if_name=$1 351 ip address $add_del $addrstr dev $if_name 357 local if_name=$1; shift 361 ip link set dev $if_name master $vrf_name 362 ip link set dev $if_name up 364 __addr_add_del $if_name add "${addrs[@]}" 369 local if_name=$1; shift 372 __addr_add_del $if_name del "${addrs[@]}" 374 ip link set dev $if_name down 375 ip link set dev $if_name nomaster [all …]
|
D | mirror_gre_bridge_1q_lag.sh | 61 local if_name=$1; shift 68 vlan_create $if_name $vid $vrf_name "${ips[@]}" 73 local if_name=$1; shift 77 vlan_destroy $if_name $vid
|
D | mirror_gre_lag_lacp.sh | 59 local if_name=$1; shift 66 vlan_create $if_name $vid $vrf_name "${ips[@]}" 71 local if_name=$1; shift 75 vlan_destroy $if_name $vid
|
/external/autotest/server/ |
D | site_linux_system.py | 106 if_name=interface.if_name, 110 self.iw_runner.remove_interface(interface.if_name) 251 if net_dev.if_name == interface: 262 self.release_interface(net_dev.if_name) 266 self.remove_interface(net_dev.if_name) 327 if net_dev.if_name == self._capture_interface][0] 454 if net_dev.if_name == same_phy_as: 477 if net_dev.if_name == name]) 478 if_name = lambda index: '%s%d' % (phytype, index) function 480 while name_exists(if_name(if_index)): [all …]
|
/external/u-boot/cmd/ |
D | blk_common.c | 18 const char *if_name = blk_get_if_type_name(if_type); in blk_common_cmd() local 30 printf("\nno %s devices available\n", if_name); in blk_common_cmd() 36 printf("\nno %s devices available\n", if_name); in blk_common_cmd() 56 if_name, dev); in blk_common_cmd() 71 if_name, *cur_devnump, blk, cnt); in blk_common_cmd() 86 if_name, *cur_devnump, blk, cnt); in blk_common_cmd()
|
/external/ltp/testcases/network/lib6/ |
D | in6_02.c | 184 if (!p || strcmp(p, pini[i].if_name)) { in if_nameindex_test() 187 pini[i].if_index, pini[i].if_name, in if_nameindex_test() 191 idx = if_nametoindex(pini[i].if_name); in if_nameindex_test() 195 pini[i].if_index, pini[i].if_name, in if_nameindex_test() 196 pini[i].if_name, idx); in if_nameindex_test() 200 pini[i].if_index, pini[i].if_name); in if_nameindex_test()
|
/external/webrtc/webrtc/base/ |
D | fakenetwork.h | 42 void AddInterface(const SocketAddress& iface, const std::string& if_name) { in AddInterface() argument 43 AddInterface(iface, if_name, ADAPTER_TYPE_UNKNOWN); in AddInterface() 47 const std::string& if_name, in AddInterface() argument 49 SocketAddress address(if_name, 0); in AddInterface()
|
D | network_unittest.cc | 113 char* if_name, in AddIpv6Address() argument 119 if_addr->ifa_name = if_name; in AddIpv6Address() 720 char if_name[20] = "rmnet0"; in TEST_F() local 722 list = AddIpv6Address(list, if_name, "1000:2000:3000:4000:0:0:0:1", in TEST_F() 724 list = AddIpv6Address(list, if_name, "1000:2000:3000:4000:0:0:0:2", in TEST_F()
|
/external/wpa_supplicant_8/hostapd/ |
D | main.c | 262 hostapd_interface_init(struct hapd_interfaces *interfaces, const char *if_name, in hostapd_interface_init() argument 273 if (if_name) { in hostapd_interface_init() 274 os_strlcpy(iface->conf->bss[0]->iface, if_name, in hostapd_interface_init() 565 char *if_name, *tmp, **nnames; in hostapd_get_interface_names() local 570 if_name = strtok_r(arg, ",", &tmp); in hostapd_get_interface_names() 572 while (if_name) { in hostapd_get_interface_names() 579 (*if_names)[*if_names_size] = os_strdup(if_name); in hostapd_get_interface_names() 583 if_name = strtok_r(NULL, ",", &tmp); in hostapd_get_interface_names() 820 char *if_name = NULL; in main() local 823 if_name = if_names[i]; in main() [all …]
|
/external/autotest/client/common_lib/cros/network/ |
D | iw_runner.py | 308 if iw_if.if_name == interface_name] 506 if_name = None 512 if_name = None 519 if_name = m.group(1) 521 if not if_name: 527 interfaces.append(IwNetDev(phy=phy, if_name=if_name, 530 if_name = None
|
/external/libpcap/ |
D | pcap-dlpi.c | 1810 char if_name[sizeof(ifnet.if_name) + 1]; local 1840 dlpi_kread(kd, (off_t)ifnet.if_name, 1841 if_name, sizeof(ifnet.if_name), ebuf) < 0) { 1845 if_name[sizeof(ifnet.if_name)] = '\0'; 1846 if (strcmp(if_name, ifname) == 0 && ifnet.if_unit == unit) {
|
/external/selinux/python/sepolgen/src/sepolgen/ |
D | module.py | 63 def if_name(self): member in ModuleTree 86 open(self.if_name(), "w").close()
|
/external/autotest/client/deps/lansim/src/py/ |
D | tuntap.py | 37 def pack_struct_ifreq(if_name, argname, *args): argument 53 return struct.pack(IFNAMSIZ_FMT + STRUCT_IFREQ_FMT[argname], if_name, *args)
|
/external/webrtc/webrtc/p2p/client/ |
D | portallocator_unittest.cc | 115 void AddInterface(const SocketAddress& addr, const std::string& if_name) { in AddInterface() argument 116 network_manager_.AddInterface(addr, if_name); in AddInterface() 119 const std::string& if_name, in AddInterface() argument 121 network_manager_.AddInterface(addr, if_name, type); in AddInterface() 508 std::string if_name("test_net0"); in TEST_F() local 509 AddInterface(kClientAddr, if_name); in TEST_F() 526 AddInterface(kClientAddr, if_name); in TEST_F() 536 std::string if_name("test_net0"); in TEST_F() local 537 AddInterface(kClientAddr, if_name); in TEST_F() 553 AddInterface(kClientAddr, if_name); in TEST_F()
|
/external/kernel-headers/original/uapi/linux/ |
D | gsmmux.h | 33 char if_name[IFNAMSIZ]; /* interface name format string */ member
|
/external/parameter-framework/asio-1.10.6/include/asio/detail/impl/ |
D | socket_ops.ipp | 1367 char if_name[IF_NAMESIZE + 1] = "%"; 1374 || if_indextoname(static_cast<unsigned>(scope_id), if_name + 1) == 0) 1375 sprintf(if_name + 1, "%lu", scope_id); 1376 strcat(dest, if_name); 1390 const char* if_name = is_v6 ? strchr(src, '%') : 0; 1393 if (if_name != 0) 1395 if (if_name - src > max_addr_v6_str_len) 1400 memcpy(src_buf, src, if_name - src); 1401 src_buf[if_name - src] = 0; 1412 if (if_name != 0) [all …]
|
/external/ppp/pppd/ |
D | sys-solaris.c | 470 get_if_hwaddr(u_char *addr, char *if_name) in get_if_hwaddr() argument 475 if (if_name == NULL) in get_if_hwaddr() 481 if (!get_hw_addr_dlpi(if_name, &s_eth_addr)) { in get_if_hwaddr() 482 error("could not obtain hardware address for %s", if_name); in get_if_hwaddr() 538 char *if_name; in ether_to_eui64() local 540 if ((if_name = get_first_ethernet()) == NULL) { in ether_to_eui64() 548 if (!get_hw_addr_dlpi(if_name, &s_eth_addr)) { in ether_to_eui64() 549 error("could not obtain hardware address for %s", if_name); in ether_to_eui64()
|
/external/autotest/server/site_tests/brillo_WifiInterfaceTest/ |
D | brillo_WifiInterfaceTest.py | 72 iw_ifaces = [iface_tuple.if_name
|
/external/mdnsresponder/Clients/ |
D | dns-sd.c | 802 char if_name[IFNAMSIZ]; // Older Linux distributions don't define IF_NAMESIZE in addrinfo_reply() local 805 if (!if_indextoname(s6->sin6_scope_id, if_name)) in addrinfo_reply() 806 snprintf(if_name, sizeof(if_name), "<%d>", s6->sin6_scope_id); in addrinfo_reply() 809 b[0x8], b[0x9], b[0xA], b[0xB], b[0xC], b[0xD], b[0xE], b[0xF], if_name); in addrinfo_reply()
|
/external/autotest/server/cros/network/ |
D | connection_worker.py | 60 iw.remove_interface(devs[i].if_name)
|