c++ - Print the timestamp of packet with libpcap -


i have question time stamp.

i have pcap file , part of program print time stamp of packet in c/c++.

i'm using

pcap_next_ex(app->pcap, &header, &data)

for packet pcap ,

printf("%ld \n", header->ts.tv_sec);

printf("%ld \n", header->ts.tv_usec);

for printing timstamp.

the problem read first packet , output of printf is-

the first printf- 1303140747

the second printf 467638

and real timestamp 0.00000 (the first packet)

am doing wrong here?

thanks!


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -