Thread: packet analyzer in c

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    14

    packet analyzer in c

    Hi there,

    I am in a need of some network programming expereince, in particuar with packet sniffing.

    I am working on building a Net. Analyzer and 50% is ready, I need some help in building several functions to extract the protocols from the packet and print them in order.

    so what I need exactly is functions that have the following parameters ( a pointer to the head of the packet), and lenght (the lenght of the packet), then they extract each protocol and print it.

    The ethernet header comes first, then the IP or /ARP, then TCP or UDP.

    Hope Imake it clear for others to help.


    Thank you in advance

    Ahmed.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Packet processing in Socket programming, please help
    By pumpkin in forum Networking/Device Communication
    Replies: 5
    Last Post: 05-28-2009, 01:33 AM
  2. Replies: 4
    Last Post: 05-05-2009, 05:35 AM
  3. Global Variables
    By Taka in forum C Programming
    Replies: 34
    Last Post: 11-02-2007, 03:25 AM
  4. Raw Packet (sorry tripple weird Post)
    By Coder87C in forum Networking/Device Communication
    Replies: 6
    Last Post: 03-04-2006, 11:34 AM
  5. packet analyzer in c
    By althagafi in forum Networking/Device Communication
    Replies: 16
    Last Post: 08-06-2004, 03:35 PM