From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 7 12:46:58 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 7DDBE16A4BF for ; Sun, 7 Sep 2003 12:46:58 -0700 (PDT) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A95243FF9 for ; Sun, 7 Sep 2003 12:46:57 -0700 (PDT) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.12.9/8.12.9) with ESMTP id h87Jktqv018640 for ; Sun, 7 Sep 2003 23:46:55 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Sun, 7 Sep 2003 23:46:55 +0400 (MSD) From: Dmitry Morozovsky To: hackers@freebsd.org Message-ID: <20030907233940.M18589@woozle.rinet.ru> X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: 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: Sun, 07 Sep 2003 19:46:58 -0000 Dear colleagues, [all below is for 4-STABLE] I'm trying to write effective arp scanner for multi-interface router (esp. multi-vlan); I plan to use multiple bpf devices attached to different interfaces emitting ARP requests and filters listening to ARP replies; the most natural way to multiplex them for me is select(). 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. Am I missing something "base"? References (surely, I'd already read manpages for bpf, pcap and related -- but did I still missed something serious?) would be greatly appreciated. Thanks for your time, as always. Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------