Home
last modified time | relevance | path

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

/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DBpfCoordinator.java885 public void maybeAttachProgram(@NonNull String intIface, @NonNull String extIface) { in maybeAttachProgram() argument
886 if (isVcnInterface(extIface)) return; in maybeAttachProgram()
888 if (forwardingPairExists(intIface, extIface)) return; in maybeAttachProgram()
890 boolean firstDownstreamForThisUpstream = !isAnyForwardingPairOnUpstream(extIface); in maybeAttachProgram()
891 forwardingPairAdd(intIface, extIface); in maybeAttachProgram()
896 mBpfCoordinatorShim.attachProgram(extIface, DOWNSTREAM); in maybeAttachProgram()
903 public void maybeDetachProgram(@NonNull String intIface, @NonNull String extIface) { in maybeDetachProgram() argument
904 forwardingPairRemove(intIface, extIface); in maybeDetachProgram()
909 if (!isAnyForwardingPairOnUpstream(extIface)) { in maybeDetachProgram()
910 mBpfCoordinatorShim.detachProgram(extIface); in maybeDetachProgram()
[all …]
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java1130 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()