Searched refs:prefixLength (Results 1 – 7 of 7) sorted by relevance
/system/core/include/netutils/ |
D | ifc.h | 48 extern int ifc_set_prefixLength(const char *name, int prefixLength); 65 extern int ifc_get_info(const char *name, in_addr_t *addr, int *prefixLength, 69 uint32_t prefixLength, in_addr_t gateway,
|
D | dhcp.h | 29 uint32_t *prefixLength, 37 uint32_t *prefixLength,
|
/system/core/libnetutils/ |
D | dhcp_utils.c | 90 uint32_t *prefixLength, in fill_ip_info() argument 140 *prefixLength = p; in fill_ip_info() 184 uint32_t *prefixLength, in dhcp_do_request() argument 240 if (fill_ip_info(interface, ipaddr, gateway, prefixLength, dns, in dhcp_do_request() 327 uint32_t *prefixLength, in dhcp_do_request_renew() argument 368 fill_ip_info(interface, ipaddr, gateway, prefixLength, dns, in dhcp_do_request_renew()
|
D | ifc_utils.c | 78 int prefixLength = 0; in ipv4NetmaskToPrefixLength() local 81 prefixLength++; in ipv4NetmaskToPrefixLength() 84 return prefixLength; in ipv4NetmaskToPrefixLength() 441 int ifc_set_prefixLength(const char *name, int prefixLength) in ifc_set_prefixLength() argument 445 if (prefixLength > 32 || prefixLength < 0) return -1; in ifc_set_prefixLength() 447 in_addr_t mask = prefixLengthToIpv4Netmask(prefixLength); in ifc_set_prefixLength() 471 int ifc_get_info(const char *name, in_addr_t *addr, int *prefixLength, unsigned *flags) in ifc_get_info() argument 484 if (prefixLength != NULL) { in ifc_get_info() 486 *prefixLength = 0; in ifc_get_info() 488 *prefixLength = ipv4NetmaskToPrefixLength( in ifc_get_info() [all …]
|
D | dhcpclient.c | 105 uint32_t prefixLength; member 116 void get_dhcp_info(uint32_t *ipaddr, uint32_t *gateway, uint32_t *prefixLength, in get_dhcp_info() argument 122 *prefixLength = last_good_info.prefixLength; in get_dhcp_info() 132 return ifc_configure(ifname, info->ipaddr, info->prefixLength, info->gateway, in dhcp_configure() 158 ALOGD("ip %s gw %s prefixLength %d", addr, gway, info->prefixLength); in dump_dhcp_info() 203 info->prefixLength = ipv4NetmaskToPrefixLength(mask); in decode_dhcp_msg()
|
/system/core/netcfg/ |
D | netcfg.c | 55 int prefixLength; in dump_interface() local 57 if(ifc_get_info(name, &addr, &prefixLength, &flags)) { in dump_interface() 63 printf("/%-4d", prefixLength); in dump_interface()
|
/system/netd/ |
D | CommandListener.cpp | 311 int prefixLength; in runCommand() local 318 if (ifc_get_info(argv[2], &addr.s_addr, &prefixLength, &flags)) { in runCommand() 345 addr_s, prefixLength, flag_s); in runCommand()
|