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 [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message
> 


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to