From owner-freebsd-net Thu Dec 6 10:24:21 2001 Delivered-To: freebsd-net@freebsd.org Received: from ambrisko.com (adsl-64-174-51-42.dsl.snfc21.pacbell.net [64.174.51.42]) by hub.freebsd.org (Postfix) with ESMTP id BE69637B419 for ; Thu, 6 Dec 2001 10:24:18 -0800 (PST) Received: (from ambrisko@localhost) by ambrisko.com (8.11.6/8.11.6) id fB6INsP49553; Thu, 6 Dec 2001 10:23:54 -0800 (PST) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <200112061823.fB6INsP49553@ambrisko.com> Subject: Re: pcap_open_live() takes 1 sec to complete? In-Reply-To: <20011206141330.A17077@cobweb.example.org> To: Marco Molteni Date: Thu, 6 Dec 2001 10:23:52 -0800 (PST) Cc: freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL94b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Marco Molteni writes: | I am writing a small program that does a pcap_open_live() on the | Aironet an device, PCMCIA mode. System is a recent -stable on a | Toshiba Portege 7200 laptop. | | Now, pcap_open_live() takes more than 1 sec to return. Is this long | time expected? Hmm, don't seem to recall that. My system is busy doing a make world and stuff. I just tried it and on my busy machine it was less then a second. Note I was not in RFMON mode. It might take longer when I have to switch into RFMON mode. I can try that later. You might try to compare it without RFMON if you are using RFMON. FYI, I put a sample BPF packet dumper up at: http://www.ambrisko.com/doug/an/dump_packet/ I used it to debug the 802.11 packet problem and to look at the raw Aironet Header packets. You'll see it has some test code to check gap length. This is on -stable with my 802.11 aligment fix. Doug A. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message