<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=KOI8-R" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>I do not understand why do you need that. Could you please explain?<br>
As far as I know timeval is used not for the <b>time</b> representing
but for the <b>short period of time</b> representing.<br>
<br>
<br>
So I can only assume the answer for your question.<br>
</tt><tt>I made a quick look at the wpcap sources and found these lines:<br>
<b> timeout.tv_sec = to_ms / 1000;<br>
timeout.tv_usec = (to_ms * 1000) % 1000000;<br>
</b>Where <b>to_ms</b> is the some microseconds value.<br>
<br>
</tt><br>
Marcel van Lieshout wrote:
<blockquote cite="mid001201c68ae7$fb35bfc0$41cda8c0@hmcs.local"
type="cite">
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.2900.2873" name="GENERATOR">
<style></style>
<div><font face="Arial" size="2">yes and</font></div>
<div></div>
<div><font face="Arial" size="2">When generating packets to besaved
to diskusing <font face="Times New Roman" size="3">pcap_dump(), what
is the easiest way to generate the timestamp from the current time?</font></font></div>
<div></div>
<div><font face="Arial" size="2">Marcel</font></div>
<blockquote
style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div
style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;">-----
Original Message ----- </div>
<div
style="background: rgb(228, 228, 228) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>From:</b>
<a title="chikabanga2005@yahoo.com"
href="mailto:chikabanga2005@yahoo.com">joe kibz</a> </div>
<div
style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>To:</b>
<a title="winpcap-users@winpcap.org"
href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</a> </div>
<div
style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Sent:</b>
Thursday, June 08, 2006 12:08 PM</div>
<div
style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"><b>Subject:</b>
[Winpcap-users] Re: header->ts.tv_usec</div>
<div><br>
</div>
<div>Problem:</div>
<div></div>
<div>The timeval ts for the generic header for each packet captured
.</div>
<div>What exactly does the second value <a moz-do-not-send="true"
class="code"
href="file:///C:/joekibz/WpdPack/docs/html/structpcap__pkthdr.html#o0">ts</a>.tv_usec
represent ?</div>
<div></div>
<div></div>
<div>joe</div>
<p>__________________________________________________<br>
Do You Yahoo!?<br>
Tired of spam? Yahoo! Mail has the best spam protection around <br>
<a href="http://mail.yahoo.com">http://mail.yahoo.com</a> </p>
<p>__________________________________________________<br>
Do You Yahoo!?<br>
Tired of spam? Yahoo! Mail has the best spam protection around <br>
<a class="moz-txt-link-freetext" href="http://mail.yahoo.com">http://mail.yahoo.com</a> </p>
<p> </p>
<hr> _______________________________________________<br>
Winpcap-users mailing list<br>
<a class="moz-txt-link-abbreviated" href="mailto:Winpcap-users@winpcap.org">Winpcap-users@winpcap.org</a><br>
<a class="moz-txt-link-freetext" href="https://www.winpcap.org/mailman/listinfo/winpcap-users">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
</blockquote>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Winpcap-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Winpcap-users@winpcap.org">Winpcap-users@winpcap.org</a>
<a class="moz-txt-link-freetext" href="https://www.winpcap.org/mailman/listinfo/winpcap-users">https://www.winpcap.org/mailman/listinfo/winpcap-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="80">--
Best regards. Vasily Borovyak <a class="moz-txt-link-rfc2396E" href="mailto:vbor@isd.dp.ua"><vbor@isd.dp.ua></a></pre>
</body>
</html>