I have a question about the time stamp.
I have pcap file and part of the program is to print the time stamp of packet in C/C++.
I'm using
pcap_next_ex(app->pcap, &header, &data)
for get the packet from the pcap and
printf("%ld \n", header->ts.tv_sec);
printf("%ld \n", header->ts.tv_usec);
for printing the timstamp.
the problem is that I read the first packet and the output of the printf is-
the first printf- 1303140747
the second printf 467638
and the real timestamp is 0.00000 (the first packet)
Am I doing something wrong here?
thanks!