Searched refs:prefixLength (Results 1 - 8 of 8) sorted by relevance

/system/core/include/netutils/
H A Ddhcp.h31 uint32_t *prefixLength,
H A 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/
H A Difc_utils.c83 int prefixLength = 0; local
86 prefixLength++;
89 return prefixLength;
445 int ifc_set_prefixLength(const char *name, int prefixLength) argument
449 if (prefixLength > 32 || prefixLength < 0) return -1;
451 in_addr_t mask = prefixLengthToIpv4Netmask(prefixLength);
475 int ifc_get_info(const char *name, in_addr_t *addr, int *prefixLength, unsigned *flags) argument
488 if (prefixLength != NULL) {
490 *prefixLength
663 ifc_configure(const char *ifname, in_addr_t address, uint32_t prefixLength, in_addr_t gateway, in_addr_t dns1, in_addr_t dns2) argument
[all...]
H A Ddhcp_utils.c92 uint32_t *prefixLength,
143 *prefixLength = p;
177 uint32_t *prefixLength,
201 if (fill_ip_info(interface, ipaddr, gateway, prefixLength, dns,
89 fill_ip_info(const char *interface, char *ipaddr, char *gateway, uint32_t *prefixLength, char *dns[], char *server, uint32_t *lease, char *vendorInfo, char *domain, char *mtu) argument
174 dhcp_get_results(const char *interface, char *ipaddr, char *gateway, uint32_t *prefixLength, char *dns[], char *server, uint32_t *lease, char *vendorInfo, char *domain, char *mtu) argument
H A Ddhcpclient.c105 uint32_t prefixLength; member in struct:dhcp_info
116 void get_dhcp_info(uint32_t *ipaddr, uint32_t *gateway, uint32_t *prefixLength, argument
122 *prefixLength = last_good_info.prefixLength;
132 return ifc_configure(ifname, info->ipaddr, info->prefixLength, info->gateway,
158 ALOGD("ip %s gw %s prefixLength %d", addr, gway, info->prefixLength);
203 info->prefixLength = ipv4NetmaskToPrefixLength(mask);
/system/core/libsysutils/src/
H A DNetlinkEvent.cpp337 int prefixLength = rtm->rtm_dst_len; local
374 if (!*dst && !prefixLength) {
391 asprintf(&mParams[0], "ROUTE=%s/%d", dst, prefixLength);
/system/netd/server/
H A DRouteController.cpp357 uint8_t prefixLength; local
359 &prefixLength);
407 .rtm_dst_len = prefixLength,
H A DCommandListener.cpp299 int prefixLength; local
306 if (ifc_get_info(argv[2], &addr.s_addr, &prefixLength, &flags)) {
333 addr_s, prefixLength, flag_s);
344 // arglist: iface [addr prefixLength] flags
368 cli->sendMsg(ResponseCode::OperationFailed, "Failed to set prefixLength", true);

Completed in 77 milliseconds