1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Fix flag value for sniffer's immediate mode

This commit is contained in:
Matias Fontanini
2016-02-21 14:42:24 -08:00
parent 04578b109f
commit fa4178de09
2 changed files with 3 additions and 1 deletions

View File

@@ -117,6 +117,8 @@ int main(int argc, char* argv[]) {
try {
// Construct the sniffer configuration object
SnifferConfiguration config;
// Get packets as quickly as possible
config.set_immediate_mode(true);
// Only capture TCP traffic sent from/to port 80
config.set_filter("tcp port 80");
// Construct the sniffer we'll use