Home
last modified time | relevance | path

Searched refs:addrString (Results 1 – 8 of 8) sorted by relevance

/system/netd/server/
DInterfaceController.h44 static int addAddress(const char* ifName, const char* addrString, int prefixLength);
45 static int delAddress(const char* ifName, const char* addrString, int prefixLength);
DInterfaceController.cpp372 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()
DNetdNativeService.h134 const std::string &addrString, int prefixLength) override;
136 const std::string &addrString, int prefixLength) override;
DNetdNativeService.cpp482 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()
/system/netd/server/aidl/netd/1/android/net/
DINetd.aidl17 …void interfaceAddAddress(in @utf8InCpp String ifName, in @utf8InCpp String addrString, int prefixL… in interfaceAddAddress() argument
18 …void interfaceDelAddress(in @utf8InCpp String ifName, in @utf8InCpp String addrString, int prefixL… in interfaceDelAddress() argument
/system/netd/server/binder/android/net/
DINetd.aidl208 void interfaceAddAddress(in @utf8InCpp String ifName, in @utf8InCpp String addrString, in interfaceAddAddress() argument
210 void interfaceDelAddress(in @utf8InCpp String ifName, in @utf8InCpp String addrString, in interfaceDelAddress() argument
/system/netd/server/aidl/netd/2/android/net/
DINetd.aidl34 …void interfaceAddAddress(in @utf8InCpp String ifName, in @utf8InCpp String addrString, int prefixL… in interfaceAddAddress() argument
35 …void interfaceDelAddress(in @utf8InCpp String ifName, in @utf8InCpp String addrString, int prefixL… in interfaceDelAddress() argument
/system/netd/tests/
Dbinder_test.cpp785 const std::string &ifname, const char *addrString, int prefixLength) { in interfaceHasAddress() argument
793 if (getaddrinfo(addrString, nullptr, &hints, &addrinfoList) != 0 || in interfaceHasAddress()
856 const char *addrString; in TEST_F() member
877 sTun.name(), td.addrString, td.prefixLength); in TEST_F()
887 EXPECT_TRUE(interfaceHasAddress(sTun.name(), td.addrString, td.prefixLength)); in TEST_F()
889 EXPECT_FALSE(interfaceHasAddress(sTun.name(), td.addrString, -1)); in TEST_F()
893 status = mNetd->interfaceDelAddress(sTun.name(), td.addrString, td.prefixLength); in TEST_F()
902 EXPECT_FALSE(interfaceHasAddress(sTun.name(), td.addrString, -1)); in TEST_F()