Extracting info from a packet trace file

This is a discussion on Extracting info from a packet trace file within the C Programming forums, part of the General Programming Boards category; i have a few packet trace files, i can view it in wireshark to double check to see if what ...

  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    3

    Extracting info from a packet trace file

    i have a few packet trace files, i can view it in wireshark to double check to see if what im getting is right. however im having trouble extracting the data from the file.

    before i show any code do i use ntohl() to extract the info from the packet?

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,485
    Maybe read the wireshark / pcap documentation to discover the format of capture files.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Formatting a text file...
    By dagorsul in forum C Programming
    Replies: 12
    Last Post: 05-02-2008, 03:53 AM
  2. Formatting the contents of a text file
    By dagorsul in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2008, 12:36 PM
  3. gcc link external library
    By spank in forum C Programming
    Replies: 6
    Last Post: 08-08-2007, 03:44 PM
  4. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM
  5. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 03:39 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21