Skip to content

Commit

Permalink
Fix no results with /24 and libpcap >= 1.10
Browse files Browse the repository at this point in the history
Changed PCAP_TOUT from 0 to 512 in src/ifaces.h, to avoid no results when
scanning with CIDR /24 if netdiscover is being built with libpcap >= 1.10.
Thanks to Enrico Schmitz.

Closes #9
  • Loading branch information
eribertomota committed Jul 12, 2021
1 parent e3c3331 commit 2de0187
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Netdiscover 0.8 - 11 Jul. 2021
* Changed PCAP_TOUT from 0 to 512 in src/ifaces.h, to avoid no results when
scanning with CIDR /24 if netdiscover is being built with libpcap >= 1.10.
Thanks to Enrico Schmitz.

Netdiscover 0.7 - 29 Jun. 2020
* Updated create-man.sh to 2.0 version.
* Updated manpage dates.
Expand Down
3 changes: 2 additions & 1 deletion src/ifaces.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Copyright 2005-2009 Jaime Penalba Estebanez <jpenalbae@gmail.com>
* Copyright 2006 Guillaume Pratte <guillaume@guillaumepratte.net>
* Copyright 2007-2008 Gustavo Chain
* Copyright 2021 Enrico Schmitz
*
****************************************************************************/

Expand Down Expand Up @@ -45,7 +46,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


Expand Down

0 comments on commit 2de0187

Please sign in to comment.