Home
last modified time | relevance | path

Searched refs:etherType (Results 1 – 18 of 18) 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/NetworkStack/src/android/net/util/
DRawSocketUtils.java72 final int etherType = ((etherTypeBytes[0] & 0xFF) << 8) | (etherTypeBytes[1] & 0xFF); in sendRawPacketDownStream() local
82 etherType, in sendRawPacketDownStream()
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/Wifi/service/java/com/android/server/wifi/hal/
DWifiStaIface.java385 public boolean startSendingKeepAlivePackets(int cmdId, byte[] ipPacketData, int etherType, in startSendingKeepAlivePackets() argument
388 () -> mWifiStaIface.startSendingKeepAlivePackets(cmdId, ipPacketData, etherType, in startSendingKeepAlivePackets()
DIWifiStaIface.java236 boolean startSendingKeepAlivePackets(int cmdId, byte[] ipPacketData, int etherType, in startSendingKeepAlivePackets() argument
DWifiStaIfaceHidlImpl.java306 public boolean startSendingKeepAlivePackets(int cmdId, byte[] ipPacketData, int etherType, in startSendingKeepAlivePackets() argument
311 etherType, srcAddress, dstAddress, periodInMs)); in startSendingKeepAlivePackets()
759 byte[] ipPacketData, int etherType, MacAddress srcAddress, MacAddress dstAddress, in startSendingKeepAlivePacketsInternal() argument
766 cmdId, data, (short) etherType, srcMac, dstMac, periodInMs); in startSendingKeepAlivePacketsInternal()
DWifiStaIfaceAidlImpl.java635 public boolean startSendingKeepAlivePackets(int cmdId, byte[] ipPacketData, int etherType, in startSendingKeepAlivePackets() argument
641 mWifiStaIface.startSendingKeepAlivePackets(cmdId, ipPacketData, (char) etherType, in startSendingKeepAlivePackets()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/
DPacketBuilder.java110 public void writeL2Header(MacAddress srcMac, MacAddress dstMac, short etherType) throws in writeL2Header() argument
112 final EthernetHeader ethHeader = new EthernetHeader(dstMac, srcMac, etherType); in writeL2Header()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DPacketBuilderTest.java636 final int etherType = (l3proto == IPPROTO_IP) ? ETHER_TYPE_IPV4 : ETHER_TYPE_IPV6; in buildPackets() local
637 packetBuilder.writeL2Header(srcMac, dstMac, (short) etherType); in buildPackets()
692 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.java394 if (ethHdr.etherType != ETHER_TYPE_IPV6) return; in maybeReplyNa()
452 return Struct.parse(EthernetHeader.class, buf).etherType == expected; in hasExpectedEtherHeader()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DDscpPolicyTest.kt426 if (etherHdr.etherType != expectedType) { in <lambda>()
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/
DIpClientIntegrationTestCommon.java1129 if (ethHdr.etherType != ETH_P_IPV6) {
3838 assertEquals(ETH_P_IPV6, na.ethHdr.etherType);
3856 assertEquals(ETH_P_IPV6, ns.ethHdr.etherType);
3974 assertEquals(ETH_P_IPV6, ns.ethHdr.etherType);