Lines Matching refs:prefixlen
260 int ifc_act_on_address(int action, const char* name, const char* address, int prefixlen, in ifc_act_on_address() argument
315 req.r.ifa_prefixlen = prefixlen; in ifc_act_on_address()
331 ((struct in_addr *)addr)->s_addr |= htonl((1<<(32-prefixlen))-1); in ifc_act_on_address()
366 int ifc_add_address(const char *name, const char *address, int prefixlen) { in ifc_add_address() argument
367 return ifc_act_on_address(RTM_NEWADDR, name, address, prefixlen, /*nodad*/ false); in ifc_add_address()
371 int ifc_del_address(const char *name, const char * address, int prefixlen) { in ifc_del_address() argument
372 return ifc_act_on_address(RTM_DELADDR, name, address, prefixlen, /*nodad*/ false); in ifc_del_address()
380 unsigned int prefixlen; in ifc_clear_ipv6_addresses() local
391 rawaddrstr, &prefixlen, ifname) == 3) { 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()