mirror of
https://github.com/mfontanini/libtins
synced 2026-01-25 03:31:36 +01:00
Updated the examples to work with the new Sniffer constructor using the SnifferConfiguration object.
This commit is contained in:
@@ -69,6 +69,10 @@ int main(int argc, char *argv[]) {
|
||||
return 1;
|
||||
}
|
||||
// Only sniff beacons
|
||||
Sniffer sniffer(argv[1], 2000, true, "wlan type mgt subtype beacon");
|
||||
SnifferConfiguration config;
|
||||
config.set_snap_len(2000);
|
||||
config.set_promisc_mode(true);
|
||||
config.set_filter("wlan type mgt subtype beacon");
|
||||
Sniffer sniffer(argv[1], config);
|
||||
sniffer.sniff_loop(handler);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user