Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/src/android/net/apf/
DApfFilter.java281 private static final int ETH_HEADER_LEN = 14; field in ApfFilter
289 private static final int IPV4_TOTAL_LENGTH_OFFSET = ETH_HEADER_LEN + 2;
290 private static final int IPV4_FRAGMENT_OFFSET_OFFSET = ETH_HEADER_LEN + 6;
294 private static final int IPV4_PROTOCOL_OFFSET = ETH_HEADER_LEN + 9;
295 private static final int IPV4_DEST_ADDR_OFFSET = ETH_HEADER_LEN + 16;
303 private static final int IPV6_FLOW_LABEL_OFFSET = ETH_HEADER_LEN + 1;
305 private static final int IPV6_NEXT_HEADER_OFFSET = ETH_HEADER_LEN + 6;
306 private static final int IPV6_SRC_ADDR_OFFSET = ETH_HEADER_LEN + 8;
307 private static final int IPV6_DEST_ADDR_OFFSET = ETH_HEADER_LEN + 24;
313 private static final int ICMP6_TYPE_OFFSET = ETH_HEADER_LEN + IPV6_HEADER_LEN;
[all …]
/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;
1096 private static final int UDP_DESTINATION_PORT_OFFSET = ETH_HEADER_LEN + 22;
1099 private static final int DHCP_CLIENT_MAC_OFFSET = ETH_HEADER_LEN + UDP_HEADER_LEN + 48;
1101 private static final int ARP_HEADER_OFFSET = ETH_HEADER_LEN;
1726 ByteBuffer packet = ByteBuffer.wrap(new byte[totalLength + ETH_HEADER_LEN]); in ipv4TcpPacket()
1819 ByteBuffer packet = ByteBuffer.wrap(new byte[totalLength + ETH_HEADER_LEN]); in ipv4UdpPacket()
1886 packet.position(ETH_HEADER_LEN); in buildLargeRa()
2018 final int VERSION_TRAFFIC_CLASS_FLOW_LABEL_OFFSET = ETH_HEADER_LEN; in makeBaseRaPacket()
2050 final int VERSION_TRAFFIC_CLASS_FLOW_LABEL_OFFSET = ETH_HEADER_LEN; in testApfFilterRa()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTest.java225 private static final int ETH_HEADER_LEN = 14; field in IpClientIntegrationTest
229 private static final int IPV4_SRC_ADDR_OFFSET = ETH_HEADER_LEN + 12;
234 private static final int UDP_HEADER_OFFSET = ETH_HEADER_LEN + IPV4_HEADER_LEN;
238 private static final int DHCP_HEADER_OFFSET = ETH_HEADER_LEN + IPV4_HEADER_LEN