Home
last modified time | relevance | path

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

/packages/modules/Connectivity/Tethering/tests/privileged/src/android/net/ip/
DDadProxyTest.java138 private static final int IPV6_HEADER_LEN = 40; field in DadProxyTest
150 final ByteBuffer buf = ByteBuffer.allocate(icmpLen + IPV6_HEADER_LEN + ETH_HEADER_LEN); in createDadPacket()
197 final int transportOffset = ETH_HEADER_LEN + IPV6_HEADER_LEN; in createDadPacket()
DRouterAdvertisementDaemonTest.java31 import static com.android.net.module.util.NetworkStackConstants.IPV6_HEADER_LEN;
160 if (pkt.length < (ETHER_HEADER_LEN + IPV6_HEADER_LEN + ICMPV6_RA_HEADER_LEN)) { in isPacketMatched()
173 final int payLoadLength = pkt.length - ETHER_HEADER_LEN - IPV6_HEADER_LEN; in isPacketMatched()
/packages/modules/NetworkStack/src/com/android/networkstack/packets/
DNeighborAdvertisement.java22 import static com.android.net.module.util.NetworkStackConstants.IPV6_HEADER_LEN;
103 if (length < ETHER_HEADER_LEN + IPV6_HEADER_LEN + ICMPV6_HEADER_MIN_LEN in parse()
/packages/modules/Connectivity/Tethering/src/android/net/ip/
DNeighborPacketForwarder.java62 private static final int IPV6_HEADER_LEN = 40; field in NeighborPacketForwarder
160 if (length < IPV6_HEADER_LEN) { in handlePacket()
/packages/modules/NetworkStack/src/android/net/util/
DConnectivityPacketSummary.java54 import static com.android.net.module.util.NetworkStackConstants.IPV6_HEADER_LEN;
237 if (mPacket.remaining() < IPV6_HEADER_LEN) { in parseIPv6()
253 mPacket.position(startOfIpLayer + IPV6_HEADER_LEN); in parseIPv6()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfTest.java1044 private static final int IPV6_HEADER_LEN = 40; field in ApfTest
1049 private static final int IPV6_TCP_HEADER_OFFSET = IP_HEADER_OFFSET + IPV6_HEADER_LEN;
1064 private static final int ICMP6_TYPE_OFFSET = IP_HEADER_OFFSET + IPV6_HEADER_LEN;
1072 IP_HEADER_OFFSET + IPV6_HEADER_LEN + 2;
1074 IP_HEADER_OFFSET + IPV6_HEADER_LEN + 6;
1076 IP_HEADER_OFFSET + IPV6_HEADER_LEN + 8;
1078 IP_HEADER_OFFSET + IPV6_HEADER_LEN + 12;
1080 IP_HEADER_OFFSET + IPV6_HEADER_LEN + ICMP6_RA_HEADER_LEN;
/packages/modules/NetworkStack/src/android/net/apf/
DApfFilter.java309 private static final int IPV6_HEADER_LEN = 40; field in ApfFilter
314 private static final int ICMP6_TYPE_OFFSET = ETH_HEADER_LEN + IPV6_HEADER_LEN;
553 ETH_HEADER_LEN + IPV6_HEADER_LEN + 2;
556 ETH_HEADER_LEN + IPV6_HEADER_LEN + ICMP6_RA_HEADER_LEN;
558 ETH_HEADER_LEN + IPV6_HEADER_LEN + 6;
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTestCommon.java48 import static com.android.net.module.util.NetworkStackConstants.IPV6_HEADER_LEN;
1465 && packet.get(ETHER_HEADER_LEN + IPV6_HEADER_LEN)
1473 && packet.get(ETHER_HEADER_LEN + IPV6_HEADER_LEN)