Re: BPF - Packet Reception

2001-11-27 Thread Julian Elischer
netgraph? On Tue, 27 Nov 2001, Rajesh P Jain wrote: > Thanks for all the replies. > > In linux, the packet reception can be done efficiently through the usage of >ethernet sockets. > > In FreeBSD, one of the option is by using the BPF. But, as already commented, >BPF is not a

Re: BPF - Packet Reception

2001-11-27 Thread sthaug
> In linux, the packet reception can be done efficiently through the usage of >ethernet sockets. > > In FreeBSD, one of the option is by using the BPF. But, as already commented, >BPF is not a high performance device. It sounds like you're saying that BPF is less efficient than Linux

Re: BPF - Packet Reception

2001-11-27 Thread Harti Brandt
On Tue, 27 Nov 2001, Rajesh P Jain wrote: RPJ>Thanks for all the replies. RPJ> RPJ>In linux, the packet reception can be done efficiently through the usage of ethernet sockets. RPJ> RPJ> In FreeBSD, one of the option is by using the BPF. But, as already commented, BPF is not a high

Re: BPF - Packet Reception

2001-11-27 Thread Rajesh P Jain
Thanks for all the replies. In linux, the packet reception can be done efficiently through the usage of ethernet sockets. In FreeBSD, one of the option is by using the BPF. But, as already commented, BPF is not a high performance device. So, Can anyone give an alternative w

Re: BPF - Packet Reception

2001-11-26 Thread Robert Watson
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 > ar

Re: BPF - Packet Reception

2001-11-26 Thread Julian Elischer
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

Re: BPF - Packet Reception

2001-11-26 Thread Doug White
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 >

BPF - Packet Reception

2001-11-26 Thread Rajesh P Jain
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