Home
last modified time | relevance | path

Searched refs:UDP_HEADER_LEN (Results 1 – 11 of 11) sorted by relevance

/packages/modules/NetworkStack/src/android/net/apf/
DApfConstants.java74 public static final int UDP_HEADER_LEN = 8; field in ApfConstants
114 public static final int DHCP_CLIENT_MAC_OFFSET = ETH_HEADER_LEN + UDP_HEADER_LEN + 28;
116 ETH_HEADER_LEN + UDP_HEADER_LEN + DNS_QDCOUNT_OFFSET;
118 ETH_HEADER_LEN + UDP_HEADER_LEN + DNS_HEADER_LEN;
DDnsUtils.java24 import static com.android.net.module.util.NetworkStackConstants.UDP_HEADER_LEN;
351 final int etherPlusUdpLen = ETHER_HEADER_LEN + UDP_HEADER_LEN; in generateFilter()
DLegacyApfFilter.java267 private static final int UDP_HEADER_LEN = 8; field in LegacyApfFilter
273 private static final int DHCP_CLIENT_MAC_OFFSET = ETH_HEADER_LEN + UDP_HEADER_LEN + 28;
304 ETH_HEADER_LEN + UDP_HEADER_LEN + DNS_QDCOUNT_OFFSET;
306 ETH_HEADER_LEN + UDP_HEADER_LEN + DNS_HEADER_LEN;
1040 static final int UDP_HEADER_LEN = 8; field in LegacyApfFilter.NattKeepaliveResponse
1087 gen.addAdd(UDP_HEADER_LEN); in generateFilterLocked()
1100 gen.addAdd(UDP_HEADER_LEN); in generateFilterLocked()
DApfFilter.java1294 static final int UDP_HEADER_LEN = 8; field in ApfFilter.NattKeepaliveResponse
1341 gen.addAdd(UDP_HEADER_LEN); in generateFilterLocked()
1354 gen.addAdd(UDP_HEADER_LEN); in generateFilterLocked()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DPacketBuilderTest.java29 import static com.android.net.module.util.NetworkStackConstants.UDP_HEADER_LEN;
617 assertEquals(IPV4_HEADER_MIN_LEN + UDP_HEADER_LEN + dataLength, in checkIpv4Header()
650 assertEquals(UDP_HEADER_LEN + dataLength, ipv6Header.payloadLength); in checkIpv6Header()
736 assertEquals(UDP_HEADER_LEN + dataLength, udpHeader.length); in checkUdpPacket()
/packages/modules/NetworkStack/src/android/net/util/
DConnectivityPacketSummary.java57 import static com.android.net.module.util.NetworkStackConstants.UDP_HEADER_LEN;
368 if (mPacket.remaining() < UDP_HEADER_LEN) { in parseUDP()
378 mPacket.position(previous + UDP_HEADER_LEN); in parseUDP()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DNetworkStackConstants.java217 public static final int UDP_HEADER_LEN = 8; field in NetworkStackConstants
/packages/modules/NetworkStack/tests/integration/signature/android/net/util/
DNetworkStackUtilsIntegrationTest.kt56 import com.android.net.module.util.NetworkStackConstants.UDP_HEADER_LEN
157 ETHER_HEADER_LEN + IPV4_HEADER_MIN_LEN + UDP_HEADER_LEN, sentPacket.size) in testAddArpEntry()
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/
DLegacyApfTest.java427 private static final int UDP_HEADER_LEN = 8; field in LegacyApfTest
431 private static final int DHCP_CLIENT_MAC_OFFSET = ETH_HEADER_LEN + UDP_HEADER_LEN + 48;
1195 final int totalLength = dataLength + IPV4_HEADER_LEN + UDP_HEADER_LEN; in ipv4UdpPacket()
1196 final int udpLength = UDP_HEADER_LEN + dataLength; in ipv4UdpPacket()
DApfTest.java1131 private static final int UDP_HEADER_LEN = 8; field in ApfTest
1135 private static final int DHCP_CLIENT_MAC_OFFSET = ETH_HEADER_LEN + UDP_HEADER_LEN + 48;
2265 final int totalLength = dataLength + IPV4_HEADER_LEN + UDP_HEADER_LEN; in ipv4UdpPacket()
2266 final int udpLength = UDP_HEADER_LEN + dataLength; in ipv4UdpPacket()
/packages/modules/NetworkStack/tests/integration/common/android/net/ip/
DIpClientIntegrationTestCommon.java413 private static final int UDP_HEADER_LEN = 8; field in IpClientIntegrationTestCommon
419 + UDP_HEADER_LEN;
426 + UDP_HEADER_LEN;