/system/core/libnetutils/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,
|
/system/core/libnetutils/ |
D | ifc_utils.c | 82 int prefixLength = 0; in ipv4NetmaskToPrefixLength() local 85 prefixLength++; in ipv4NetmaskToPrefixLength() 88 return prefixLength; in ipv4NetmaskToPrefixLength() 468 int ifc_set_prefixLength(const char *name, int prefixLength) in ifc_set_prefixLength() argument 472 if (prefixLength > 32 || prefixLength < 0) return -1; in ifc_set_prefixLength() 474 in_addr_t mask = prefixLengthToIpv4Netmask(prefixLength); in ifc_set_prefixLength() 498 int ifc_get_info(const char *name, in_addr_t *addr, int *prefixLength, unsigned *flags) in ifc_get_info() argument 511 if (prefixLength != NULL) { in ifc_get_info() 513 *prefixLength = 0; in ifc_get_info() 515 *prefixLength = ipv4NetmaskToPrefixLength( in ifc_get_info() [all …]
|
D | dhcpclient.c | 103 uint32_t prefixLength; member 114 void get_dhcp_info(uint32_t *ipaddr, uint32_t *gateway, uint32_t *prefixLength, in get_dhcp_info() argument 120 *prefixLength = last_good_info.prefixLength; in get_dhcp_info() 130 return ifc_configure(ifname, info->ipaddr, info->prefixLength, info->gateway, in dhcp_configure() 156 ALOGD("ip %s gw %s prefixLength %d", addr, gway, info->prefixLength); in dump_dhcp_info() 201 info->prefixLength = ipv4NetmaskToPrefixLength(mask); in decode_dhcp_msg()
|
/system/netd/server/ |
D | InterfaceController.cpp | 372 const char *addrString, int prefixLength) { in addAddress() argument 373 return ifc_add_address(interface, addrString, prefixLength); in addAddress() 377 const char *addrString, int prefixLength) { in delAddress() argument 378 return ifc_del_address(interface, addrString, prefixLength); in delAddress() 464 int prefixLength = 0; in ipv4NetmaskToPrefixLength() local 467 prefixLength++; in ipv4NetmaskToPrefixLength() 470 return prefixLength; in ipv4NetmaskToPrefixLength() 509 ifc_add_address(cfg.ifName.c_str(), cfg.ipv4Addr.c_str(), cfg.prefixLength)); in setCfg() 516 int prefixLength = 0; in getCfg() local 532 prefixLength = in getCfg() [all …]
|
D | InterfaceController.h | 44 static int addAddress(const char* ifName, const char* addrString, int prefixLength); 45 static int delAddress(const char* ifName, const char* addrString, int prefixLength);
|
D | RouteController.cpp | 346 uint8_t prefixLength; in modifyIpRoute() local 348 &prefixLength); in modifyIpRoute() 391 bool isDefaultThrowRoute = (type == RTN_THROW && prefixLength == 0); in modifyIpRoute() 398 .rtm_dst_len = prefixLength, in modifyIpRoute()
|
D | NetdNativeService.h | 134 const std::string &addrString, int prefixLength) override; 136 const std::string &addrString, int prefixLength) override;
|
D | NetdNativeService.cpp | 482 const std::string &addrString, int prefixLength) { in interfaceAddAddress() argument 485 ifName.c_str(), addrString.c_str(), prefixLength); in interfaceAddAddress() 494 const std::string &addrString, int prefixLength) { in interfaceDelAddress() argument 497 ifName.c_str(), addrString.c_str(), prefixLength); in interfaceDelAddress() 852 std::to_string(cfg.prefixLength)}; in interfaceConfigurationParcelToString()
|
D | NdcDispatcher.cpp | 211 interfaceCfgResult.prefixLength, flags.c_str()); in runCommand() 234 interfaceCfg.prefixLength = 0; in runCommand() 238 PARSE_INT_RETURN_IF_FAIL(cli, argv[4], interfaceCfg.prefixLength, in runCommand()
|
/system/netd/server/aidl/netd/2/android/net/ |
D | InterfaceConfigurationParcel.aidl | 23 int prefixLength;
|
D | INetd.aidl | 34 …nterfaceAddAddress(in @utf8InCpp String ifName, in @utf8InCpp String addrString, int prefixLength); in interfaceAddAddress() argument 35 …nterfaceDelAddress(in @utf8InCpp String ifName, in @utf8InCpp String addrString, int prefixLength); in interfaceDelAddress() argument
|
/system/netd/server/aidl/netd/1/android/net/ |
D | InterfaceConfigurationParcel.aidl | 6 int prefixLength;
|
D | INetd.aidl | 17 …nterfaceAddAddress(in @utf8InCpp String ifName, in @utf8InCpp String addrString, int prefixLength); in interfaceAddAddress() argument 18 …nterfaceDelAddress(in @utf8InCpp String ifName, in @utf8InCpp String addrString, int prefixLength); in interfaceDelAddress() argument
|
/system/netd/server/binder/android/net/ |
D | InterfaceConfigurationParcel.aidl | 28 int prefixLength;
|
D | INetd.aidl | 209 int prefixLength); in interfaceAddAddress() argument 211 int prefixLength); in interfaceDelAddress() argument
|
/system/netd/server/binder/android/net/metrics/ |
D | INetdEventListener.aidl | 127 int prefixLength); in onNat64PrefixEvent() argument
|
/system/netd/server/aidl/netdeventlistener/1/android/net/metrics/ |
D | INetdEventListener.aidl | 25 …oid onNat64PrefixEvent(int netId, boolean added, @utf8InCpp String prefixString, int prefixLength); in onNat64PrefixEvent() argument
|
/system/netd/resolv/ |
D | Dns64Configuration.h | 58 uint8_t prefixLength; member
|
D | ResolverController.cpp | 93 it->onNat64PrefixEvent(args.netId, args.added, args.prefixString, args.prefixLength); in sendNat64PrefixEvent()
|
/system/netd/tests/ |
D | binder_test.cpp | 756 int prefixLength = 0; in netmaskToPrefixLength() local 767 prefixLength += (value == 0) ? 0 : CHAR_BIT - ffs(value) + 1; in netmaskToPrefixLength() 775 return prefixLength; in netmaskToPrefixLength() 785 const std::string &ifname, const char *addrString, int prefixLength) { in interfaceHasAddress() argument 821 if (prefixLength < 0) return true; // not checking prefix lengths in interfaceHasAddress() 825 EXPECT_EQ(prefixLength, netmaskToPrefixLength(&nm->sin_addr)); in interfaceHasAddress() 826 return (prefixLength == netmaskToPrefixLength(&nm->sin_addr)); in interfaceHasAddress() 835 if (prefixLength < 0) return true; // not checking prefix lengths in interfaceHasAddress() 839 EXPECT_EQ(prefixLength, netmaskToPrefixLength(&nm->sin6_addr)); in interfaceHasAddress() 840 return (prefixLength == netmaskToPrefixLength(&nm->sin6_addr)); in interfaceHasAddress() [all …]
|
/system/core/libsysutils/src/ |
D | NetlinkEvent.cpp | 349 int prefixLength = rtm->rtm_dst_len; in parseRtMessage() local 387 if (!*dst && !prefixLength) { in parseRtMessage() 404 asprintf(&mParams[0], "ROUTE=%s/%d", dst, prefixLength); in parseRtMessage()
|