Date: Mon, 26 Nov 2001 13:43:10 -0800 (PST) From: Julian Elischer <julian@elischer.org> To: Rajesh P Jain <rpjain_1977@eudoramail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: BPF - Packet Reception Message-ID: <Pine.BSF.4.21.0111261341430.5212-100000@InterJet.elischer.org> In-Reply-To: <FMMCJOMGFAACCAAA@shared1-mail.whowhere.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0111261341430.5212-100000>