From owner-freebsd-net@FreeBSD.ORG Wed Sep 8 22:59:28 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3099F16A4CE for ; Wed, 8 Sep 2004 22:59:28 +0000 (GMT) Received: from exchange.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE8BA43D55 for ; Wed, 8 Sep 2004 22:59:27 +0000 (GMT) (envelope-from emaste@sandvine.com) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6556.0 Date: Wed, 8 Sep 2004 18:59:27 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] Add ioctl to disable bpf timestamping Thread-Index: AcSVhf6W3LYJw2mITSaLnaY/RoG35gAcPc1w From: "Ed Maste" To: Subject: RE: [PATCH] Add ioctl to disable bpf timestamping X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Sep 2004 22:59:28 -0000 >From Bruce's patch: + if (d->bd_tstamp =3D=3D BPF_TSTAMP_MICROTIME) + microtime(&hp->bh_tstamp); + else if (d->bd_tstamp =3D=3D BPF_TSTAMP_GETMICROTIME) + getmicrotime(&hp->bh_tstamp); Perhaps set the timestamp to zero in the else case? Ed Maste Sandvine Inc.