Public bug reported:

All reports from hosts that contains 127. or ::1/128 in the address send
the report with empty in IPADDR value to the server. For example,
192.168.127.25 will send empty IPADDR.

The problem seems to be on file IPv4.pm or IP.pm in all operating
systems in all versions.

This line is the problem:

AIX/IPv4.pm:    if(/^\s*inet\s+(\S+).*/){($1=~/127.+/)?next:push @ip, $1};
BSD/IPv4.pm:      ($1=~/127.+/)?next:push @ip, $1
Linux/Network/IPv4.pm:      ($1=~/127.+/)?next:push @ip, $1
MacOS/IPv4.pm:        ($1=~/127.+/)?next:push @ip, $1
Solaris/IPv4.pm:    if(/^\s*inet\s+(\S+).*/){($1=~/127.+/)?next:($ip{$1}=1)};
Solaris/Bios.pm:#Kernel version: SunOS 5.10 Generic_127112-07

If we change to:

Linux/Network/IPv4.pm:      ($1=~/^127.+/)?next:push @ip, $1

the report send the IPADDR value.

** Affects: ocsinventory-agent (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1744116

Title:
  Empty value for IPADDR when address contains 127.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ocsinventory-agent/+bug/1744116/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to