Home
last modified time | relevance | path

Searched refs:ETH_HEADER_LEN (Results 1 – 5 of 5) sorted by relevance

/packages/modules/NetworkStack/src/android/net/apf/
DApfFilter.java284 private static final int ETH_HEADER_LEN = 14; field in ApfFilter
290 private static final int IPV4_TOTAL_LENGTH_OFFSET = ETH_HEADER_LEN + 2;
291 private static final int IPV4_FRAGMENT_OFFSET_OFFSET = ETH_HEADER_LEN + 6;
295 private static final int IPV4_PROTOCOL_OFFSET = ETH_HEADER_LEN + 9;
296 private static final int IPV4_DEST_ADDR_OFFSET = ETH_HEADER_LEN + 16;
304 private static final int IPV6_FLOW_LABEL_OFFSET = ETH_HEADER_LEN + 1;
306 private static final int IPV6_NEXT_HEADER_OFFSET = ETH_HEADER_LEN + 6;
307 private static final int IPV6_SRC_ADDR_OFFSET = ETH_HEADER_LEN + 8;
308 private static final int IPV6_DEST_ADDR_OFFSET = ETH_HEADER_LEN + 24;
314 private static final int ICMP6_TYPE_OFFSET = ETH_HEADER_LEN + IPV6_HEADER_LEN;
[all …]
/packages/modules/Connectivity/Tethering/tests/privileged/src/android/net/ip/
DDadProxyTest.java139 private static final int ETH_HEADER_LEN = 14; 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()
198 final short checksum = icmpv6Checksum(buf, ETH_HEADER_LEN, transportOffset, icmpLen); in createDadPacket()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DApfTest.java1013 private static final int ETH_HEADER_LEN = 14; field in ApfTest
1019 private static final int IP_HEADER_OFFSET = ETH_HEADER_LEN;
1100 private static final int UDP_DESTINATION_PORT_OFFSET = ETH_HEADER_LEN + 22;
1103 private static final int DHCP_CLIENT_MAC_OFFSET = ETH_HEADER_LEN + UDP_HEADER_LEN + 48;
1105 private static final int ARP_HEADER_OFFSET = ETH_HEADER_LEN;
1738 ByteBuffer packet = ByteBuffer.wrap(new byte[totalLength + ETH_HEADER_LEN]); in ipv4TcpPacket()
1831 ByteBuffer packet = ByteBuffer.wrap(new byte[totalLength + ETH_HEADER_LEN]); in ipv4UdpPacket()
1898 packet.position(ETH_HEADER_LEN); in buildLargeRa()
2030 final int VERSION_TRAFFIC_CLASS_FLOW_LABEL_OFFSET = ETH_HEADER_LEN; in makeBaseRaPacket()
2062 final int VERSION_TRAFFIC_CLASS_FLOW_LABEL_OFFSET = ETH_HEADER_LEN; in testApfFilterRa()
/packages/modules/Connectivity/Tethering/src/android/net/ip/
DNeighborPacketForwarder.java63 private static final int ETH_HEADER_LEN = 14; field in NeighborPacketForwarder
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTestCommon.java296 private static final int ETH_HEADER_LEN = 14; field in IpClientIntegrationTestCommon
300 private static final int IPV4_SRC_ADDR_OFFSET = ETH_HEADER_LEN + 12;
305 private static final int UDP_HEADER_OFFSET = ETH_HEADER_LEN + IPV4_HEADER_LEN;
309 private static final int DHCP_HEADER_OFFSET = ETH_HEADER_LEN + IPV4_HEADER_LEN