Log DHCP replies that we can't parse.

Bug: 19704592
Bug: 20335221
Change-Id: I73def02a08345bd96f45cb970f9f251e6d5df2db
This commit is contained in:
Lorenzo Colitti
2015-04-22 10:50:08 +09:00
parent 009d4a864f
commit f0e3a7044b

View File

@@ -92,6 +92,7 @@ public class DhcpClient extends BaseDhcpStateMachine {
private static final boolean DBG = true;
private static final boolean STATE_DBG = false;
private static final boolean MSG_DBG = false;
private static final boolean PACKET_DBG = true;
// Timers and timeouts.
private static final int SECONDS = 1000;
@@ -331,6 +332,9 @@ public class DhcpClient extends BaseDhcpStateMachine {
if (packet != null) {
maybeLog("Received packet: " + packet);
sendMessage(CMD_RECEIVED_PACKET, packet);
} else if (PACKET_DBG) {
Log.d(TAG,
"Can't parse packet" + HexDump.dumpHexString(mPacket, 0, length));
}
} catch (IOException|ErrnoException e) {
if (!stopped) {