From owner-freebsd-questions Thu Sep 28 08:21:20 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id IAA17155 for questions-outgoing; Thu, 28 Sep 1995 08:21:20 -0700 Received: from halloran-eldar.lcs.mit.edu (halloran-eldar.lcs.mit.edu [18.26.0.159]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id IAA17147 for ; Thu, 28 Sep 1995 08:21:17 -0700 Received: by halloran-eldar.lcs.mit.edu; (5.65/1.1.8.2/19Aug95-0530PM) id AA17814; Thu, 28 Sep 1995 11:21:13 -0400 Date: Thu, 28 Sep 1995 11:21:13 -0400 From: "Garrett A. Wollman" Message-Id: <9509281521.AA17814@halloran-eldar.lcs.mit.edu> To: Bill Fenner Cc: questions@freebsd.org Subject: What time zone does microtime() use? In-Reply-To: <95Sep27.162807pdt.177475@crevenia.parc.xerox.com> References: <95Sep27.162807pdt.177475@crevenia.parc.xerox.com> Sender: owner-questions@freebsd.org Precedence: bulk < 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