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:
@@ -117,6 +117,8 @@ int main(int argc, char* argv[]) {
|
|||||||
try {
|
try {
|
||||||
// Construct the sniffer configuration object
|
// Construct the sniffer configuration object
|
||||||
SnifferConfiguration config;
|
SnifferConfiguration config;
|
||||||
|
// Get packets as quickly as possible
|
||||||
|
config.set_immediate_mode(true);
|
||||||
// Only capture TCP traffic sent from/to port 80
|
// Only capture TCP traffic sent from/to port 80
|
||||||
config.set_filter("tcp port 80");
|
config.set_filter("tcp port 80");
|
||||||
// Construct the sniffer we'll use
|
// Construct the sniffer we'll use
|
||||||
|
|||||||
@@ -596,7 +596,7 @@ protected:
|
|||||||
RFMON = 4,
|
RFMON = 4,
|
||||||
PACKET_FILTER = 8,
|
PACKET_FILTER = 8,
|
||||||
IMMEDIATE_MODE = 16,
|
IMMEDIATE_MODE = 16,
|
||||||
DIRECTION = 16
|
DIRECTION = 32
|
||||||
};
|
};
|
||||||
|
|
||||||
void configure_sniffer_pre_activation(Sniffer& sniffer) const;
|
void configure_sniffer_pre_activation(Sniffer& sniffer) const;
|
||||||
|
|||||||
Reference in New Issue
Block a user