Searched refs:ipv6Header (Results 1 – 8 of 8) sorted by relevance
/packages/modules/DnsResolver/tests/ |
D | tun_forwarder.cpp | 275 const ip6_hdr* const ipv6Header = reinterpret_cast<ip6_hdr*>(ipv6Packet.base()); in validateIpv6Packet() local 276 if (mRulesIpv6.find({ipv6Header->ip6_src, ipv6Header->ip6_dst}) == mRulesIpv6.end()) { in validateIpv6Packet() 280 switch (ipv6Header->ip6_nxt) { in validateIpv6Packet() 287 << static_cast<int>(ipv6Header->ip6_nxt); in validateIpv6Packet() 361 ip6_hdr* ipv6Header = reinterpret_cast<ip6_hdr*>(ipv6Packet.base()); in translateIpv6Packet() local 366 ipv6_pseudo_header_checksum(ipv6Header, transport_len, ipv6Header->ip6_nxt); in translateIpv6Packet() 368 if (ipv6Header->ip6_src == from.src && ipv6Header->ip6_dst == from.dst) { in translateIpv6Packet() 369 ipv6Header->ip6_src = to.src; in translateIpv6Packet() 370 ipv6Header->ip6_dst = to.dst; in translateIpv6Packet() 375 ipv6_pseudo_header_checksum(ipv6Header, transport_len, ipv6Header->ip6_nxt); in translateIpv6Packet() [all …]
|
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/ |
D | PacketBuilderTest.java | 638 final Ipv6Header ipv6Header = Struct.parse(Ipv6Header.class, actual); in checkIpv6Header() local 640 assertEquals(VERSION_TRAFFICCLASS_FLOWLABEL, ipv6Header.vtf); in checkIpv6Header() 641 assertEquals(HOP_LIMIT, ipv6Header.hopLimit); in checkIpv6Header() 642 assertEquals(IPV6_SRC_ADDR, ipv6Header.srcIp); in checkIpv6Header() 643 assertEquals(IPV6_DST_ADDR, ipv6Header.dstIp); in checkIpv6Header() 647 assertEquals(TCP_HEADER_MIN_LEN + dataLength, ipv6Header.payloadLength); in checkIpv6Header() 648 assertEquals((byte) IPPROTO_TCP, ipv6Header.nextHeader); in checkIpv6Header() 650 assertEquals(UDP_HEADER_LEN + dataLength, ipv6Header.payloadLength); in checkIpv6Header() 651 assertEquals((byte) IPPROTO_UDP, ipv6Header.nextHeader); in checkIpv6Header()
|
/packages/modules/Connectivity/staticlibs/testutils/devicetests/ |
D | NSResponder.kt | 57 val ipv6Header = parseOrLog(Ipv6Header::class.java, buf) ?: return in replyToPacket() constant 72 ipv6Header.srcIp /* dstIp */, in replyToPacket()
|
/packages/modules/Connectivity/Tethering/tests/integration/base/android/net/ |
D | TetheringTester.java | 914 Ipv6Header ipv6Header = null; 916 ipv6Header = Struct.parse(Ipv6Header.class, buf); 917 if (ipv6Header == null || ipv6Header.nextHeader != IPPROTO_UDP) return; 944 ipv6Header.dstIp /* srcIp */, ipv6Header.srcIp /* dstIp */, 948 fail("Failed to build prefix64 discovery reply for " + ipv6Header.srcIp + ": " + e); 956 fail("Failed to reply prefix64 discovery for " + ipv6Header.srcIp + ": " + e);
|
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/ |
D | PacketBuilder.java | 154 final Ipv6Header ipv6Header = new Ipv6Header(vtf, in writeIpv6Header() local 159 ipv6Header.writeToByteBuffer(mBuffer); in writeIpv6Header()
|
D | Ipv6Utils.java | 60 final Ipv6Header ipv6Header = in buildIcmpv6Packet() local 66 ipv6Header.writeToByteBuffer(packet); in buildIcmpv6Packet()
|
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/ |
D | RouterAdvertisementResponder.java | 96 final Ipv6Header ipv6Header = Struct.parse(Ipv6Header.class, buffer); in isRsOrNs() local 97 if (ipv6Header.nextHeader != IPPROTO_ICMPV6) { in isRsOrNs()
|
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/ |
D | IntegrationTestUtils.java | 235 final Ipv6Header ipv6Header = Struct.parse(Ipv6Header.class, buf); in getRaPios() local 236 if (ipv6Header.nextHeader != (byte) IPPROTO_ICMPV6) { in getRaPios()
|