argument('file')); $this->info(sprintf('Packet: %s has %s messages. Addr: %s->%s (Date: %s)', $pkt->filename, $pkt->messages->count(), $pkt->pktsrc, $pkt->pktdst, $pkt->date )); foreach ($pkt->messages as $o) { $this->warn(sprintf('-- From: %s(%s)->%s(%s), Type: %s, Size: %d', $o->from, $o->fqfa, $o->to, $o->fqda, $o->type, strlen($o->message) )); if ($o->unknown->count()) $this->error(sprintf('?? %s Unknown headers',$o->unknown->count())); } if ($this->option('detail')) dd($o); if ($this->option('dump')) echo $pkt->dump(); } }