Lines Matching refs:ifname
384 char ifname[64]; // Currently, IFNAMSIZ = 16. in ifc_clear_ipv6_addresses() local
393 rawaddrstr, &prefixlen, ifname) == 3) { in ifc_clear_ipv6_addresses()
395 if (strcmp(name, ifname)) { in ifc_clear_ipv6_addresses()
414 ret = ifc_del_address(ifname, addrstr, prefixlen); in ifc_clear_ipv6_addresses()
416 ALOGE("Deleting address %s/%d on %s: %s", addrstr, prefixlen, ifname, in ifc_clear_ipv6_addresses()
535 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
545 rt.rt_dev = (void*) ifname; in ifc_act_on_ipv4_route()
594 int ifc_enable(const char *ifname) in ifc_enable() argument
599 result = ifc_up(ifname); in ifc_enable()
605 int ifc_disable(const char *ifname) in ifc_disable() argument
611 result = ifc_down(ifname); in ifc_disable()
613 ifc_set_addr(ifname, 0); in ifc_disable()
615 if (ifc_get_addr(ifname, &addr) < 0) in ifc_disable()
618 ifc_set_addr(ifname, 0); in ifc_disable()
625 int ifc_reset_connections(const char *ifname, const int reset_mask) in ifc_reset_connections() argument
637 ifc_get_info(ifname, &myaddr, NULL, NULL); in ifc_reset_connections()
639 ifc_init_ifr(ifname, &ifr); in ifc_reset_connections()
673 int ifc_remove_default_route(const char *ifname) in ifc_remove_default_route() argument
680 rt.rt_dev = (void *)ifname; in ifc_remove_default_route()
684 ALOGD("failed to remove default route for %s: %s", ifname, strerror(errno)); in ifc_remove_default_route()
691 ifc_configure(const char *ifname, in ifc_configure() argument
702 if (ifc_up(ifname)) { in ifc_configure()
703 printerr("failed to turn on interface %s: %s\n", ifname, strerror(errno)); in ifc_configure()
707 if (ifc_set_addr(ifname, address)) { in ifc_configure()
712 if (ifc_set_prefixLength(ifname, prefixLength)) { in ifc_configure()
717 if (ifc_create_default_route(ifname, gateway)) { in ifc_configure()
725 snprintf(dns_prop_name, sizeof(dns_prop_name), "net.%s.dns1", ifname); in ifc_configure()
727 snprintf(dns_prop_name, sizeof(dns_prop_name), "net.%s.dns2", ifname); in ifc_configure()