/packages/modules/NetworkStack/src/com/android/networkstack/packets/ |
D | NeighborAdvertisement.java | 47 public final EthernetHeader ethHdr; field in NeighborAdvertisement 57 public NeighborAdvertisement(@NonNull final EthernetHeader ethHdr, in NeighborAdvertisement() argument 60 this.ethHdr = ethHdr; in NeighborAdvertisement() 79 ethHdr.writeToByteBuffer(packet); in toByteBuffer() 113 final EthernetHeader ethHdr = Struct.parse(EthernetHeader.class, packet); in parse() local 121 return new NeighborAdvertisement(ethHdr, ipv6Hdr, icmpv6Hdr, naHdr, tlla); in parse()
|
D | NeighborSolicitation.java | 47 public final EthernetHeader ethHdr; field in NeighborSolicitation 57 public NeighborSolicitation(@NonNull final EthernetHeader ethHdr, in NeighborSolicitation() argument 60 this.ethHdr = ethHdr; in NeighborSolicitation() 79 ethHdr.writeToByteBuffer(packet); in toByteBuffer() 113 final EthernetHeader ethHdr = Struct.parse(EthernetHeader.class, packet); in parse() local 121 return new NeighborSolicitation(ethHdr, ipv6Hdr, icmpv6Hdr, nsHdr, slla); in parse()
|
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/packets/ |
D | NeighborSolicitationTest.java | 211 assertArrayEquals(TEST_SOURCE_MAC_ADDR, ns.ethHdr.srcMac.toByteArray()); in assertNeighborSolicitation() 212 assertArrayEquals(TEST_DST_MAC_ADDR, ns.ethHdr.dstMac.toByteArray()); in assertNeighborSolicitation() 213 assertEquals(ETH_P_IPV6, ns.ethHdr.etherType); in assertNeighborSolicitation()
|
D | NeighborAdvertisementTest.java | 210 assertArrayEquals(TEST_SOURCE_MAC_ADDR, na.ethHdr.srcMac.toByteArray()); in assertNeighborAdvertisement() 211 assertArrayEquals(TEST_DST_MAC_ADDR, na.ethHdr.dstMac.toByteArray()); in assertNeighborAdvertisement() 212 assertEquals(ETH_P_IPV6, na.ethHdr.etherType); in assertNeighborAdvertisement()
|
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/ |
D | RouterAdvertisementResponder.java | 197 final EthernetHeader ethHdr = Struct.parse(EthernetHeader.class, buf); in replyToPacket() local 202 replyToRouterSolicitation(reader, ethHdr.srcMac); in replyToPacket() 205 replyToNeighborSolicitation(reader, ethHdr.srcMac, ipv6Hdr.srcIp, nsHeader.target); in replyToPacket()
|
/packages/modules/Connectivity/Tethering/tests/privileged/src/android/net/ip/ |
D | RouterAdvertisementDaemonTest.java | 163 final EthernetHeader ethHdr = Struct.parse(EthernetHeader.class, buf); in isPacketMatched() local 164 if (ethHdr.etherType != ETHER_TYPE_IPV6) return false; in isPacketMatched()
|
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/ |
D | IpClientIntegrationTestCommon.java | 1054 final EthernetHeader ethHdr = Struct.parse(EthernetHeader.class, buffer); 1055 if (ethHdr.etherType != ETH_P_IPV6) { 3776 assertEquals(etherMulticast, na.ethHdr.dstMac); 3777 assertEquals(ETH_P_IPV6, na.ethHdr.etherType); 3794 assertEquals(etherMulticast, ns.ethHdr.dstMac); 3795 assertEquals(ETH_P_IPV6, ns.ethHdr.etherType); 3936 assertEquals(ETH_P_IPV6, ns.ethHdr.etherType); 3944 assertEquals(ns.slla.linkLayerAddress, ns.ethHdr.srcMac); 3949 assertEquals(dstMac, ns.ethHdr.dstMac); 3958 assertEquals(etherMulticast, ns.ethHdr.dstMac); [all …]
|
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/ |
D | TetheringTester.java | 390 final EthernetHeader ethHdr = Struct.parse(EthernetHeader.class, buf); in maybeReplyNa() local 391 if (ethHdr.etherType != ETHER_TYPE_IPV6) return; in maybeReplyNa()
|