Re: BPF Berkeley Packet Filter

2015-12-30 Thread Julian Elischer
On 30/12/2015 12:22 PM, Juan Herrera wrote: Hello BSD folks, I am developing a networking application in C and I have a question regarding BPF (Berkeley Packet Filters), I will give you an idea of the app first, I need to send a packet from machine A to machine B (any kind of packet) so for

Re: BPF Berkeley Packet Filter

2015-12-30 Thread Julian Elischer
On 30/12/2015 6:26 AM, Juan Herrera wrote: Hello, I have a question regarding Berkeley Packet filter, which is Can I read an incoming packet length with BPF, I am working on a project that requires to filter the receiving packets in the kernel before they get to userspace, but I need to be able

BPF Berkeley Packet Filter

2015-12-29 Thread Juan Herrera
Hello, I have a question regarding Berkeley Packet filter, which is Can I read an incoming packet length with BPF, I am working on a project that requires to filter the receiving packets in the kernel before they get to userspace, but I need to be able to read the packet length when applying BPF

BPF Berkeley Packet Filter

2015-12-29 Thread Juan Herrera
Hello BSD folks, I am developing a networking application in C and I have a question regarding BPF (Berkeley Packet Filters), I will give you an idea of the app first, I need to send a packet from machine A to machine B (any kind of packet) so for this I wrote a packet generator application