From owner-freebsd-net Sun Nov 3 14:12:41 2002 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 EB41037B401 for ; Sun, 3 Nov 2002 14:12:40 -0800 (PST) Received: from silver.he.iki.fi (silver.he.iki.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9993643E42 for ; Sun, 3 Nov 2002 14:12:39 -0800 (PST) (envelope-from pete@he.iki.fi) Received: from PHE (silver.he.iki.fi [193.64.42.241]) by silver.he.iki.fi (8.12.6/8.11.4) with SMTP id gA3MCRYj065987 for ; Mon, 4 Nov 2002 00:12:31 +0200 (EET) (envelope-from pete@he.iki.fi) Message-ID: <03fe01c28386$186fed80$862a40c1@PHE> From: "Petri Helenius" To: Subject: bpf Date: Mon, 4 Nov 2002 00:12:26 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 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 I believe the select operation on bpf is not functioning as supposed to. I´m calling select with 100ms timeout. The bpf interface is listening to an interface with constant packet rate, so it´s certain that multiple packets have been received during the select call. However the fd for the bpf device is not set until the bpf buffer is full. (which might be several seconds away since I´m using fairly large bpf buffers) Looking at the code I get the impression that if there are packets on the bpf buffer when the select timeouts, it should return the fd for the bpf ? Pete To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message