/system/core/include/netutils/ |
H A D | dhcp.h | 29 uint32_t *prefixLength, 39 uint32_t *prefixLength,
|
H A 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,
|
/system/core/netcfg/ |
H A D | netcfg.c | 50 int prefixLength; local 52 if(ifc_get_info(name, &addr, &prefixLength, &flags)) { 58 printf("/%-4d", prefixLength);
|
/system/core/libnetutils/ |
H A D | dhcp_utils.c | 90 uint32_t *prefixLength, 141 *prefixLength = p; 189 uint32_t *prefixLength, 246 if (fill_ip_info(interface, ipaddr, gateway, prefixLength, dns, 333 uint32_t *prefixLength, 375 return fill_ip_info(interface, ipaddr, gateway, prefixLength, dns, 87 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 186 dhcp_do_request(const char *interface, char *ipaddr, char *gateway, uint32_t *prefixLength, char *dns[], char *server, uint32_t *lease, char *vendorInfo, char *domain, char *mtu) argument 330 dhcp_do_request_renew(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 D | ifc_utils.c | 83 int prefixLength = 0; local 86 prefixLength++; 89 return prefixLength; 446 int ifc_set_prefixLength(const char *name, int prefixLength) argument 450 if (prefixLength > 32 || prefixLength < 0) return -1; 452 in_addr_t mask = prefixLengthToIpv4Netmask(prefixLength); 476 int ifc_get_info(const char *name, in_addr_t *addr, int *prefixLength, unsigned *flags) argument 489 if (prefixLength != NULL) { 491 *prefixLength 664 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 D | dhcpclient.c | 105 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 D | NetlinkEvent.cpp | 305 int prefixLength = rtm->rtm_dst_len; local 342 if (!*dst && !prefixLength) { 359 asprintf(&mParams[0], "ROUTE=%s/%d", dst, prefixLength);
|
/system/netd/server/ |
H A D | RouteController.cpp | 346 uint8_t prefixLength; local 348 &prefixLength); 396 .rtm_dst_len = prefixLength,
|
H A D | CommandListener.cpp | 294 int prefixLength; local 301 if (ifc_get_info(argv[2], &addr.s_addr, &prefixLength, &flags)) { 328 addr_s, prefixLength, flag_s); 339 // arglist: iface [addr prefixLength] flags 363 cli->sendMsg(ResponseCode::OperationFailed, "Failed to set prefixLength", true);
|