Home
last modified time | relevance | path

Searched refs:tupleOrig (Results 1 – 6 of 6) sorted by relevance

/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/ip/
DConntrackMonitor.java70 public final ConntrackMessage.Tuple tupleOrig; field in ConntrackMonitor.ConntrackEvent
86 this.tupleOrig = msg.tupleOrig; in ConntrackEvent()
93 public ConntrackEvent(short msgType, ConntrackMessage.Tuple tupleOrig, in ConntrackEvent() argument
96 this.tupleOrig = tupleOrig; in ConntrackEvent()
108 && Objects.equals(this.tupleOrig, that.tupleOrig) in equals()
116 return Objects.hash(msgType, tupleOrig, tupleReply, status, timeoutSec); in hashCode()
125 + "tuple_orig{" + tupleOrig + "}, " in toString()
142 if (msg.tupleOrig == null) return false; in isEstablishedNatSession()
159 if (msg.tupleOrig == null) return false; in isDyingNatSession()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/
DConntrackMessageTest.java172 conntrackMessage.tupleOrig.srcIp); in testConntrackParseIPv4TcpTimeoutUpdate()
174 conntrackMessage.tupleOrig.dstIp); in testConntrackParseIPv4TcpTimeoutUpdate()
175 assertEquals((byte) OsConstants.IPPROTO_TCP, conntrackMessage.tupleOrig.protoNum); in testConntrackParseIPv4TcpTimeoutUpdate()
176 assertEquals((short) 44333, conntrackMessage.tupleOrig.srcPort); in testConntrackParseIPv4TcpTimeoutUpdate()
177 assertEquals((short) 443, conntrackMessage.tupleOrig.dstPort); in testConntrackParseIPv4TcpTimeoutUpdate()
221 conntrackMessage.tupleOrig.srcIp); in testConntrackParseIPv4UdpTimeoutUpdate()
223 conntrackMessage.tupleOrig.dstIp); in testConntrackParseIPv4UdpTimeoutUpdate()
224 assertEquals((byte) OsConstants.IPPROTO_UDP, conntrackMessage.tupleOrig.protoNum); in testConntrackParseIPv4UdpTimeoutUpdate()
225 assertEquals((short) 37069, conntrackMessage.tupleOrig.srcPort); in testConntrackParseIPv4UdpTimeoutUpdate()
226 assertEquals((short) 443, conntrackMessage.tupleOrig.dstPort); in testConntrackParseIPv4UdpTimeoutUpdate()
[all …]
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DConntrackMessage.java258 Tuple tupleOrig = null; in parse() local
260 tupleOrig = parseTuple(nlAttr.getValueAsByteBuffer()); in parse()
280 return new ConntrackMessage(header, nfGenMsg, tupleOrig, tupleReply, status, timeoutSec); in parse()
413 public final Tuple tupleOrig; field in ConntrackMessage
447 tupleOrig = null; in ConntrackMessage()
454 @Nullable Tuple tupleOrig, @Nullable Tuple tupleReply, int status, int timeoutSec) { in ConntrackMessage() argument
457 this.tupleOrig = tupleOrig; in ConntrackMessage()
554 + "tuple_orig{" + tupleOrig + "}, " in toString()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ip/
DConntrackMonitorTest.java242 e.tupleOrig, e.tupleReply, e.status, e.timeoutSec); in testConntrackEventNotEquals()
250 e.tupleOrig, null /* diff */, e.status, e.timeoutSec); in testConntrackEventNotEquals()
254 e.tupleOrig, e.tupleReply, e.status + 1 /* diff */, e.timeoutSec); in testConntrackEventNotEquals()
258 e.tupleOrig, e.tupleReply, e.status, e.timeoutSec + 1 /* diff */); in testConntrackEventNotEquals()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DBpfCoordinator.java1952 e.tupleOrig.protoNum, e.tupleOrig.srcIp.getAddress(), in makeTetherUpstream4Key()
1953 e.tupleOrig.dstIp.getAddress(), e.tupleOrig.srcPort, e.tupleOrig.dstPort); in makeTetherUpstream4Key()
1980 toIpv4MappedAddressBytes(e.tupleOrig.dstIp), in makeTetherDownstream4Value()
1981 toIpv4MappedAddressBytes(e.tupleOrig.srcIp), in makeTetherDownstream4Value()
1982 e.tupleOrig.dstPort, e.tupleOrig.srcPort, in makeTetherDownstream4Value()
1987 if (e.tupleOrig.protoNum != OsConstants.IPPROTO_TCP) return true; in allowOffload()
1989 NON_OFFLOADED_UPSTREAM_IPV4_TCP_PORTS, e.tupleOrig.dstPort); in allowOffload()
1995 final ClientInfo tetherClient = getClientInfo(e.tupleOrig.srcIp); in accept()
/packages/modules/Connectivity/Tethering/tests/privileged/src/com/android/networkstack/tethering/
DConntrackSocketTest.java115 ConntrackMessage.Tuple tuple = ctmsg.tupleOrig; in findConnectionOrThrow()