From owner-freebsd-net@FreeBSD.ORG Wed Sep 8 15:02:42 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 26DC716A4CE for ; Wed, 8 Sep 2004 15:02:42 +0000 (GMT) Received: from magellan.palisadesys.com (magellan.palisadesys.com [192.188.162.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0E0743D64 for ; Wed, 8 Sep 2004 15:02:41 +0000 (GMT) (envelope-from ghelmer@palisadesys.com) Received: from [172.16.1.113] (cetus.palisadesys.com [192.188.162.7]) (authenticated bits=0)i88F2fwF027524 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 8 Sep 2004 10:02:41 -0500 (CDT) (envelope-from ghelmer@palisadesys.com) Message-ID: <413F1F16.5050303@palisadesys.com> Date: Wed, 08 Sep 2004 10:02:46 -0500 From: Guy Helmer User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bruce M Simpson References: <20040908092624.GD793@empiric.icir.org> In-Reply-To: <20040908092624.GD793@empiric.icir.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org cc: tcpdump-workers@tcpdump.org 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 15:02:42 -0000 Bruce M Simpson wrote: >Here's a patch against 5.3 to add a per-instance switch which allows >the user to specify if captured packets should be timestamped (and, >if so, whether microtime() or the faster but less accurate >getmicrotime() call should be used). > > I like the idea (I've been using a hack to call getmicrotime() in bpf in my own kernels), but I wonder if it would be better as a sysctl? Then it wouldn't require changes to libpcap and/or tcpdump, and would work with any application. Thanks, Guy -- Guy Helmer, Ph.D., Principal System Architect, Palisade Systems, Inc. ghelmer@palisadesys.com ghelmer@freebsd.org