Re: [tcpdump-workers] Convert timeval to timestamp

2006-03-20 Thread Guy Harris
Luis Del Pino wrote: > What function do I have to use to convert a struct timeval (struct > pcap_pkthdr {struct timeval ts;...}) to timestamp units(u_int32)? > > i like calculating jitter in RTP streams. So by "timestamp units" do you mean IP/TCP time stamp units (which, according to RFC 791, are

Re: [tcpdump-workers] Convert timeval to timestamp

2006-03-20 Thread Jefferson Ogata
On 03/20/2006 08:29 PM, Luis Del Pino wrote: > What function do I have to use to convert a struct timeval (struct > pcap_pkthdr {struct timeval ts;...}) to timestamp units(u_int32)? Um, is this a trick question? man 2 gettimeofday (Linux): struct timeval { time_t tv

[tcpdump-workers] Convert timeval to timestamp

2006-03-20 Thread Luis Del Pino
What function do I have to use to convert a struct timeval (struct pcap_pkthdr {struct timeval ts;...}) to timestamp units(u_int32)? i like calculating jitter in RTP streams. Very thanks - This is the tcpdump-workers list. Visit https://lists.sandelman.ca/ to unsubscribe.