Lines Matching refs:ifname
382 char ifname[64]; // Currently, IFNAMSIZ = 16. in ifc_clear_ipv6_addresses() local
391 rawaddrstr, &prefixlen, ifname) == 3) { in ifc_clear_ipv6_addresses()
393 if (strcmp(name, ifname)) { in ifc_clear_ipv6_addresses()
412 ret = ifc_del_address(ifname, addrstr, prefixlen); in ifc_clear_ipv6_addresses()
414 ALOGE("Deleting address %s/%d on %s: %s", addrstr, prefixlen, ifname, in ifc_clear_ipv6_addresses()
533 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
543 rt.rt_dev = (void*) ifname; in ifc_act_on_ipv4_route()
592 int ifc_enable(const char *ifname) in ifc_enable() argument
597 result = ifc_up(ifname); in ifc_enable()
603 int ifc_disable(const char *ifname) in ifc_disable() argument
609 result = ifc_down(ifname); in ifc_disable()
611 ifc_set_addr(ifname, 0); in ifc_disable()
613 if (ifc_get_addr(ifname, &addr) < 0) in ifc_disable()
616 ifc_set_addr(ifname, 0); in ifc_disable()
623 int ifc_reset_connections(const char *ifname, const int reset_mask) in ifc_reset_connections() argument
635 ifc_get_info(ifname, &myaddr, NULL, NULL); in ifc_reset_connections()
637 ifc_init_ifr(ifname, &ifr); in ifc_reset_connections()
671 int ifc_remove_default_route(const char *ifname) in ifc_remove_default_route() argument
678 rt.rt_dev = (void *)ifname; in ifc_remove_default_route()
682 ALOGD("failed to remove default route for %s: %s", ifname, strerror(errno)); in ifc_remove_default_route()
689 ifc_configure(const char *ifname, in ifc_configure() argument
700 if (ifc_up(ifname)) { in ifc_configure()
701 printerr("failed to turn on interface %s: %s\n", ifname, strerror(errno)); in ifc_configure()
705 if (ifc_set_addr(ifname, address)) { in ifc_configure()
710 if (ifc_set_prefixLength(ifname, prefixLength)) { in ifc_configure()
715 if (ifc_create_default_route(ifname, gateway)) { in ifc_configure()
723 snprintf(dns_prop_name, sizeof(dns_prop_name), "net.%s.dns1", ifname); in ifc_configure()
725 snprintf(dns_prop_name, sizeof(dns_prop_name), "net.%s.dns2", ifname); in ifc_configure()