Home
last modified time | relevance | path

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

/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpPacketTest.java1131 final byte[] expected = new byte[DhcpPacket.MIN_PACKET_LENGTH_L2 + options.length]; in testDiscoverPacket()
1133 assertEquals(DhcpPacket.MIN_PACKET_LENGTH_L2, in testDiscoverPacket()
1136 System.arraycopy(options, 0, expected, DhcpPacket.MIN_PACKET_LENGTH_L2, options.length); in testDiscoverPacket()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpPacket.java86 public static final int MIN_PACKET_LENGTH_L2 = MIN_PACKET_LENGTH_L3 + 14; field in DhcpPacket
953 if (packet.remaining() < MIN_PACKET_LENGTH_L2) { in decodeFullPacket()
955 "L2 packet too short, %d < %d", packet.remaining(), MIN_PACKET_LENGTH_L2); in decodeFullPacket()