Hello,
l Here is my first patch.. ;)
It should work on all Linux host.
--
Ludovic Hutin
>From 85f562187770576b121c85628447816c8c8de91e Mon Sep 17 00:00:00 2001
From: Ludovic Hutin <[email protected]>
Date: Wed, 2 Feb 2011 11:38:09 +0100
Subject: [PATCH] Add IPv6 Address
---
.../Task/Inventory/OS/Linux/Network/Networks.pm | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/FusionInventory/Agent/Task/Inventory/OS/Linux/Network/Networks.pm b/lib/FusionInventory/Agent/Task/Inventory/OS/Linux/Network/Networks.pm
index c417604..63cc664 100644
--- a/lib/FusionInventory/Agent/Task/Inventory/OS/Linux/Network/Networks.pm
+++ b/lib/FusionInventory/Agent/Task/Inventory/OS/Linux/Network/Networks.pm
@@ -153,6 +153,7 @@ sub doInventory {
$ifData{DESCRIPTION} = $1 if $line =~ /^(\S+)/; # Interface name
$ifData{IPADDRESS} = $1 if $line =~ /inet addr:(\S+)/i;
+ $ifData{IPADDRESS6} = $1 if $line =~ /inet6 addr: (\S+)/i;
$ifData{IPMASK} = $1 if $line =~ /\S*mask:(\S+)/i;
$ifData{MACADDR} = $1 if $line =~ /hwadd?r\s+(\w{2}:\w{2}:\w{2}:\w{2}:\w{2}:\w{2})/i;
$ifData{STATUS} = 'Up' if $line =~ /^\s+UP\s/;
--
1.7.1
_______________________________________________
Fusioninventory-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/fusioninventory-devel