From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 16:18:40 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6767116A4E6 for ; Mon, 8 Sep 2003 16:18:40 -0700 (PDT) Received: from mail-out2.apple.com (mail-out2.apple.com [17.254.0.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FCDA43F75 for ; Mon, 8 Sep 2003 16:18:39 -0700 (PDT) (envelope-from guy@alum.mit.edu) Received: from mailgate1.apple.com (A17-128-100-225.apple.com [17.128.100.225]) by mail-out2.apple.com (8.12.9/8.12.9) with ESMTP id h88NIbiZ007197 for ; Mon, 8 Sep 2003 16:18:38 -0700 (PDT) Received: from scv1.apple.com (scv1.apple.com) by mailgate1.apple.com ; Mon, 8 Sep 2003 16:18:12 -0700 Received: from [17.202.40.208] (gharris.apple.com [17.202.40.208]) by scv1.apple.com (8.12.9/8.12.9) with ESMTP id h88NIIsH003523; Mon, 8 Sep 2003 16:18:18 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v594) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Guy Harris Date: Mon, 8 Sep 2003 16:18:37 -0700 To: Dmitry Morozovsky X-Mailer: Apple Mail (2.594) cc: hackers@freebsd.org Subject: Re: if bpf fd's select()able? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 23:18:40 -0000 > However, my tests show that select()ing bpf fd does not lead to > trigger packets > available to bpf filter; the process hangs in select state while > parallel > tcpdump process shows packets desired *and* is in bpf state. See PR kern/22063 "bpf when used with the select system call with timeout doesn't forward packets on timeout". That *should* work in 4-STABLE, as that fix is in 4-STABLE. You should not have to turn BIOCIMMEDIATE on (tcpdump doesn't).