/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 | 392 local if_name=$1 401 ip address $add_del $addrstr dev $if_name 407 local if_name=$1; shift 411 ip link set dev $if_name master $vrf_name 412 ip link set dev $if_name up 414 __addr_add_del $if_name add "${addrs[@]}" 419 local if_name=$1; shift 422 __addr_add_del $if_name del "${addrs[@]}" 424 ip link set dev $if_name down 425 ip link set dev $if_name nomaster [all …]
|
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
|
D | vxlan_symmetric.sh | 117 local if_name=$1; shift 122 ip link set dev $if_name master $vrf_name 124 ip link set dev $if_name up 126 ip address add $ip_addr/24 dev $if_name 128 dev $if_name 136 local if_name=$1; shift 141 ip neigh del $gw_ip dev $if_name 142 ip address del $ip_addr/24 dev $if_name 144 ip link set dev $if_name down
|
D | vxlan_asymmetric.sh | 107 local if_name=$1; shift 112 ip link set dev $if_name master $vrf_name 114 ip link set dev $if_name up 116 ip address add $ip_addr/24 dev $if_name 118 dev $if_name 126 local if_name=$1; shift 131 ip neigh del $gw_ip dev $if_name 132 ip address del $ip_addr/24 dev $if_name 134 ip link set dev $if_name down
|
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 | router_multicast.sh | 214 local if_name=$1; shift 219 $MC_CLI -I $table_name add $if_name $s_addr $mcast $dest_ifs 224 local if_name=$1; shift 229 $MC_CLI -I $table_name remove $if_name $s_addr $mcast $dest_ifs
|
/external/autotest/server/ |
D | site_linux_system.py | 122 if_name=interface.if_name, 126 self.iw_runner.remove_interface(interface.if_name) 286 if net_dev.if_name == interface: 307 self.release_interface(net_dev.if_name) 311 self.remove_interface(net_dev.if_name) 372 if net_dev.if_name == self._capture_interface][0] 499 if net_dev.if_name == same_phy_as: 522 if net_dev.if_name == name]) 523 if_name = lambda index: '%s%d' % (phytype, index) function 525 while name_exists(if_name(if_index)): [all …]
|
/external/webrtc/rtc_base/ |
D | network_unittest.cc | 48 AdapterType GetAdapterType(const std::string& if_name) override { in GetAdapterType() argument 51 if (absl::StartsWith(if_name, "wifi")) { in GetAdapterType() 54 if (absl::StartsWith(if_name, "cellular")) { in GetAdapterType() 160 char* if_name, in AddIpv6Address() argument 166 if_addr->ifa_name = if_name; in AddIpv6Address() 176 struct ifaddrs* InstallIpv6Network(char* if_name, in InstallIpv6Network() argument 181 addr_list = AddIpv6Address(addr_list, if_name, ipv6_address, ipv6_mask, 0); in InstallIpv6Network() 203 char* if_name, in AddIpv4Address() argument 208 if_addr->ifa_name = if_name; in AddIpv4Address() 218 struct ifaddrs* InstallIpv4Network(char* if_name, in InstallIpv4Network() argument [all …]
|
D | fake_network.h | 45 void AddInterface(const SocketAddress& iface, const std::string& if_name) { in AddInterface() argument 46 AddInterface(iface, if_name, ADAPTER_TYPE_UNKNOWN); in AddInterface() 50 const std::string& if_name, in AddInterface() argument 52 SocketAddress address(if_name, 0); in AddInterface()
|
/external/ltp/testcases/network/lib6/ |
D | in6_02.c | 170 if (!p || strcmp(p, pini[i].if_name)) { in if_nameindex_test() 173 pini[i].if_index, pini[i].if_name, in if_nameindex_test() 177 idx = if_nametoindex(pini[i].if_name); in if_nameindex_test() 181 pini[i].if_index, pini[i].if_name, in if_nameindex_test() 182 pini[i].if_name, idx); in if_nameindex_test() 186 pini[i].if_index, pini[i].if_name); in if_nameindex_test()
|
/external/wpa_supplicant_8/hostapd/ |
D | main.c | 259 hostapd_interface_init(struct hapd_interfaces *interfaces, const char *if_name, in hostapd_interface_init() argument 270 if (if_name) { in hostapd_interface_init() 271 os_strlcpy(iface->conf->bss[0]->iface, if_name, in hostapd_interface_init() 563 char *if_name, *tmp, **nnames; in hostapd_get_interface_names() local 568 if_name = strtok_r(arg, ",", &tmp); in hostapd_get_interface_names() 570 while (if_name) { in hostapd_get_interface_names() 577 (*if_names)[*if_names_size] = os_strdup(if_name); in hostapd_get_interface_names() 581 if_name = strtok_r(NULL, ",", &tmp); in hostapd_get_interface_names() 826 char *if_name = NULL; in main() local 829 if_name = if_names[i]; in main() [all …]
|
/external/toybox/toys/pending/ |
D | route.c | 146 flags[10] = "U", if_name[IF_NAMESIZE] = "-"; in display_routes() local 187 if_indextoname(*(int *)RTA_DATA(rteattr), if_name); in display_routes() 218 if (FLAG(e)) xprintf("%5d %-5d %6d %s\n", mss, win, irtt, if_name); in display_routes() 219 else xprintf("%-6d %-2d %7d %s\n", priority, ref, use, if_name); in display_routes() 223 dest_with_mask, gate, flags, priority, ref, use, if_name); in display_routes()
|
/external/webrtc/sdk/android/src/jni/ |
D | android_network_monitor.cc | 429 const std::string& if_name) { in GetAdapterType() argument 430 auto iter = adapter_type_by_name_.find(if_name); in GetAdapterType() 435 RTC_LOG(LS_WARNING) << "Get an unknown type for the interface " << if_name; in GetAdapterType() 441 const std::string& if_name) { in GetVpnUnderlyingAdapterType() argument 442 auto iter = vpn_underlying_adapter_type_by_name_.find(if_name); in GetVpnUnderlyingAdapterType()
|
D | android_network_monitor.h | 79 rtc::AdapterType GetAdapterType(const std::string& if_name) override; 81 const std::string& if_name) override;
|
/external/autotest/client/common_lib/cros/network/ |
D | iw_runner.py | 454 if iw_if.if_name == interface_name] 652 if_name = None 658 if_name = None 665 if_name = m.group(1) 667 if not if_name: 673 interfaces.append(IwNetDev(phy=phy, if_name=if_name, 676 if_name = None
|
/external/libpcap/ |
D | pcap-dlpi.c | 1804 char if_name[sizeof(ifnet.if_name) + 1]; local 1834 dlpi_kread(kd, (off_t)ifnet.if_name, 1835 if_name, sizeof(ifnet.if_name), ebuf) < 0) { 1839 if_name[sizeof(ifnet.if_name)] = '\0'; 1840 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/kernel-headers/original/uapi/linux/ |
D | gsmmux.h | 33 char if_name[IFNAMSIZ]; /* interface name format string */ member
|
/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/crosvm/net_util/src/ |
D | lib.rs | 172 if_name: [c_char; 16usize], field 190 if_name: ifreq.ifr_ifrn.ifrn_name, in from_raw_descriptor() 226 if_name: unsafe { ifreq.ifr_ifrn.ifrn_name }, in create_tap_with_ifreq() 487 ifrn_name.clone_from_slice(&self.if_name); in get_ifreq()
|