packet analyzer in c
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 :p ( 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