From owner-freebsd-net Tue Nov 12 5:47:49 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 EC30837B401 for ; Tue, 12 Nov 2002 05:47:48 -0800 (PST) Received: from silver.he.iki.fi (silver.he.iki.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99A6A43E77 for ; Tue, 12 Nov 2002 05:47:47 -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 gACDlYuO042093; Tue, 12 Nov 2002 15:47:36 +0200 (EET) (envelope-from pete@he.iki.fi) Message-ID: <05cc01c28a52$0f0fa4b0$a230a8c0@PHE> From: "Petri Helenius" To: "Noritoshi Demizu" Cc: References: <03fe01c28386$186fed80$862a40c1@PHE><20021103225402.GA28812@tp.databus.com><05af01c2856a$f103c960$862a40c1@PHE> <20021107.011746.41626604.noritosi@demizu.org> Subject: Re: bpf Date: Tue, 12 Nov 2002 15:47:33 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 > How about to call ioctl(fd, BIOCSRTIMEOUT, &timeval) ? > I think select(2) sets the fd for the bpf if the bpf buffer is full, > or if the bpf buffer is not empty after timed out. > This worked for me, thanks. I must have missed it on the documentation for some reason. Pete To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message