/aosp12/system/netd/server/ |
H A D | TetherController.cpp | 567 if (!isIfaceName(intIface) || !isIfaceName(extIface)) { in enableNat() 572 if (!strcmp(intIface, extIface)) { in enableNat() 577 if (isForwardingPairEnabled(intIface, extIface)) { in enableNat() 582 if (!isAnyForwardingEnabledOnUpstream(extIface)) { in enableNat() 600 if (setForwardRules(true, intIface, extIface) != 0) { in enableNat() 737 intIface, extIface), in setForwardRules() 770 setForwardRules(false, intIface, extIface); in setForwardRules() 776 addForwardingPair(intIface, extIface); in setForwardRules() 778 markForwardingPairDisabled(intIface, extIface); in setForwardRules() 790 setForwardRules(false, intIface, extIface); in disableNat() [all …]
|
H A D | TetherController.h | 99 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); 166 bool isForwardingPairEnabled(const std::string& intIface, const std::string& extIface); 167 bool isAnyForwardingEnabledOnUpstream(const std::string& extIface); 173 int setForwardRules(bool set, const char *intIface, const char *extIface); [all …]
|
H A D | NetdNativeService.cpp | 483 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()
|
H A D | TetherControllerTest.cpp | 355 EXPECT_EQ(expected.extIface, actual.extIface); in expectTetherStatsEqual()
|
H A D | NetdNativeService.h | 142 const std::string& extIface) override; 144 const std::string& extIface) override;
|
/aosp12/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
H A D | BpfCoordinator.java | 886 if (isVcnInterface(extIface)) return; in maybeAttachProgram() 888 if (forwardingPairExists(intIface, extIface)) return; in maybeAttachProgram() 891 forwardingPairAdd(intIface, extIface); in maybeAttachProgram() 904 forwardingPairRemove(intIface, extIface); in maybeDetachProgram() 909 if (!isAnyForwardingPairOnUpstream(extIface)) { in maybeDetachProgram() 910 mBpfCoordinatorShim.detachProgram(extIface); in maybeDetachProgram() 1747 if (!mForwardingPairs.containsKey(extIface)) { in forwardingPairAdd() 1750 mForwardingPairs.get(extIface).add(intIface); in forwardingPairAdd() 1759 mForwardingPairs.remove(extIface); in forwardingPairRemove() 1766 return mForwardingPairs.get(extIface).contains(intIface); in forwardingPairExists() [all …]
|
/aosp12/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
H A D | BpfCoordinatorTest.java | 1130 final String extIface = "rmnet_data0"; in testAttachDetachBpfProgram() local 1137 coordinator.maybeAttachProgram(intIface1, extIface); in testAttachDetachBpfProgram() 1138 ExtendedMockito.verify(() -> BpfUtils.attachProgram(extIface, DOWNSTREAM)); in testAttachDetachBpfProgram() 1144 coordinator.maybeAttachProgram(intIface1, extIface); in testAttachDetachBpfProgram() 1149 coordinator.maybeAttachProgram(intIface2, extIface); in testAttachDetachBpfProgram() 1155 coordinator.maybeDetachProgram(intIface2, extIface); in testAttachDetachBpfProgram() 1162 coordinator.maybeDetachProgram(intIface1, extIface); in testAttachDetachBpfProgram() 1163 ExtendedMockito.verify(() -> BpfUtils.detachProgram(extIface)); in testAttachDetachBpfProgram() 1170 ExtendedMockito.verify(() -> BpfUtils.attachProgram(extIface, DOWNSTREAM), never()); in testAttachDetachBpfProgram()
|
/aosp12/system/netd/server/aidl_api/netd_aidl_interface/1/android/net/ |
H A 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
|
/aosp12/system/netd/server/aidl_api/netd_aidl_interface/2/android/net/ |
H A 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
|
/aosp12/system/netd/server/aidl_api/netd_aidl_interface/3/android/net/ |
H A D | INetd.aidl | 107 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
|
/aosp12/system/netd/server/aidl_api/netd_aidl_interface/4/android/net/ |
H A D | INetd.aidl | 107 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
|
/aosp12/system/netd/server/aidl_api/netd_aidl_interface/6/android/net/ |
H A D | INetd.aidl | 129 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
|
/aosp12/system/netd/server/aidl_api/netd_aidl_interface/7/android/net/ |
H A D | INetd.aidl | 129 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
|
/aosp12/system/netd/server/aidl_api/netd_aidl_interface/5/android/net/ |
H A D | INetd.aidl | 107 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
|
/aosp12/system/netd/server/aidl_api/netd_aidl_interface/current/android/net/ |
H A D | INetd.aidl | 129 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
|
/aosp12/system/netd/server/binder/android/net/ |
H A D | INetd.aidl | 1160 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
|