My laptop is connected to a network. I am writing a program in C (LINUX) in linux environment which reads the packets received by my laptop and evaluating the information in the packet. But I am stuck in the initial stage itself how to read a packet. I know ethereal tool but I want to write my own code to read a packet.
Please can anyone tell me in programming guidelines how to read a packet and store the information it contains and also to check what data it has.
Someone specifying links to this topic is also appreciated.
please reply me asap,
thanks in advance,