Searched refs:ConntrackEvent (Results 1 – 4 of 4) sorted by relevance
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ip/ |
D | ConntrackMonitorTest.java | 48 import com.android.net.module.util.ip.ConntrackMonitor.ConntrackEvent; 201 private ConntrackEvent makeTestConntrackEvent(short msgType, int status, int timeoutSec) { in makeTestConntrackEvent() 209 return new ConntrackEvent( in makeTestConntrackEvent() 221 final ConntrackEvent expectedEvent = makeTestConntrackEvent(IPCTNL_MSG_CT_NEW, in testConntrackEventNew() 229 final ConntrackEvent event1 = makeTestConntrackEvent(IPCTNL_MSG_CT_NEW, 1234 /* status */, in testConntrackEventEquals() 231 final ConntrackEvent event2 = makeTestConntrackEvent(IPCTNL_MSG_CT_NEW, 1234 /* status */, in testConntrackEventEquals() 238 final ConntrackEvent e = makeTestConntrackEvent(IPCTNL_MSG_CT_NEW, 1234 /* status */, in testConntrackEventNotEquals() 241 final ConntrackEvent typeNotEqual = new ConntrackEvent((short) (e.msgType + 1) /* diff */, in testConntrackEventNotEquals() 245 final ConntrackEvent tupleOrigNotEqual = new ConntrackEvent(e.msgType, in testConntrackEventNotEquals() 249 final ConntrackEvent tupleReplyNotEqual = new ConntrackEvent(e.msgType, in testConntrackEventNotEquals() [all …]
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/ip/ |
D | ConntrackMonitor.java | 62 public static class ConntrackEvent { class in ConntrackMonitor 84 public ConntrackEvent(ConntrackMessage msg) { in ConntrackEvent() method in ConntrackMonitor.ConntrackEvent 93 public ConntrackEvent(short msgType, ConntrackMessage.Tuple tupleOrig, in ConntrackEvent() method in ConntrackMonitor.ConntrackEvent 105 if (!(o instanceof ConntrackEvent)) return false; in equals() 106 ConntrackEvent that = (ConntrackEvent) o; in equals() 176 void accept(@NonNull ConntrackEvent event); in accept() 196 if (!(ConntrackEvent.isEstablishedNatSession(conntrackMsg) in processNetlinkMessage() 197 || ConntrackEvent.isDyingNatSession(conntrackMsg))) { in processNetlinkMessage() 201 mConsumer.accept(new ConntrackEvent(conntrackMsg)); in processNetlinkMessage()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | BpfCoordinator.java | 32 import static com.android.net.module.util.ip.ConntrackMonitor.ConntrackEvent; 1950 @NonNull ConntrackEvent e, @NonNull ClientInfo c) { in makeTetherUpstream4Key() 1958 @NonNull ConntrackEvent e, @NonNull ClientInfo c, int upstreamIndex) { in makeTetherDownstream4Key() 1965 private Tether4Value makeTetherUpstream4Value(@NonNull ConntrackEvent e, in makeTetherUpstream4Value() 1976 private Tether4Value makeTetherDownstream4Value(@NonNull ConntrackEvent e, in makeTetherDownstream4Value() 1986 private boolean allowOffload(ConntrackEvent e) { in allowOffload() 1992 public void accept(ConntrackEvent e) { in accept()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | BpfCoordinatorTest.java | 40 import static com.android.net.module.util.ip.ConntrackMonitor.ConntrackEvent; 429 public ConntrackEvent build() { in build() 433 return new ConntrackEvent( in build() 2259 private static final ConntrackEvent CONNTRACK_EVENT_A = makeTestConntrackEvent( 2262 private static final ConntrackEvent CONNTRACK_EVENT_B = makeTestConntrackEvent( 2300 private static ConntrackEvent makeTestConntrackEvent(final short publicPort, in makeTestConntrackEvent() 2302 return new ConntrackEvent( in makeTestConntrackEvent()
|