From owner-freebsd-hackers Mon Nov 26 12:58:32 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.122.47]) by hub.freebsd.org (Postfix) with ESMTP id 9354137B405 for ; Mon, 26 Nov 2001 12:58:30 -0800 (PST) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.11.3/8.10.1) with ESMTP id fAQKwl963590; Mon, 26 Nov 2001 12:58:47 -0800 (PST) Date: Mon, 26 Nov 2001 12:58:47 -0800 (PST) From: Doug White To: Rajesh P Jain Cc: Subject: Re: BPF - Packet Reception In-Reply-To: Message-ID: X-All-Your-Base: are belong to us 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 On Mon, 26 Nov 2001, Rajesh P Jain wrote: > 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. BPF isn't a high-performance interface. If you need something faster, you should add your code to the kernel network stack. Then you will get a call to your code for every packet input of the type you're looking for. Doug White | FreeBSD: The Power to Serve dwhite@resnet.uoregon.edu | www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message