Your message dated Sun, 18 Jul 2021 21:03:43 +0000
with message-id <[email protected]>
and subject line Bug#991258: fixed in netdiscover 0.7-4
has caused the Debian Bug report #991258,
regarding netdiscover: No results when scanning with CIDR /24 if built with 
libpcap >= 1.10
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
991258: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=991258
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: netdiscover
Version: 0.7-3
Severity: important
Tags: upstream patch
X-Debbugs-Cc: [email protected]
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

--- End Message ---
--- Begin Message ---
Source: netdiscover
Source-Version: 0.7-4
Done: Joao Eriberto Mota Filho <[email protected]>

We believe that the bug you reported is fixed in the latest version of
netdiscover, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Joao Eriberto Mota Filho <[email protected]> (supplier of updated netdiscover 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 18 Jul 2021 17:23:16 -0300
Source: netdiscover
Architecture: source
Version: 0.7-4
Distribution: unstable
Urgency: medium
Maintainer: Joao Eriberto Mota Filho <[email protected]>
Changed-By: Joao Eriberto Mota Filho <[email protected]>
Closes: 991258
Changes:
 netdiscover (0.7-4) unstable; urgency=medium
 .
   * debian/patches/030_fix_cidr24.patch: created to fix no results with CIDR 
/24
     and libpcap >= 1.10. Thanks to Enrico Schmitz. (Closes: #991258)
Checksums-Sha1:
 be18d2f9d3217dd2f40f7a4db96f948c0d3a00db 1952 netdiscover_0.7-4.dsc
 f682bf87fef12c05552bdd0927426738004087c1 84240 netdiscover_0.7-4.debian.tar.xz
 7c15935e636fa7449cec53248a77c4821cd1edcd 5588 
netdiscover_0.7-4_source.buildinfo
Checksums-Sha256:
 992233f38eeac4c3c7fb9b756a4c3b96c44ae5076c63acaed44bbe33e95383dd 1952 
netdiscover_0.7-4.dsc
 7261dbb7619794273f224eff3d884c33109d2e6254a3b3f6f517273e7aad0fa2 84240 
netdiscover_0.7-4.debian.tar.xz
 63300c214a84f0db5c3f39e592e983618c287a7eceb4f6229cf2fbf57e64f25c 5588 
netdiscover_0.7-4_source.buildinfo
Files:
 e8ca2a0051eda85210bb0e7ea12d6b88 1952 net optional netdiscover_0.7-4.dsc
 a5311226c9ffb9a9b1dabb10a52b9666 84240 net optional 
netdiscover_0.7-4.debian.tar.xz
 a2a68184d4712decc2b86b9c2c4b3a00 5588 net optional 
netdiscover_0.7-4_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEENX3LDuyVoBrrofDS3mO5xwTr6e8FAmD0kJkACgkQ3mO5xwTr
6e+gUw//Q0cOHyUnSg0aGWnTicd4YSHr1QE/3h1j1S7CdnYfKkidjqZ4XnZ4oEx6
10o2pZLhB0N2i3SsuwVOd4BrUG7NHYH5wArhB+2hpqCKkbceHXuUBPFS9AAXEFmH
8L0ehzQg7ltG225wvRjc3h/cL13pP64XyPoudYStPyvWiIQsVfcT0bRuYAiT9PVR
CNkT37/P9MH3hc8XTzbn9soE/Is8m8agWhlgYgOTMF/tNtiZ0j1pZFdNU0WnzVno
m4l+qCs2cJydAa1UHSnlZAxjOLO7W5madRDKytz21vlrF0Un87iZ7WZCRYA4NBxj
BqtnOoLQSqrsvLCKnBWqIyTfsqxkMC/i5PfBF/r9XnO/iJHTigcST0/vnrVA4mnG
uZsKOhdnMcz3O2iGt4B9KKrGvIKRWRiQum0d7enj0okniHfqB5+2MgHioa7D8s1g
N0K+3wXGvf6dL4+U7eohPGR8mQpSzHnHIIysTo0Gt9s1U1ybvPpiADOAe3OAoaPb
AHcCuNL9xi/y9USekdHbDxm1qBpRJZiC4u7RDI8i0oa+9pM6IiIriI2b32SWyigk
QO4q5Ab73i61lmu7X1KYLL3AUf8qN9X6m7ZyVFdHPjE8XIWhq7H5zAD42CADYt9G
qqPfvX6ZYjDlKVJx30tBp8L92igBgjludeX3iT+5YQayX6yPD4I=
=DD8H
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to