Home
last modified time | relevance | path

Searched refs:ipv6Hdr (Results 1 – 8 of 8) sorted by relevance

/packages/modules/NetworkStack/src/com/android/networkstack/packets/
DNeighborAdvertisement.java49 public final Ipv6Header ipv6Hdr; field in NeighborAdvertisement
58 @NonNull final Ipv6Header ipv6Hdr, @NonNull final Icmpv6Header icmpv6Hdr, in NeighborAdvertisement() argument
61 this.ipv6Hdr = ipv6Hdr; in NeighborAdvertisement()
80 ipv6Hdr.writeToByteBuffer(packet); in toByteBuffer()
114 final Ipv6Header ipv6Hdr = Struct.parse(Ipv6Header.class, packet); in parse() local
121 return new NeighborAdvertisement(ethHdr, ipv6Hdr, icmpv6Hdr, naHdr, tlla); in parse()
DNeighborSolicitation.java49 public final Ipv6Header ipv6Hdr; field in NeighborSolicitation
58 @NonNull final Ipv6Header ipv6Hdr, @NonNull final Icmpv6Header icmpv6Hdr, in NeighborSolicitation() argument
61 this.ipv6Hdr = ipv6Hdr; in NeighborSolicitation()
80 ipv6Hdr.writeToByteBuffer(packet); in toByteBuffer()
114 final Ipv6Header ipv6Hdr = Struct.parse(Ipv6Header.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/
DNeighborSolicitationTest.java214 assertEquals(IPPROTO_ICMPV6, ns.ipv6Hdr.nextHeader); in assertNeighborSolicitation()
215 assertEquals(0xff, ns.ipv6Hdr.hopLimit); in assertNeighborSolicitation()
216 assertEquals(TEST_DST_ADDR, ns.ipv6Hdr.dstIp); in assertNeighborSolicitation()
217 assertEquals(TEST_SRC_ADDR, ns.ipv6Hdr.srcIp); in assertNeighborSolicitation()
DNeighborAdvertisementTest.java213 assertEquals(IPPROTO_ICMPV6, na.ipv6Hdr.nextHeader); in assertNeighborAdvertisement()
214 assertEquals(0xff, na.ipv6Hdr.hopLimit); in assertNeighborAdvertisement()
215 assertEquals(IPV6_ADDR_ALL_ROUTERS_MULTICAST, na.ipv6Hdr.dstIp); in assertNeighborAdvertisement()
216 assertEquals(TEST_SRC_ADDR, na.ipv6Hdr.srcIp); in assertNeighborAdvertisement()
/packages/modules/Connectivity/Tethering/tests/privileged/src/android/net/ip/
DRouterAdvertisementDaemonTest.java167 final Ipv6Header ipv6Hdr = Struct.parse(Ipv6Header.class, buf); in isPacketMatched()
168 assertEquals((ipv6Hdr.vtf >> 28), 6 /* ip version*/); in isPacketMatched()
171 assertEquals(payLoadLength, ipv6Hdr.payloadLength); in isPacketMatched()
179 assertEquals(ipv6Hdr.dstIp, IPV6_ADDR_ALL_NODES_MULTICAST); in isPacketMatched()
183 assertTrue(ipv6Hdr.dstIp.isLinkLocalAddress()); in isPacketMatched()
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/
DIpClientIntegrationTestCommon.java1060 final Ipv6Header ipv6Hdr = Struct.parse(Ipv6Header.class, buffer);
1061 final int version = (ipv6Hdr.vtf >> 28) & 0x0F;
1065 if (ipv6Hdr.nextHeader != IPPROTO_UDP) {
1068 if (!ipv6Hdr.dstIp.equals(ALL_DHCP_RELAY_AGENTS_AND_SERVERS)) {
1071 mClientIpAddress = ipv6Hdr.srcIp;
3778 assertEquals(IPPROTO_ICMPV6, na.ipv6Hdr.nextHeader);
3779 assertEquals(0xff, na.ipv6Hdr.hopLimit);
3780 assertTrue(na.ipv6Hdr.srcIp.isLinkLocalAddress());
3781 assertEquals(IPV6_ADDR_ALL_ROUTERS_MULTICAST, na.ipv6Hdr.dstIp);
3796 assertEquals(IPPROTO_ICMPV6, ns.ipv6Hdr.nextHeader);
[all …]
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DRouterAdvertisementResponder.java198 final Ipv6Header ipv6Hdr = Struct.parse(Ipv6Header.class, buf); in replyToPacket() local
205 replyToNeighborSolicitation(reader, ethHdr.srcMac, ipv6Hdr.srcIp, nsHeader.target); in replyToPacket()
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/
DTetheringTester.java393 final Ipv6Header ipv6Hdr = Struct.parse(Ipv6Header.class, buf); in maybeReplyNa()
394 if (ipv6Hdr.nextHeader != (byte) IPPROTO_ICMPV6) return; in maybeReplyNa()
408 nsHdr.target, ipv6Hdr.srcIp, flags, nsHdr.target, tlla); in maybeReplyNa()