Skip to content
Snippets Groups Projects
Commit a26d86c3 authored by Phil's avatar Phil
Browse files

Fixes incomplete reception buffer flushing (ticket #55)

There is a race condition between the time a socket is created and the
time it is initialized (BPF filter pushed, bound to an interface). Indeed,
packets captured in between would still be delivered when reading the socket.
Setting reception buffers to 0 was part of the solution and greatly reduced
the race condition timeframe, but still, packet already captured where actually
not sweeped out. So this also need to be done. Thanks to AGR and Y.E. Jutard.
parent d70052d2
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment