Searched refs:prefixLength (Results 1 – 9 of 9) sorted by relevance
/system/core/include/netutils/ |
D | ifc.h | 49 extern int ifc_set_prefixLength(const char *name, int prefixLength); 55 extern int ifc_get_info(const char *name, in_addr_t *addr, int *prefixLength, 59 uint32_t prefixLength, in_addr_t gateway,
|
D | dhcp.h | 29 uint32_t *prefixLength, 39 uint32_t *prefixLength,
|
/system/core/libnetutils/ |
D | ifc_utils.c | 83 int prefixLength = 0; in ipv4NetmaskToPrefixLength() local 86 prefixLength++; in ipv4NetmaskToPrefixLength() 89 return prefixLength; in ipv4NetmaskToPrefixLength() 446 int ifc_set_prefixLength(const char *name, int prefixLength) in ifc_set_prefixLength() argument 450 if (prefixLength > 32 || prefixLength < 0) return -1; in ifc_set_prefixLength() 452 in_addr_t mask = prefixLengthToIpv4Netmask(prefixLength); in ifc_set_prefixLength() 476 int ifc_get_info(const char *name, in_addr_t *addr, int *prefixLength, unsigned *flags) in ifc_get_info() argument 489 if (prefixLength != NULL) { in ifc_get_info() 491 *prefixLength = 0; in ifc_get_info() 493 *prefixLength = ipv4NetmaskToPrefixLength( in ifc_get_info() [all …]
|
D | dhcp_utils.c | 90 uint32_t *prefixLength, in fill_ip_info() argument 141 *prefixLength = p; in fill_ip_info() 189 uint32_t *prefixLength, in dhcp_do_request() argument 246 if (fill_ip_info(interface, ipaddr, gateway, prefixLength, dns, in dhcp_do_request() 333 uint32_t *prefixLength, in dhcp_do_request_renew() argument 375 return fill_ip_info(interface, ipaddr, gateway, prefixLength, dns, in dhcp_do_request_renew()
|
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 | 50 int prefixLength; in dump_interface() local 52 if(ifc_get_info(name, &addr, &prefixLength, &flags)) { in dump_interface() 58 printf("/%-4d", prefixLength); in dump_interface()
|
/system/core/libsysutils/src/ |
D | NetlinkEvent.cpp | 305 int prefixLength = rtm->rtm_dst_len; in parseRtMessage() local 342 if (!*dst && !prefixLength) { in parseRtMessage() 359 asprintf(&mParams[0], "ROUTE=%s/%d", dst, prefixLength); in parseRtMessage()
|
/system/netd/server/ |
D | RouteController.cpp | 346 uint8_t prefixLength; in modifyIpRoute() local 348 &prefixLength); in modifyIpRoute() 396 .rtm_dst_len = prefixLength, in modifyIpRoute()
|
D | CommandListener.cpp | 294 int prefixLength; in runCommand() local 301 if (ifc_get_info(argv[2], &addr.s_addr, &prefixLength, &flags)) { in runCommand() 328 addr_s, prefixLength, flag_s); in runCommand()
|