my $dump = Net::Packet::Dump->new( filter => 'dst port 546 or dst port 547', noStore => 1, ); while (1) { if (my $frame = $dump->next) { print $frame->l2->print, "\n" if $frame->l2; print $frame->l3->print, "\n" if $frame->l3; print $frame->l4->print, "\n" if $frame->l4; print $frame->l7->print, "\n" if $frame->l7; } }