Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Nov 2001 12:58:47 -0800 (PST)
From:      Doug White <dwhite@resnet.uoregon.edu>
To:        Rajesh P Jain <rpjain_1977@eudoramail.com>
Cc:        <freebsd-hackers@FreeBSD.ORG>
Subject:   Re: BPF - Packet Reception
Message-ID:  <Pine.BSF.4.33.0111261257230.60419-100000@resnet.uoregon.edu>
In-Reply-To: <FMMCJOMGFAACCAAA@shared1-mail.whowhere.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0111261257230.60419-100000>