dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Help with pcap

  1. #1
    Join Date
    Oct 2011
    Posts
    1

    Unhappy Help with pcap

    Hi guys

    I am new to using pcap and tools associated with it. I have huge traces (in TB) which I have to analyze. I am only interested in the packet header (viz absolute timestamp, sending and receiving MAC, sending and receiving IP and transport protocol ports. All other information are not required. Is there a way that I can extract these information from a pcap file to a tab seperated text file? or any other format wher I can post process it is also ok.

    Initially I tried exporting the pcap file to text and then used shell tools to extract the data. but it proved hugely expensive in storage and in computing power.

    Any suggestion or starting point would be greatly helpful.

    THanks in advance

  2. #2
    Join Date
    Mar 2008
    Posts
    5

    Re: Help with pcap

    I think you can read your pcap file using pcap_* functions, following are some related pcap functions:

    pcap_open(), pcap_next()/pcap_next_ex(),pcap_close().

    Reference http://www.tcpdump.org or http://www.wireshark.org for detailed information.

    Good luck!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)