From owner-freebsd-hackers Mon Nov 26 6: 9: 1 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from shared1-mail.whowhere.com (shared1-batch.whowhere.com [209.185.123.82]) by hub.freebsd.org (Postfix) with SMTP id 2FA2437B41C for ; Mon, 26 Nov 2001 06:08:59 -0800 (PST) Received: from Unknown/Local ([?.?.?.?]) by shared1-mail.whowhere.com; Mon Nov 26 06:08:50 2001 To: freebsd-hackers@freebsd.org Date: Mon, 26 Nov 2001 19:38:50 +0530 From: "Rajesh P Jain" Message-ID: Mime-Version: 1.0 X-Sent-Mail: on Reply-To: rpjain_1977@eudoramail.com X-Mailer: MailCity Service Subject: BPF - Packet Reception X-Sender-Ip: 203.197.138.199 Organization: QUALCOMM Eudora Web-Mail (http://www.eudoramail.com:80) Content-Type: text/plain; charset=us-ascii Content-Language: en Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, We are trying to use BPF (Packet Filter) pseduo device to send and receive the packets. Even if there is a slight delay (Some processing has to be done on the read packet) between the issuing of 'read' call, so many packets are getting dropped. Is there a way to attach a callback function to the opened device, so that on a packet arrival, this function is being called. We polling the device is always risky thing as we may loose some packet. Any help on this would be very much appreciated. Thanks and regards, -Raj Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message