Bug#719960: libnet-arp-perl: Net::ARP::arp_lookup always fails (regression)
Vincent Lefevre
vincent at vinc17.net
Sat Aug 17 11:19:35 UTC 2013
On 2013-08-17 12:41:26 +0200, Florian Schlichting wrote:
> On Sat, Aug 17, 2013 at 11:33:31AM +0200, Olof Johansson wrote:
> > I can't seem to find any references to arp_lookup accepting undef as
> > device in the manual.
I don't remember where I got this solution.
> The implementation changed between 1.0.4-1 and 1.0.8-1; whereas before,
> it would just open /proc/net/arp and look for the IP address, matching
> the device only when given, it now uses the SIOCGARP ioctl for which a
> device name is mandatory.
>
> So I think this "works as intended", but one could perhaps ask upstream
> to provide an option to iterate over several / all available devices, or
> amend the documentation to explain that undef values are not / no longer
> supported.
OK, but indeed this should be documented. I think it would be nice
if it could iterate over the devices (or get the device directly
from the IP address, if possible), as the user doesn't necessarily
know the device in question (even when the user knows the physical
device, as the device name may have a random value). Now, this may
not really be important as a workaround for the user seems to use
/proc/net/arp directly as libnet-arp-perl did before, unless there
are potential problems with this.
--
Vincent Lefèvre <vincent at vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
More information about the pkg-perl-maintainers
mailing list