Searched refs:extIface (Results 1 – 8 of 8) sorted by relevance
/system/netd/server/ |
D | TetherController.h | 91 int enableNat(const char* intIface, const char* extIface); 92 int disableNat(const char* intIface, const char* extIface); 101 : intIface(intIfn), extIface(extIfn), in TetherStats() 105 std::string extIface; variable 112 if (intIface == other.intIface && extIface == other.extIface) { in addStatsIfMatch() 151 const std::string& extIface); 152 void addForwardingPair(const std::string& intIface, const std::string& extIface); 153 void markForwardingPairDisabled(const std::string& intIface, const std::string& extIface); 155 bool isForwardingPairEnabled(const std::string& intIface, const std::string& extIface); 156 bool isAnyForwardingEnabledOnUpstream(const std::string& extIface); [all …]
|
D | TetherController.cpp | 541 int TetherController::enableNat(const char* intIface, const char* extIface) { in enableNat() argument 542 ALOGV("enableNat(intIface=<%s>, extIface=<%s>)",intIface, extIface); in enableNat() 544 if (!isIfaceName(intIface) || !isIfaceName(extIface)) { in enableNat() 549 if (!strcmp(intIface, extIface)) { in enableNat() 550 ALOGE("Duplicate interface specified: %s %s", intIface, extIface); in enableNat() 554 if (isForwardingPairEnabled(intIface, extIface)) { in enableNat() 559 if (!isAnyForwardingEnabledOnUpstream(extIface)) { in enableNat() 562 StringPrintf("-A %s -o %s -j MASQUERADE", LOCAL_NAT_POSTROUTING, extIface), in enableNat() 568 ALOGE("Error setting postroute rule: iface=%s", extIface); in enableNat() 577 if (setForwardRules(true, intIface, extIface) != 0) { in enableNat() [all …]
|
D | TetherControllerTest.cpp | 352 EXPECT_EQ(expected.extIface, actual.extIface); in expectTetherStatsEqual()
|
D | NetdNativeService.cpp | 422 if (tetherStatsParcel->extIface == tetherStats.extIface) { in tetherAddStatsByInterface() 432 result.iface = stats.extIface; in toTetherStatsParcel() 444 auto iter = statsMap.find(stats.extIface); in setTetherStatsParcelVecByInterface() 449 std::pair<std::string, TetherController::TetherStats>(stats.extIface, stats)); in setTetherStatsParcelVecByInterface() 1146 const std::string& extIface) { in tetherAddForward() argument 1149 int res = gCtls->tetherCtrl.enableNat(intIface.c_str(), extIface.c_str()); in tetherAddForward() 1154 const std::string& extIface) { in tetherRemoveForward() argument 1156 int res = gCtls->tetherCtrl.disableNat(intIface.c_str(), extIface.c_str()); in tetherRemoveForward()
|
D | NetdNativeService.h | 239 const std::string& extIface) override; 241 const std::string& extIface) override;
|
/system/netd/server/aidl/netd/1/android/net/ |
D | INetd.aidl | 89 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/binder/android/net/ |
D | INetd.aidl | 1124 void tetherAddForward(in @utf8InCpp String intIface, in @utf8InCpp String extIface); in tetherAddForward() argument 1132 void tetherRemoveForward(in @utf8InCpp String intIface, in @utf8InCpp String extIface); in tetherRemoveForward() argument
|
/system/netd/server/aidl/netd/2/android/net/ |
D | INetd.aidl | 106 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
|