Home
last modified time | relevance | path

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

/frameworks/base/services/net/java/android/net/apf/
DApfFilter.java250 private static final int ETH_HEADER_LEN = 14; field in ApfFilter
258 private static final int IPV4_FRAGMENT_OFFSET_OFFSET = ETH_HEADER_LEN + 6;
262 private static final int IPV4_PROTOCOL_OFFSET = ETH_HEADER_LEN + 9;
263 private static final int IPV4_DEST_ADDR_OFFSET = ETH_HEADER_LEN + 16;
270 private static final int IPV6_FLOW_LABEL_OFFSET = ETH_HEADER_LEN + 1;
272 private static final int IPV6_NEXT_HEADER_OFFSET = ETH_HEADER_LEN + 6;
273 private static final int IPV6_SRC_ADDR_OFFSET = ETH_HEADER_LEN + 8;
274 private static final int IPV6_DEST_ADDR_OFFSET = ETH_HEADER_LEN + 24;
280 private static final int ICMP6_TYPE_OFFSET = ETH_HEADER_LEN + IPV6_HEADER_LEN;
283 private static final int UDP_DESTINATION_PORT_OFFSET = ETH_HEADER_LEN + 2;
[all …]
/frameworks/base/tests/net/java/android/net/apf/
DApfTest.java895 private static final int ETH_HEADER_LEN = 14; field in ApfTest
901 private static final int IPV4_VERSION_IHL_OFFSET = ETH_HEADER_LEN + 0;
902 private static final int IPV4_PROTOCOL_OFFSET = ETH_HEADER_LEN + 9;
903 private static final int IPV4_DEST_ADDR_OFFSET = ETH_HEADER_LEN + 16;
907 private static final int IPV6_NEXT_HEADER_OFFSET = ETH_HEADER_LEN + 6;
909 private static final int IPV6_DEST_ADDR_OFFSET = ETH_HEADER_LEN + 24;
916 private static final int ICMP6_TYPE_OFFSET = ETH_HEADER_LEN + IPV6_HEADER_LEN;
924 ETH_HEADER_LEN + IPV6_HEADER_LEN + 6;
926 ETH_HEADER_LEN + IPV6_HEADER_LEN + 2;
928 ETH_HEADER_LEN + IPV6_HEADER_LEN + ICMP6_RA_HEADER_LEN;
[all …]