Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Sys-HostIP CPAN distribution.

Report information
The Basics
Id: 44845
Status: resolved
Priority: 0/
Queue: Sys-HostIP

People
Owner: Nobody in particular
Requestors: miihael [...] sfc.ru
Cc:
AdminCc:

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



Subject: interface detection is not working with vlan-interfaces
Date: Tue, 7 Apr 2009 17:10:33 +0400
To: bug-Sys-HostIP [...] rt.cpan.org
From: Mikhael <am.spir [...] gmail.com>
Good day! I have Ubuntu Linux 8.04 with vlan-interfaces, configured with vconfig. My ifconfig command shows: --------------- eth0.10 Link encap:Ethernet HWaddr 00:15:17:8f:c6:c4 inet addr:172.31.0.5 Bcast:172.31.0.255 Mask:255.255.255.0 inet6 addr: fe80::215:17ff:fe8f:c6c4/64 ВВЕРХ BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5153498 errors:0 dropped:0 overruns:0 frame:0 TX packets:5623324 errors:0 dropped:0 overruns:0 carrier:0 коллизии:0 txqueuelen:0 RX bytes:2953962051 (2.7 GB) TX bytes:3984066719 (3.7 GB) eth0.19 Link encap:Ethernet HWaddr 00:15:17:8f:c6:c4 inet addr:62.192.223.18 Bcast:62.192.253.31 Mask:255.255.255.240 inet6 addr: fe80::215:17ff:fe8f:c6c4/64 ВВЕРХ BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:74665860 errors:0 dropped:0 overruns:0 frame:0 TX packets:101395813 errors:0 dropped:0 overruns:0 carrier:0 коллизии:0 txqueuelen:0 RX bytes:2985974738 (2.7 GB) TX bytes:2135508080 (1.9 GB) lo Link encap: Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 ВВЕРХ LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:3340698 errors:0 dropped:0 overruns:0 frame:0 TX packets:3340698 errors:0 dropped:0 overruns:0 carrier:0 коллизии:0 txqueuelen:0 RX bytes:1582331851 (1.4 GB) TX bytes:1582331851 (1.4 GB) ----------------- As you can see - interface name has the dot in its name. So, line 143 of HostIP.pm must look like: elsif (($interface) = ($line =~/(^\w+(?:\d+)?(?:\.\d+)?(?:\:\d+)?)/)) { ( added "(?:\.\d+)?" ) Vlan-interfaces can also have aliases. -- Best regards, Mikhael
This has been fixed in version 1.4 recently released to CPAN. However, the recognition regular expression will probably be refactored and improved once more in future releases. Thank you for the report and patch! Sawyer.