![]() * ethernet headers are always exactly 14 bytes */ * default snap length (maximum bytes per packet to capture) */ ( though i do the same amount of browsing in both places ) #define INTERVAL 1000 /* number of milliseconds to go off */ But when i run the same program in my lab, just 1 packet is captured per second. I am encountering the following problems :ġ.file writing part works fine during some executions, but most of the other times ,in the same machine, the file is not at all written to.Ģ.When i execute this program in my house, about 30 packets are captured every second. 1 sec, the frequency of occurence of various flags, and distinct number of Src IPs, Ack nos and Seq nos encountered are written into a file. I have also included a timer, so that after every 1000 millisec i.e. The following is a program that captures TCP packets and prints header related information in the console for every packet.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |