mfontanini / libtins

High-level, multiplatform C++ network packet sniffing and crafting library.
http://libtins.github.io/
BSD 2-Clause "Simplified" License
1.91k stars 378 forks source link

Dot11 Multiple mon interfaces #135

Open gj12 opened 8 years ago

gj12 commented 8 years ago

Hi,

I'm using the Dot11 examples, everytime I start the example (eg. https://libtins.github.io/examples/beacon-display/) I get a new mon interface. After 10 executions, I have mon0 ... mon9. A good way would be to check if the given interface is already in monitor mode and a function to clean up the old mon interfaces.

mfontanini commented 8 years ago

I'll look into this, it should probably not abort when it receives SIGINT (control-C) but rather do a proper cleanup.