in reply to Got a question when write pcap files

perhaps you could provide a pared-down code sample for how you are getting the data into the hash (remember to use <code> tags). While the Net::pcap::pcap_dump function writes a single packet, it is similar to a print to an open file -- you can write as many packets as you want, just one at a time.

fnord

  • Comment on Re: Got a question when write pcap files

Replies are listed 'Best First'.
Re^2: Got a question when write pcap files
by wildnature (Novice) on Jan 14, 2011 at 09:05 UTC

    thanks a lot

    i decide to use tool of 'dumpcap' to write file, that may be more efficient :)