I got to decide the format for logfile. The major problem is that where to put the information that is generated by the sniffer.
Sol1 : Just save the packets in the TCPDUMP format and open it when the user wants it. But this turns the whole idea of the tool upside down because this will be like some program that is used to analyse TCPDUMP files.
So12 : Create a structure with the message and packet and put it in a file. Just display the message and display the corresponding packet on demand.
Sol3 : Use a database like MySQL for logging all the details. But this is way too complicated as it needs to set up a DB and lot of stuff which is not possibe within the time limit.
Sol 4 : ?????? 🙂
The tool i had in mind is turning out more like to be a TCPDUMP file analyser. But this will enable me to learn a lot of new stuff 😉