Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Data-Validate-IP CPAN distribution.

Report information
The Basics
Id: 58991
Status: resolved
Worked: 20 min
Priority: 0/
Queue: Data-Validate-IP

Owner: neil [...]
Requestors: Alan.Chester [...]

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

CC: "amcheste [...]" <amcheste [...]>
Subject: is_ipv6 Bug when address ends with ::
Date: Wed, 30 Jun 2010 16:21:45 -0400
To: "bug-Data-Validate-IP [...]" <bug-Data-Validate-IP [...]>
From: "Chester, Alan" <Alan.Chester [...]>
Download (untitled) / with headers
text/plain 928b
Hello, When running the function is_ipv6 I ran into issues with it validating an IPv6 address which ends with double colon(::). An example would be 2001:: fails even though this is a valid IPv6 address. I did some investigation and its because split removes trailing null characters. This makes the test think that there is no empty chunk and less then 8 octets so it thinks this is not a valid IP address. I have made a patch for this so I can continue my development however I was wondering what is your recommended solution? I have attached my patch as a reference. Here is some information on what I am running: Data-Validate-IP-0.11 5.8.8 Linux 2.6.18-164.11.1.el5 Thanks, Alan Alan Chester Linux Dist. Dev, TPD/GPS (o) +1.919.461.6833 | (m) +1.828.308.1105 5200 Paramount Pky | Morrisville, NC | 27612 | USA Tekelec<> | SIP Blog<>

Message body is not shown because sender requested not to inline it.

Download (untitled) / with headers
text/plain 249b
Version 0.12 has just been uploaded to address this bug (and a related one I discovered while testing the new patch). I went a slightly different route with the patch, but the gist is about the same. Sorry about the delayed response, Neil Neely

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to