0

I have a multi-threaded(2 threads) application which use BPF filters , where in each thread uses a PF_PACKET socket and tries to apply a BPF filter using SO_ATTACH_FILTER on the same incoming interface. But what i observe is that both the threads are receiving all the packets matching both the filters rather than each thread receiving only for the filter they have added. Is this how it is suppose to work or should i do anything else explicitly to achieve this kind of filtering ?

Madhu
  • 1

0 Answers0