Home
last modified time | relevance | path

Searched refs:l4proto (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DPacketBuilderTest.java517 @Nullable final MacAddress dstMac, final int l3proto, final int l4proto, in buildPacket() argument
524 if (l4proto != IPPROTO_TCP && l4proto != IPPROTO_UDP) { in buildPacket()
525 fail("Unsupported layer 4 protocol " + l4proto); in buildPacket()
530 final ByteBuffer buffer = PacketBuilder.allocate(hasEther, l3proto, l4proto, in buildPacket()
543 TIME_TO_LIVE, (byte) l4proto, IPV4_SRC_ADDR, IPV4_DST_ADDR); in buildPacket()
546 (byte) l4proto, HOP_LIMIT, IPV6_SRC_ADDR, IPV6_DST_ADDR); in buildPacket()
550 if (l4proto == IPPROTO_TCP) { in buildPacket()
553 } else if (l4proto == IPPROTO_UDP) { in buildPacket()
595 private void checkIpv4Header(final int l4proto, final boolean hasData, in checkIpv4Header() argument
597 if (l4proto != IPPROTO_TCP && l4proto != IPPROTO_UDP) { in checkIpv4Header()
[all …]
/packages/modules/Connectivity/common/src/com/android/net/module/util/bpf/
DTether4Key.java40 public final short l4proto; field in Tether4Key
54 public Tether4Key(final int iif, @NonNull final MacAddress dstMac, final short l4proto, in Tether4Key() argument
61 this.l4proto = l4proto; in Tether4Key()
74 iif, dstMac, l4proto, in toString()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/
DPacketBuilder.java279 public static ByteBuffer allocate(boolean hasEther, int l3proto, int l4proto, int payloadLen) { in allocate() argument
284 if (l4proto != IPPROTO_TCP && l4proto != IPPROTO_UDP) { in allocate()
285 throw new IllegalArgumentException("Unsupported layer 4 protocol " + l4proto); in allocate()
296 packetLen += (l4proto == IPPROTO_TCP) ? Struct.getSize(TcpHeader.class) in allocate()
/packages/modules/Connectivity/Tethering/tests/mts/src/android/tethering/mts/
DMtsEthernetTetheringTest.java237 assertEquals(IPPROTO_UDP, upstream4Key.l4proto); in runUdp4Test()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DBpfCoordinator.java1410 l4protoToString(key.l4proto), key.dstMac, key.iif, getIfName(key.iif), in ipv4RuleToString()
2350 updateConntrackTimeout((byte) k.l4proto, in refreshAllConntrackTimeouts()
2361 updateConntrackTimeout((byte) k.l4proto, in refreshAllConntrackTimeouts()