BPF Berkeley Packet Filter
Juan Herrera
mybsdmailing at gmail.com
Tue Dec 29 22:26:11 UTC 2015
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 because I
(previously) encapsulated the packet with my own metadata before sending it
to the machine with BPF so I want to read packet length to decapsulate as I
know the value for the metadata at the end of the packet?
Thank you in advance!
More information about the freebsd-net
mailing list