mfontanini / libtins

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

Unable to exectue beacon_display example #431

Open DamyHao opened 3 years ago

DamyHao commented 3 years ago

When I run the beacon_display example, it throws the following:

terminate called after throwing an instance of 'Tins::invalid_pcap_filter' what(): unknown 802.11 type zsh: abort sudo ./beacon_display wlan1

I have tried with both Managed and Monitor interfaces. What is happening? Thanks in advance

colbybr commented 1 year ago

Not exactly sure why, but I discovered that if you change config.set_filter("type mgt subtype beacon"); on line 58 to config.set_filter("subtype beacon"); it fixes the issue.