Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Sep 1995 11:21:13 -0400
From:      "Garrett A. Wollman" <wollman@lcs.mit.edu>
To:        Bill Fenner <fenner@parc.xerox.com>
Cc:        questions@freebsd.org
Subject:   What time zone does microtime() use?
Message-ID:  <9509281521.AA17814@halloran-eldar.lcs.mit.edu>
In-Reply-To: <95Sep27.162807pdt.177475@crevenia.parc.xerox.com>
References:  <95Sep27.162807pdt.177475@crevenia.parc.xerox.com>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Wed, 27 Sep 1995 16:28:01 PDT, Bill Fenner <fenner@parc.xerox.com> said:

> Hi,
>   tcpdump prints out the time that a packet was received, according to BPF.
> BPF uses microtime() to record this time.  When I use tcpdump on my
> 2.1-STABLE machine from a couple of days ago, it prints out times that
> appear to be GMT+1.

That means tcpdump is doing something strange, since gettimeofday() is
little more than a call to microtime().  The bug in question appears
to be in the gmt2local() routine in util.c, and I believe it will be
trivial to fix, as that code is clearly wrong.

-GAWollman

--
Garrett A. Wollman   | Shashish is simple, it's discreet, it's brief. ... 
wollman@lcs.mit.edu  | Shashish is the bonding of hearts in spite of distance.
Opinions not those of| It is a bond more powerful than absence.  We like people
MIT, LCS, ANA, or NSA| who like Shashish.  - Claude McKenzie + Florent Vollant



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9509281521.AA17814>