netdiscover crashes if there is no eth0

Bug #1324929 reported by Uqbar
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
netdiscover (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

My Hewlett-Packard HP Pro 3130 Microtower PC/2A9C has the first an only ethernet recognized as p128p1 instead of the more usual eth0. From the system logs:

[ 12.765571] r8169 0000:01:00.0 p128p1: link down
[ 12.765585] r8169 0000:01:00.0 p128p1: link down
[ 12.765627] IPv6: ADDRCONF(NETDEV_UP): p128p1: link is not ready
...
[ 14.310533] r8169 0000:01:00.0 p128p1: link up
[ 14.310548] IPv6: ADDRCONF(NETDEV_CHANGE): p128p1: link becomes ready

By running a simple command I get a crash:

$ sudo netdiscover
libnet_init() falied: libnet_check_iface() ioctl: No such device

But if I run the very same command on the very same version of Ubuntu and on a system with eth0 as the first ethernet interface, everything works fine.

As a workaround I need to run

$ sudo netdiscover -i p128p1

in order to have the software behave properly.
Netdiscover should use the first non-loopback network interface instead of just "eth0".

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: netdiscover 0.3beta6+20080409-5.1
ProcVersionSignature: Ubuntu 3.13.0-27.50-lowlatency 3.13.11
Uname: Linux 3.13.0-27-lowlatency x86_64
ApportVersion: 2.14.1-0ubuntu3.2
Architecture: amd64
CurrentDesktop: KDE
Date: Fri May 30 15:25:34 2014
InstallationDate: Installed on 2014-04-23 (37 days ago)
InstallationMedia: Kubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.1)
SourcePackage: netdiscover
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Uqbar (uqbar) wrote :
Revision history for this message
Eriberto (eriberto) wrote :

This is a old bug related to libnet. Considering that the problem was fixed, I am closing this bug. Feel free to reopen.

Changed in netdiscover (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.