Skip to content

Commit

Permalink
Reduce CPU usage for *nix
Browse files Browse the repository at this point in the history
  • Loading branch information
xfangfang committed May 14, 2024
1 parent fce12fe commit 5f84fbd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/exploit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ LcpEchoHandler::LcpEchoHandler(const std::string &iface) {

pcpp::PcapLiveDevice::DeviceConfiguration config;
config.direction = pcpp::PcapLiveDevice::PCPP_IN;
config.packetBufferTimeoutMs = 1;
if (!dev->open(config)) {
std::cerr << "[-] LcpEchoHandler Cannot open device" << std::endl;
exit(1);
Expand Down

0 comments on commit 5f84fbd

Please sign in to comment.