From owner-freebsd-hackers Thu Mar 22 8:31:10 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from news.lucky.net (news.lucky.net [193.193.193.102]) by hub.freebsd.org (Postfix) with ESMTP id A7E4537B71B for ; Thu, 22 Mar 2001 08:30:56 -0800 (PST) (envelope-from news@news.ntu-kpi.kiev.ua) Received: (from mail@localhost) by news.lucky.net (8.Who.Cares/8.Who.Cares) id SLW02852 for freebsd-hackers@freebsd.org; Thu, 22 Mar 2001 18:30:53 +0200 (envelope-from news@news.ntu-kpi.kiev.ua) From: "Andrey Simonenko" To: freebsd-hackers@freebsd.org Subject: question about BPF programming Date: Thu, 22 Mar 2001 18:15:50 +0300 Organization: NTUU "KPI" Message-ID: <99d8mo$2cbo$1@igloo.uran.net.ua> X-Trace: igloo.uran.net.ua 985277976 78200 10.18.54.109 (22 Mar 2001 16:19:36 GMT) X-Complaints-To: newsmaster@news.ntu-kpi.kiev.ua X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi I read bpf(4) man page and have one question about BPF. Suppose I open one of free BPF devices /dev/bpf??. I can dup(2) descriptor of opened BPF device and get so called shared interface. Can I setup different filters on each descriptor for opened BPF device? If I can do it, how can I do the same with pcap(3) library? Thanks for answers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message