Home
last modified time | relevance | path

Searched refs:etherType (Results 1 – 17 of 17) sorted by relevance

/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/structs/
DEthernetHeader.java52 public final int etherType; field in EthernetHeader
55 final int etherType) { in EthernetHeader() argument
58 this.etherType = etherType; in EthernetHeader()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/arp/
DArpPacket.java112 final short etherType = buffer.getShort(); in parseArpPacket() local
113 if (etherType != ETH_P_ARP) { in parseArpPacket()
114 throw new ParseException("Incorrect Ether Type: " + etherType); in parseArpPacket()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/
DPacketBuilder.java102 public void writeL2Header(MacAddress srcMac, MacAddress dstMac, short etherType) throws in writeL2Header() argument
104 final EthernetHeader ethHeader = new EthernetHeader(dstMac, srcMac, etherType); in writeL2Header()
/packages/modules/Wifi/service/java/com/android/server/wifi/hal/
DWifiStaIface.java384 public boolean startSendingKeepAlivePackets(int cmdId, byte[] ipPacketData, int etherType, in startSendingKeepAlivePackets() argument
387 () -> mWifiStaIface.startSendingKeepAlivePackets(cmdId, ipPacketData, etherType, in startSendingKeepAlivePackets()
DIWifiStaIface.java235 boolean startSendingKeepAlivePackets(int cmdId, byte[] ipPacketData, int etherType, in startSendingKeepAlivePackets() argument
DWifiStaIfaceHidlImpl.java305 public boolean startSendingKeepAlivePackets(int cmdId, byte[] ipPacketData, int etherType, in startSendingKeepAlivePackets() argument
310 etherType, srcAddress, dstAddress, periodInMs)); in startSendingKeepAlivePackets()
758 byte[] ipPacketData, int etherType, MacAddress srcAddress, MacAddress dstAddress, in startSendingKeepAlivePacketsInternal() argument
765 cmdId, data, (short) etherType, srcMac, dstMac, periodInMs); in startSendingKeepAlivePacketsInternal()
DWifiStaIfaceAidlImpl.java633 public boolean startSendingKeepAlivePackets(int cmdId, byte[] ipPacketData, int etherType, in startSendingKeepAlivePackets() argument
639 mWifiStaIface.startSendingKeepAlivePackets(cmdId, ipPacketData, (char) etherType, in startSendingKeepAlivePackets()
/packages/modules/NetworkStack/src/android/net/util/
DConnectivityPacketSummary.java144 final int etherType = asUint(mPacket.getShort()); in parseEther() local
145 switch (etherType) { in parseEther()
160 sj.add("ethtype").add(asString(etherType)); in parseEther()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DPacketBuilderTest.java536 final int etherType = (l3proto == IPPROTO_IP) ? ETHER_TYPE_IPV4 : ETHER_TYPE_IPV6; in buildPacket() local
537 packetBuilder.writeL2Header(srcMac, dstMac, (short) etherType); in buildPacket()
584 assertEquals(expectedEtherType, eth.etherType); in checkEtherHeader()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DFrameParser.java91 short etherType = data.getShort(); in parseEthernetFrame() local
92 switch (etherType) { in parseEthernetFrame()
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/packets/
DNeighborSolicitationTest.java213 assertEquals(ETH_P_IPV6, ns.ethHdr.etherType); in assertNeighborSolicitation()
DNeighborAdvertisementTest.java212 assertEquals(ETH_P_IPV6, na.ethHdr.etherType); in assertNeighborAdvertisement()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DRouterAdvertisementResponder.java93 if (ethHeader.etherType != ETHER_TYPE_IPV6) { in isRsOrNs()
/packages/modules/Connectivity/Tethering/tests/privileged/src/android/net/ip/
DRouterAdvertisementDaemonTest.java164 if (ethHdr.etherType != ETHER_TYPE_IPV6) return false; in isPacketMatched()
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/
DTetheringTester.java391 if (ethHdr.etherType != ETHER_TYPE_IPV6) return; in maybeReplyNa()
449 return Struct.parse(EthernetHeader.class, buf).etherType == expected; in hasExpectedEtherHeader()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DDscpPolicyTest.kt417 if (etherHdr.etherType != expectedType) { in <lambda>()
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/
DIpClientIntegrationTestCommon.java1055 if (ethHdr.etherType != ETH_P_IPV6) {
3777 assertEquals(ETH_P_IPV6, na.ethHdr.etherType);
3795 assertEquals(ETH_P_IPV6, ns.ethHdr.etherType);
3936 assertEquals(ETH_P_IPV6, ns.ethHdr.etherType);