Home
last modified time | relevance | path

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

/system/core/nexus/
DDhcpClient.cpp34 int ifc_disable(const char *ifname);
35 int ifc_add_host_route(const char *ifname, uint32_t addr);
36 int ifc_remove_host_routes(const char *ifname);
37 int ifc_set_default_route(const char *ifname, uint32_t gateway);
38 int ifc_get_default_route(const char *ifname);
39 int ifc_remove_default_route(const char *ifname);
40 int ifc_reset_connections(const char *ifname);
41 int ifc_configure(const char *ifname, in_addr_t ipaddr, in_addr_t netmask, in_addr_t gateway, in_ad…
43 int dhcp_do_request(const char *ifname,
51 int dhcp_stop(const char *ifname);
[all …]
DController.cpp165 int Controller::bindInterface(const char *ifname) { in bindInterface() argument
166 mBoundInterface = strdup(ifname); in bindInterface()
167 LOGD("Controller %s bound to %s", mName, ifname); in bindInterface()
171 int Controller::unbindInterface(const char *ifname) { in unbindInterface() argument
174 LOGD("Controller %s unbound from %s", mName, ifname); in unbindInterface()
DController.h66 int bindInterface(const char *ifname);
67 int unbindInterface(const char *ifname);
/system/core/libnetutils/
Difc_utils.c227 int ifc_disable(const char *ifname) in ifc_disable() argument
232 result = ifc_down(ifname); in ifc_disable()
233 ifc_set_addr(ifname, 0); in ifc_disable()
238 int ifc_reset_connections(const char *ifname) in ifc_reset_connections() argument
246 ifc_get_info(ifname, &myaddr, NULL, NULL); in ifc_reset_connections()
247 ifc_init_ifr(ifname, &ifr); in ifc_reset_connections()
263 char ifname[64]; in ifc_remove_host_routes() local
281 ifname, &dest, &gway, &flags, &refcnt, &use, &metric, &mask, in ifc_remove_host_routes()
287 || strcmp(ifname, name) != 0) { in ifc_remove_host_routes()
298 ifname, inet_ntoa(addr), strerror(errno)); in ifc_remove_host_routes()
[all …]
Ddhcpclient.c131 static int ifc_configure(const char *ifname, dhcp_info *info) in ifc_configure() argument
135 if (ifc_set_addr(ifname, info->ipaddr)) { in ifc_configure()
139 if (ifc_set_mask(ifname, info->netmask)) { in ifc_configure()
143 if (ifc_create_default_route(ifname, info->gateway)) { in ifc_configure()
148 snprintf(dns_prop_name, sizeof(dns_prop_name), "net.%s.dns1", ifname); in ifc_configure()
150 snprintf(dns_prop_name, sizeof(dns_prop_name), "net.%s.dns2", ifname); in ifc_configure()
406 int dhcp_init_ifc(const char *ifname) in dhcp_init_ifc() argument
424 if (ifc_get_hwaddr(ifname, hwaddr)) { in dhcp_init_ifc()
427 if (ifc_get_ifindex(ifname, &if_index)) { in dhcp_init_ifc()
431 s = open_raw_socket(ifname, hwaddr, if_index); in dhcp_init_ifc()
[all …]
Dpacket.h20 int open_raw_socket(const char *ifname, uint8_t *hwaddr, int if_index);
Dpacket.c42 int open_raw_socket(const char *ifname, uint8_t *hwaddr, int if_index) in open_raw_socket() argument
/system/wlan/ti/sta_dk_4_0_4_32/wpa_supplicant_lib/
Ddriver_ti.c1275 static void *wpa_driver_tista_init( void *priv, const char *ifname ) in wpa_driver_tista_init() argument