Package: netdiscover Version: 0.7-3 Severity: important Tags: upstream patch X-Debbugs-Cc: eribe...@debian.org Control: fixed -1 upstream/0.8
This bug was originally sent to Netdscover Project[1] by a user. It is already fixed in upstream[2]. [1] https://github.com/netdiscover-scanner/netdiscover/issues/9 [2] https://github.com/netdiscover-scanner/netdiscover/commit/2de0187c8b6aad3ca5393d96fbc5b00c453c3d23 Basically, if built with libpcap >= 1.10, netdiscover works fine with CIDRs /8 and /16, but shows no results with /24. To reproduce: # netdiscover -P -r 192.168.0.0/24 The following patch, sent by Enrico Schmitz, applied by upstream and tested in several conditions, solves the bug. diff --git a/src/ifaces.h b/src/ifaces.h index 68ce8a5..3fbdaf4 100644 --- a/src/ifaces.h +++ b/src/ifaces.h @@ -45,7 +45,7 @@ extern "C" typedef uint16_t u_int16_t; typedef uint8_t u_int8_t; #else - #define PCAP_TOUT 0 + #define PCAP_TOUT 512 #endif An explanation about this patch is here[3]. Summary: "Older versions of libpcap ignored to_ms on Linux. The current version captures packets until a buffer a filled or the specified timeout elapses. The value 0 disables that timeout, so libpcap will only start delivering packets once the buffer is filled". [3] https://github.com/netdiscover-scanner/netdiscover/issues/9#issuecomment-862340024 Regards, Eriberto