Skip Menu |

This queue is for tickets about the Net-Address-Ethernet CPAN distribution.

Report information
The Basics
Id: 33480
Status: resolved
Worked: 5 min
Priority: 0/
Queue: Net-Address-Ethernet

People
Owner: MTHURN [...] cpan.org
Requestors: graykot [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.108
Fixed in: (no value)



Subject: get_addresses() returns just first IP per interface.
get_addresses() returns just first IP per interface. But sometimes interface have more then one IP address. Check attached very simple patch for some workaround.
Subject: Ethernet.pm.patch
139c139,140 < $hash{sIP} = shift @asIP; --- > $hash{asIP} = \@asIP; > $hash{sIP} = $asIP[0];
Thank you for the patch! I can not test it here. Please let me know how it works for you.
From: graykot [...] gmail.com
Show quoted text
> Thank you for the patch! > I can not test it here. Please let me know how it works for you.
It's OK now! But... there's little problem with tests. t/normal.t line 29 Some adapters have no sEthernet. For example adapter 'lo' in linux, coz it's just loop-back. I dunno if it's important, coz bug not in module itself, but in test.
Subject: RE: [rt.cpan.org #33480] get_addresses() returns just first IP per interface.
Date: Mon, 25 Feb 2008 20:57:57 -0500
To: <bug-Net-Address-Ethernet [...] rt.cpan.org>
From: "Martin Thurn" <mthurn [...] verizon.net>
Thank you! I got some automatic failure reports but I didn't understand why.