Filtering Application protocols

Mar 12, 2013 at 4:02 PM
I want to do something like the following:
using (BerkeleyPacketFilter filter = communicator.CreateFilter("ip and tcp"))
{
    // Set the filter
    communicator.SetFilter(filter);
}
However I want to apply my own filter for DIS over UDP.
 communicator.CreateFilter("dis")
Now I could just read in all UDP packets and test if the payload are of the DIS type, but I want to know if this is possible at a lower level?
Coordinator
Mar 22, 2013 at 8:45 AM
Hi CrazySi,

I don't know DIS protocol, but in general you can do many custom filtering with BPF.
Just search for BPF examples online and I'm sure you'll find more information.

I hope this helps,

Boaz.