summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-08-30 14:07:12 +0000
committerOlivier Blin <oblin@mandriva.org>2005-08-30 14:07:12 +0000
commit614fceef66cf52fae3f05d65e98b930e85c2ae8c (patch)
treea4266f352377ed586cec923a667f1297973ac955
parent4347b965e9c570334fff9367fad2822f9219731b (diff)
downloaddrakx-614fceef66cf52fae3f05d65e98b930e85c2ae8c.tar
drakx-614fceef66cf52fae3f05d65e98b930e85c2ae8c.tar.gz
drakx-614fceef66cf52fae3f05d65e98b930e85c2ae8c.tar.bz2
drakx-614fceef66cf52fae3f05d65e98b930e85c2ae8c.tar.xz
drakx-614fceef66cf52fae3f05d65e98b930e85c2ae8c.zip
allow net_applet to use vlan/alias interfaces (thanks to Michael Scherer)
-rw-r--r--perl-install/network/tools.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/tools.pm b/perl-install/network/tools.pm
index 0dcbcf515..bd3d99fce 100644
--- a/perl-install/network/tools.pm
+++ b/perl-install/network/tools.pm
@@ -236,7 +236,7 @@ sub host_hex_to_dotted {
sub get_routes() {
my %routes;
foreach (cat_("/proc/net/route")) {
- if (/^(\w+)\s+([0-9A-F]+)\s+([0-9A-F]+)\s+[0-9A-F]+\s+\d+\s+\d+\s+(\d+)\s+([0-9A-F]+)/) {
+ if (/^(\S+)\s+([0-9A-F]+)\s+([0-9A-F]+)\s+[0-9A-F]+\s+\d+\s+\d+\s+(\d+)\s+([0-9A-F]+)/) {
if (hex($2)) { $routes{$1}{network} = host_hex_to_dotted($2) }
elsif (hex($3)) { $routes{$1}{gateway} = host_hex_to_dotted($3) }
if ($4) { $routes{$1}{metric} = $4 }