Home
last modified time | relevance | path

Searched refs:prefixLength (Results 1 – 6 of 6) sorted by relevance

/system/core/include/netutils/
Difc.h49 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,
/system/core/libnetutils/
Difc_utils.c86 int prefixLength = 0; in ipv4NetmaskToPrefixLength() local
89 prefixLength++; in ipv4NetmaskToPrefixLength()
92 return prefixLength; in ipv4NetmaskToPrefixLength()
472 int ifc_set_prefixLength(const char *name, int prefixLength) in ifc_set_prefixLength() argument
476 if (prefixLength > 32 || prefixLength < 0) return -1; in ifc_set_prefixLength()
478 in_addr_t mask = prefixLengthToIpv4Netmask(prefixLength); in ifc_set_prefixLength()
502 int ifc_get_info(const char *name, in_addr_t *addr, int *prefixLength, unsigned *flags) in ifc_get_info() argument
515 if (prefixLength != NULL) { in ifc_get_info()
517 *prefixLength = 0; in ifc_get_info()
519 *prefixLength = ipv4NetmaskToPrefixLength( in ifc_get_info()
[all …]
Ddhcpclient.c105 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/libsysutils/src/
DNetlinkEvent.cpp335 int prefixLength = rtm->rtm_dst_len; in parseRtMessage() local
372 if (!*dst && !prefixLength) { in parseRtMessage()
389 asprintf(&mParams[0], "ROUTE=%s/%d", dst, prefixLength); in parseRtMessage()
/system/netd/server/
DRouteController.cpp372 uint8_t prefixLength; in modifyIpRoute() local
374 &prefixLength); in modifyIpRoute()
422 .rtm_dst_len = prefixLength, in modifyIpRoute()
DCommandListener.cpp287 int prefixLength; in runCommand() local
294 if (ifc_get_info(argv[2], &addr.s_addr, &prefixLength, &flags)) { in runCommand()
321 addr_s, prefixLength, flag_s); in runCommand()