Home
last modified time | relevance | path

Searched refs:extIface (Results 1 – 14 of 14) sorted by relevance

/system/netd/server/
DTetherController.h99 int enableNat(const char* intIface, const char* extIface);
100 int disableNat(const char* intIface, const char* extIface);
109 : intIface(intIfn), extIface(extIfn), in TetherStats()
113 std::string extIface; variable
120 if (intIface == other.intIface && extIface == other.extIface) { in addStatsIfMatch()
162 const std::string& extIface);
163 void addForwardingPair(const std::string& intIface, const std::string& extIface);
164 void markForwardingPairDisabled(const std::string& intIface, const std::string& extIface);
166 bool isForwardingPairEnabled(const std::string& intIface, const std::string& extIface);
167 bool isAnyForwardingEnabledOnUpstream(const std::string& extIface);
[all …]
DTetherController.cpp564 int TetherController::enableNat(const char* intIface, const char* extIface) { in enableNat() argument
565 ALOGV("enableNat(intIface=<%s>, extIface=<%s>)",intIface, extIface); in enableNat()
567 if (!isIfaceName(intIface) || !isIfaceName(extIface)) { in enableNat()
572 if (!strcmp(intIface, extIface)) { in enableNat()
573 ALOGE("Duplicate interface specified: %s %s", intIface, extIface); in enableNat()
577 if (isForwardingPairEnabled(intIface, extIface)) { in enableNat()
582 if (!isAnyForwardingEnabledOnUpstream(extIface)) { in enableNat()
585 StringPrintf("-A %s -o %s -j MASQUERADE", LOCAL_NAT_POSTROUTING, extIface), in enableNat()
591 ALOGE("Error setting postroute rule: iface=%s", extIface); in enableNat()
600 if (setForwardRules(true, intIface, extIface) != 0) { in enableNat()
[all …]
DTetherControllerTest.cpp355 EXPECT_EQ(expected.extIface, actual.extIface); in expectTetherStatsEqual()
DNetdNativeService.cpp483 if (tetherStatsParcel->extIface == tetherStats.extIface) { in tetherAddStatsByInterface()
493 result.iface = stats.extIface; in toTetherStatsParcel()
506 auto iter = statsMap.find(stats.extIface); in setTetherStatsParcelVecByInterface()
511 std::pair<std::string, TetherController::TetherStats>(stats.extIface, stats)); in setTetherStatsParcelVecByInterface()
1241 const std::string& extIface) { in tetherAddForward() argument
1244 int res = gCtls->tetherCtrl.enableNat(intIface.c_str(), extIface.c_str()); in tetherAddForward()
1249 const std::string& extIface) { in tetherRemoveForward() argument
1251 int res = gCtls->tetherCtrl.disableNat(intIface.c_str(), extIface.c_str()); in tetherRemoveForward()
DNetdNativeService.h142 const std::string& extIface) override;
144 const std::string& extIface) override;
/system/netd/server/aidl_api/netd_aidl_interface/1/android/net/
DINetd.aidl89 void tetherAddForward(in @utf8InCpp String intIface, in @utf8InCpp String extIface); in tetherAddForward() argument
90 void tetherRemoveForward(in @utf8InCpp String intIface, in @utf8InCpp String extIface); in tetherRemoveForward() argument
/system/netd/server/aidl_api/netd_aidl_interface/2/android/net/
DINetd.aidl106 void tetherAddForward(in @utf8InCpp String intIface, in @utf8InCpp String extIface); in tetherAddForward() argument
107 void tetherRemoveForward(in @utf8InCpp String intIface, in @utf8InCpp String extIface); in tetherRemoveForward() argument
/system/netd/server/aidl_api/netd_aidl_interface/3/android/net/
DINetd.aidl107 void tetherAddForward(in @utf8InCpp String intIface, in @utf8InCpp String extIface); in tetherAddForward() argument
108 void tetherRemoveForward(in @utf8InCpp String intIface, in @utf8InCpp String extIface); in tetherRemoveForward() argument
/system/netd/server/aidl_api/netd_aidl_interface/4/android/net/
DINetd.aidl107 void tetherAddForward(in @utf8InCpp String intIface, in @utf8InCpp String extIface); in tetherAddForward() argument
108 void tetherRemoveForward(in @utf8InCpp String intIface, in @utf8InCpp String extIface); in tetherRemoveForward() argument
/system/netd/server/aidl_api/netd_aidl_interface/7/android/net/
DINetd.aidl129 void tetherAddForward(in @utf8InCpp String intIface, in @utf8InCpp String extIface); in tetherAddForward() argument
130 void tetherRemoveForward(in @utf8InCpp String intIface, in @utf8InCpp String extIface); in tetherRemoveForward() argument
/system/netd/server/aidl_api/netd_aidl_interface/6/android/net/
DINetd.aidl129 void tetherAddForward(in @utf8InCpp String intIface, in @utf8InCpp String extIface); in tetherAddForward() argument
130 void tetherRemoveForward(in @utf8InCpp String intIface, in @utf8InCpp String extIface); in tetherRemoveForward() argument
/system/netd/server/binder/android/net/
DINetd.aidl1160 void tetherAddForward(in @utf8InCpp String intIface, in @utf8InCpp String extIface); in tetherAddForward() argument
1168 void tetherRemoveForward(in @utf8InCpp String intIface, in @utf8InCpp String extIface); in tetherRemoveForward() argument
/system/netd/server/aidl_api/netd_aidl_interface/current/android/net/
DINetd.aidl129 void tetherAddForward(in @utf8InCpp String intIface, in @utf8InCpp String extIface); in tetherAddForward() argument
130 void tetherRemoveForward(in @utf8InCpp String intIface, in @utf8InCpp String extIface); in tetherRemoveForward() argument
/system/netd/server/aidl_api/netd_aidl_interface/5/android/net/
DINetd.aidl107 void tetherAddForward(in @utf8InCpp String intIface, in @utf8InCpp String extIface); in tetherAddForward() argument
108 void tetherRemoveForward(in @utf8InCpp String intIface, in @utf8InCpp String extIface); in tetherRemoveForward() argument