Home
last modified time | relevance | path

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

/system/netd/server/
DTetherController.h104 int enableNat(const char* intIface, const char* extIface);
105 int disableNat(const char* intIface, const char* extIface);
119 : intIface(intIfn), extIface(extIfn), in TetherStats()
123 std::string extIface; variable
130 if (intIface == other.intIface && extIface == other.extIface) { in addStatsIfMatch()
184 const std::string& extIface);
185 void addForwardingPair(const std::string& intIface, const std::string& extIface);
186 void markForwardingPairDisabled(const std::string& intIface, const std::string& extIface);
188 bool isForwardingPairEnabled(const std::string& intIface, const std::string& extIface);
189 bool isAnyForwardingEnabledOnUpstream(const std::string& extIface);
[all …]
DTetherController.cpp591 int TetherController::enableNat(const char* intIface, const char* extIface) { in enableNat() argument
592 ALOGV("enableNat(intIface=<%s>, extIface=<%s>)",intIface, extIface); in enableNat()
594 if (!isIfaceName(intIface) || !isIfaceName(extIface)) { in enableNat()
599 if (!strcmp(intIface, extIface)) { in enableNat()
600 ALOGE("Duplicate interface specified: %s %s", intIface, extIface); in enableNat()
604 if (isForwardingPairEnabled(intIface, extIface)) { in enableNat()
609 bool firstDownstreamForThisUpstream = !isAnyForwardingEnabledOnUpstream(extIface); in enableNat()
613 StringPrintf("-A %s -o %s -j MASQUERADE", LOCAL_NAT_POSTROUTING, extIface), in enableNat()
619 ALOGE("Error setting postroute rule: iface=%s", extIface); in enableNat()
628 if (setForwardRules(true, intIface, extIface) != 0) { in enableNat()
[all …]
DNetdNativeService.cpp445 if (tetherStatsParcel->extIface == tetherStats.extIface) { in tetherAddStatsByInterface()
455 result.iface = stats.extIface; in toTetherStatsParcel()
468 auto iter = statsMap.find(stats.extIface); in setTetherStatsParcelVecByInterface()
473 std::pair<std::string, TetherController::TetherStats>(stats.extIface, stats)); in setTetherStatsParcelVecByInterface()
1203 const std::string& extIface) { in tetherAddForward() argument
1206 int res = gCtls->tetherCtrl.enableNat(intIface.c_str(), extIface.c_str()); in tetherAddForward()
1211 const std::string& extIface) { in tetherRemoveForward() argument
1213 int res = gCtls->tetherCtrl.disableNat(intIface.c_str(), extIface.c_str()); in tetherRemoveForward()
DTetherControllerTest.cpp402 EXPECT_EQ(expected.extIface, actual.extIface); in expectTetherStatsEqual()
DNetdNativeService.h137 const std::string& extIface) override;
139 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/current/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/binder/android/net/
DINetd.aidl1128 void tetherAddForward(in @utf8InCpp String intIface, in @utf8InCpp String extIface); in tetherAddForward() argument
1136 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