Subject: | Bug about decompressAddress() in IPv6Address.pm |
Date: | Fri, 7 Mar 2014 19:40:23 +0800 |
To: | bug-Net-IPv6Address <bug-Net-IPv6Address [...] rt.cpan.org> |
From: | 刘义 <liuyi4 [...] ha.chinamobile.com> |
Hi, I have find a BUG in decompressAddress() .
This is a example:
$from_text = "2409::10:8392";
$IPv6Address = new Net::IPv6Address($from_text, 128);
$unformattedAddress = $IPv6Address->decompressAddress();
print "$from_text\n$unformattedAddress\n\n";
Then , We get :
2409::10:8392
24090000000000000000000000008392 #this is wrong
After I fixed ,We get:
2409::10:8392
24090000000000000000000000108392 #this is right
The fixed file have been attached,please check it.
All of the change have being noted by "#fixed by larry(liuyi) 2014.3.7 "
sorry for my pool english.
刘义
网络管理中心-数据室
中国移动通信集团河南有限公司
Mobile:13903860856(66733)
Mail:liuyi4@ha.chinamobile.com
Mail:13903860856@139.com
2014-03-07
Message body is not shown because sender requested not to inline it.