packet analyzer in c

This is a discussion on packet analyzer in c within the C Programming forums, part of the General Programming Boards category; Hi there, I am in a need of some network programming expereince, in particuar with packet sniffing. I am working ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,340
    cross-posted here
    packet analyzer in c
    read the rules
    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. 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, 10:34 AM
  5. packet analyzer in c
    By althagafi in forum Networking/Device Communication
    Replies: 16
    Last Post: 08-06-2004, 03:35 PM

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