Process multiple pcap files at once

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lancer6238
    New Member
    • Sep 2007
    • 2

    Process multiple pcap files at once

    Hi all,
    I'm writing a program using libpcap, and I have multiple pcap files in a folder that I want to capture.

    I currently have

    handle = pcap_open_offli ne("/data/traffic/pcap1.pcap", errbuf");

    which works fine since pcap_open_offli ne() takes in a filename. However, I want to process multiple pcap files from the directory /data/traffic/ at once. Is there a way to do that?

    Thank you.

    Regards,
    Rayne
Working...