Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Dec 2001 13:29:24 -0500
From:      Barney Wolff <barney@databus.com>
To:        Doug Ambrisko <ambrisko@ambrisko.com>
Cc:        Marco Molteni <molter@tin.it>, freebsd-net@FreeBSD.ORG
Subject:   Re: pcap_open_live() takes 1 sec to complete?
Message-ID:  <20011206132924.A65556@tp.databus.com>
In-Reply-To: <200112061823.fB6INsP49553@ambrisko.com>; from ambrisko@ambrisko.com on Thu, Dec 06, 2001 at 10:23:52AM -0800
References:  <20011206141330.A17077@cobweb.example.org> <200112061823.fB6INsP49553@ambrisko.com>

next in thread | previous in thread | raw e-mail | index | archive | help
As I recall, delays like that come from the power-saving mode on
the card.  Turn power-saving off to make them go away.

On Thu, Dec 06, 2001 at 10:23:52AM -0800, Doug Ambrisko wrote:
> 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

-- 
Barney Wolff

"Nonetheless, ease and peace had left this people still curiously tough.
They were, if it came to it, difficult to daunt or to kill; and they were,
perhaps, so unwearyingly fond of good things not least because they could,
when put to it, do without them, and could survive rough handling by grief,
foe, or weather in a way that astonished those who did not know them well
and looked no further than their bellies and their well-fed faces." J.R.R.T.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




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