mirror of
https://github.com/mfontanini/libtins
synced 2026-01-22 18:25:57 +01:00
Fix flag value for sniffer's immediate mode
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -596,7 +596,7 @@ protected:
|
||||
RFMON = 4,
|
||||
PACKET_FILTER = 8,
|
||||
IMMEDIATE_MODE = 16,
|
||||
DIRECTION = 16
|
||||
DIRECTION = 32
|
||||
};
|
||||
|
||||
void configure_sniffer_pre_activation(Sniffer& sniffer) const;
|
||||
|
||||
Reference in New Issue
Block a user