Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 696872 - net-analyzer/arp-scan-1.9.5 with net-libs/libpcap-1.9.1 fails to detect hosts on local network
Summary: net-analyzer/arp-scan-1.9.5 with net-libs/libpcap-1.9.1 fails to detect hosts...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-06 19:40 UTC by Ognian Tenchev
Modified: 2019-10-28 08:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ognian Tenchev 2019-10-06 19:40:51 UTC
arp-scan don't find any hosts with libpcap 1.9.1:


[ebuild   R    ] net-libs/libpcap-1.9.1::gentoo  USE="-bluetooth -dbus -netlink -static-libs -usb" ABI_X86="(64) -32 (-x32)" 0 KiB
arp-scan --localnet --interface=eth0
Interface: eth0, datalink type: EN10MB (Ethernet)
Starting arp-scan 1.9.5 with 256 hosts (https://github.com/royhills/arp-scan)

66 packets received by filter, 0 packets dropped by kernel
Ending arp-scan 1.9.5: 256 hosts scanned in 1.979 seconds (129.36 hosts/sec). 0 responded

---

Simple downgrading libpcap to 1.9.0-r1 make arp-scan work again

[ebuild     UD ] net-libs/libpcap-1.9.0-r1::gentoo [1.9.1::gentoo] USE="-bluetooth -dbus -netlink -static-libs -usb" ABI_X86="(64) -32 (-x32)" 0 KiB

arp-scan --localnet --interface=eth0
Interface: eth0, datalink type: EN10MB (Ethernet)
Starting arp-scan 1.9.5 with 256 hosts (https://github.com/royhills/arp-scan)
192.168.1.XX	xx:xx:xx:xx:xx:xx	TP-LINK TECHNOLOGIES CO.,LTD.
192.168.1.XX	xx:xx:xx:xx:xx:xx	Cisco-Linksys, LLC
192.168.1.XX	xx:xx:xx:xx:xx:xx	Intel Corporate
192.168.1.XX	xx:xx:xx:xx:xx:xx	Intel Corporate
...

18 packets received by filter, 0 packets dropped by kernel
Ending arp-scan 1.9.5: 256 hosts scanned in 1.943 seconds (131.76 hosts/sec). 17 responded
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-10-28 08:31:47 UTC
2019-10-13 arp-scan 1.9.6

* Use libpcap function pcap_set_immediate_mode() instead of ioctl calls to
  ensure packets are delivered immediately. This means that arp-scan now
  requires libpcap 1.5.0 or later and will not work with earlier libpcap
  versions.
Comment 2 Larry the Git Cow gentoo-dev 2019-10-28 08:35:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94fc26201f25f2c1390f4e46c7c94030690f88c5

commit 94fc26201f25f2c1390f4e46c7c94030690f88c5
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2019-10-28 08:32:43 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2019-10-28 08:35:13 +0000

    net-analyzer/arp-scan: Version 1.9.6
    
    Package-Manager: Portage-2.3.78, Repoman-2.3.17
    Fixes: https://bugs.gentoo.org/696872
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 net-analyzer/arp-scan/Manifest              |  1 +
 net-analyzer/arp-scan/arp-scan-1.9.6.ebuild | 26 ++++++++++++++++++++++++++
 2 files changed, 27 insertions(+)