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.java171 private static final int ETH_HEADER_LEN = 14; field in ApfFilter
177 private static final int IPV4_FRAGMENT_OFFSET_OFFSET = ETH_HEADER_LEN + 6;
181 private static final int IPV4_PROTOCOL_OFFSET = ETH_HEADER_LEN + 9;
182 private static final int IPV4_DEST_ADDR_OFFSET = ETH_HEADER_LEN + 16;
186 private static final int IPV6_NEXT_HEADER_OFFSET = ETH_HEADER_LEN + 6;
187 private static final int IPV6_SRC_ADDR_OFFSET = ETH_HEADER_LEN + 8;
188 private static final int IPV6_DEST_ADDR_OFFSET = ETH_HEADER_LEN + 24;
194 private static final int ICMP6_TYPE_OFFSET = ETH_HEADER_LEN + IPV6_HEADER_LEN;
201 private static final int UDP_DESTINATION_PORT_OFFSET = ETH_HEADER_LEN + 2;
206 private static final int DHCP_CLIENT_MAC_OFFSET = ETH_HEADER_LEN + UDP_HEADER_LEN + 28;
[all …]
/frameworks/base/tests/net/java/android/net/apf/
DApfTest.java655 private static final int ETH_HEADER_LEN = 14; field in ApfTest
661 private static final int IPV4_VERSION_IHL_OFFSET = ETH_HEADER_LEN + 0;
662 private static final int IPV4_PROTOCOL_OFFSET = ETH_HEADER_LEN + 9;
663 private static final int IPV4_DEST_ADDR_OFFSET = ETH_HEADER_LEN + 16;
667 private static final int IPV6_NEXT_HEADER_OFFSET = ETH_HEADER_LEN + 6;
669 private static final int IPV6_DEST_ADDR_OFFSET = ETH_HEADER_LEN + 24;
676 private static final int ICMP6_TYPE_OFFSET = ETH_HEADER_LEN + IPV6_HEADER_LEN;
684 ETH_HEADER_LEN + IPV6_HEADER_LEN + 6;
686 ETH_HEADER_LEN + IPV6_HEADER_LEN + 2;
688 ETH_HEADER_LEN + IPV6_HEADER_LEN + ICMP6_RA_HEADER_LEN;
[all …]