Home
last modified time | relevance | path

Searched refs:ifname (Results 1 – 12 of 12) sorted by relevance

/system/core/include/netutils/
Ddhcp.h26 extern int dhcp_start(const char *ifname);
27 extern int dhcp_start_renew(const char *ifname);
28 extern int dhcp_get_results(const char *ifname,
38 extern int dhcp_stop(const char *ifname);
39 extern int dhcp_release_lease(const char *ifname);
Difc.h34 extern int ifc_enable(const char *ifname);
35 extern int ifc_disable(const char *ifname);
41 extern int ifc_reset_connections(const char *ifname, const int reset_mask);
54 extern int ifc_remove_default_route(const char *ifname);
58 extern int ifc_configure(const char *ifname, in_addr_t address,
/system/core/libnetutils/
Difc_utils.c357 char ifname[64]; // Currently, IFNAMSIZ = 16. in ifc_clear_ipv6_addresses() local
366 rawaddrstr, &prefixlen, ifname) == 3) { in ifc_clear_ipv6_addresses()
368 if (strcmp(name, ifname)) { in ifc_clear_ipv6_addresses()
387 ret = ifc_del_address(ifname, addrstr, prefixlen); in ifc_clear_ipv6_addresses()
389 ALOGE("Deleting address %s/%d on %s: %s", addrstr, prefixlen, ifname, in ifc_clear_ipv6_addresses()
508 int ifc_act_on_ipv4_route(int action, const char *ifname, struct in_addr dst, int prefix_length, in ifc_act_on_ipv4_route() argument
518 rt.rt_dev = (void*) ifname; in ifc_act_on_ipv4_route()
566 int ifc_enable(const char *ifname) in ifc_enable() argument
571 result = ifc_up(ifname); in ifc_enable()
577 int ifc_disable(const char *ifname) in ifc_disable() argument
[all …]
Ddhcpclient.c129 static int dhcp_configure(const char *ifname, dhcp_info *info) in dhcp_configure() argument
132 return ifc_configure(ifname, info->ipaddr, info->prefixLength, info->gateway, in dhcp_configure()
389 int dhcp_init_ifc(const char *ifname) in dhcp_init_ifc() argument
407 if (ifc_get_hwaddr(ifname, hwaddr)) { in dhcp_init_ifc()
410 if (ifc_get_ifindex(ifname, &if_index)) { in dhcp_init_ifc()
414 s = open_raw_socket(ifname, hwaddr, if_index); in dhcp_init_ifc()
434 … printerr("no acknowledgement from DHCP server\nconfiguring %s with offered parameters\n", ifname); in dhcp_init_ifc()
435 return dhcp_configure(ifname, &info); in dhcp_init_ifc()
514 printerr("configuring %s\n", ifname); in dhcp_init_ifc()
516 return dhcp_configure(ifname, &info); in dhcp_init_ifc()
Dpacket.h20 int open_raw_socket(const char *ifname, uint8_t *hwaddr, int if_index);
Dpacket.c43 int open_raw_socket(const char *ifname __attribute__((unused)), uint8_t *hwaddr, int if_index) in open_raw_socket() argument
/system/extras/tests/net_test/
Dnet_test.py143 def GetInterfaceIndex(ifname): argument
145 ifr = struct.pack("16si", ifname, 0)
150 def SetInterfaceHWAddr(ifname, hwaddr): argument
156 ifr = struct.pack("16sH6s", ifname, scapy.ARPHDR_ETHER, hwaddr)
160 def SetInterfaceState(ifname, up): argument
162 ifr = struct.pack("16sH", ifname, 0)
169 ifr = struct.pack("16sH", ifname, flags)
173 def SetInterfaceUp(ifname): argument
174 return SetInterfaceState(ifname, True)
177 def SetInterfaceDown(ifname): argument
[all …]
Dsrcaddr_selection_test.py44 def SetDAD(self, ifname, value): argument
45 self.SetSysctl("/proc/sys/net/ipv6/conf/%s/accept_dad" % ifname, value)
46 self.SetSysctl("/proc/sys/net/ipv6/conf/%s/dad_transmits" % ifname, value)
48 def SetOptimisticDAD(self, ifname, value): argument
49 self.SetSysctl("/proc/sys/net/ipv6/conf/%s/optimistic_dad" % ifname, value)
51 def SetUseTempaddrs(self, ifname, value): argument
52 self.SetSysctl("/proc/sys/net/ipv6/conf/%s/use_tempaddr" % ifname, value)
54 def SetUseOptimistic(self, ifname, value): argument
55 self.SetSysctl("/proc/sys/net/ipv6/conf/%s/use_optimistic" % ifname, value)
Dping6_test.py207 self.ifname = self.GetInterfaceName(self.netid)
209 self.lladdr = net_test.GetLinkAddress(self.ifname, True)
210 self.globaladdr = net_test.GetLinkAddress(self.ifname, False)
550 expected = self.lladdr + "%" + self.ifname
/system/bt/test/suite/support/
Dpan.c58 …state_changed(btpan_control_state_t state, bt_status_t error, int local_role, const char *ifname) { in pan_control_state_changed() argument
64 pan_ifname = strdup(ifname); in pan_control_state_changed()
Dcallbacks.c36 …_state_changed(btpan_control_state_t state, int local_role, bt_status_t error, const char *ifname);
/system/core/libsysutils/src/
DNetlinkEvent.cpp162 char ifname[IFNAMSIZ]; in parseIfAddrMessage() local
209 if (!if_indextoname(ifaddr->ifa_index, ifname)) { in parseIfAddrMessage()
240 asprintf(&mParams[1], "INTERFACE=%s", ifname); in parseIfAddrMessage()
430 char ifname[IFNAMSIZ]; in parseNdUserOptMessage() local
431 if (!if_indextoname(msg->nduseropt_ifindex, ifname)) { in parseNdUserOptMessage()
489 pos += strlcpy(buf + pos, ifname, bufsize - pos); in parseNdUserOptMessage()
496 asprintf(&mParams[0], "INTERFACE=%s", ifname); in parseNdUserOptMessage()