return true;
}
try {
// keep going until the decoder says it found a good one.
PcapPacket packet;
do {
packet = is.getPacket();
eth.decode(packet);
} while (!valid);
long tv_sec = packet.getPacketHeader().getTsSec();
long tv_usec = packet.getPacketHeader().getTsUsec();
long ts = tv_sec * 1000 + tv_usec / 1000;
key = new Date(ts).getTime() / 1000;
int id = dns.getHeader().getID();
String mode = dns.getHeader().getFlag(Flags.QR) ? "response" : "question";