From owner-freebsd-hackers Mon Nov 26 14: 0:18 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from InterJet.elischer.org (c421509-a.pinol1.sfba.home.com [24.7.86.9]) by hub.freebsd.org (Postfix) with ESMTP id 81CBB37B41A for ; Mon, 26 Nov 2001 14:00:14 -0800 (PST) Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id NAA05247; Mon, 26 Nov 2001 13:43:11 -0800 (PST) Date: Mon, 26 Nov 2001 13:43:10 -0800 (PST) From: Julian Elischer To: Rajesh P Jain Cc: freebsd-hackers@freebsd.org Subject: Re: BPF - Packet Reception In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 If it's an ethernet type device then you can attach to it via netgraph and either write a small netgraph node to do what you want or redirect the packets to a userland daemon that does what you want. On Mon, 26 Nov 2001, Rajesh P Jain wrote: > 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 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message