[Winpcap-users] About struct timeval and header->ts.tv_usec
HAMON Fran?ois
f.hamon at astellia.com
Mon May 23 13:08:02 GMT 2005
It is associated with the Berkeley Software Distribution (BSD) file Time.h.
typedef struct timeval {
long tv_sec;
long tv_usec;
} timeval;
Members:
tv_sec :Time value, in seconds.
tv_usec : Time value, in microseconds.
-----Message d'origine-----
De?: He Zhiyu [mailto:zhiyu_he at hotmail.com]
Envoy¨¦?: lundi 23 mai 2005 11:47
¨¤?: winpcap-users at winpcap.org
Objet?: [Winpcap-users] About struct timeval and header->ts.tv_usec
Hi,
struct pcap_pkthdr {
struct timeval ts;
bpf_u_int32 caplen;
bpf_u_int32 len;
};
1.What's the definition of "struct timeval"? I searched WinPcap's source
file,but I didn't find.
2.How can I convert header->ts.tv_usec to readable format?
Thanks
Zhiyu He
_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn
_______________________________________________
Winpcap-users mailing list
Winpcap-users at winpcap.org
https://www.winpcap.org/mailman/listinfo/winpcap-users
More information about the Winpcap-users
mailing list