Skip to content

Same ipv6 address, different results of utils.aton6 #206

@rlaace423

Description

@rlaace423

Hello, I'm testing geoip-lite library with IPv6 addresses.

I found weird results about utils.aton6 functions.

Here's 2 addresses which are exactly same,

  • 2607:f0d0:1002:51::4
  • 2607:f0d0:1002:0051:0000:0000:0000:0004

And results of utils.aton6 function

  • [ 638054608, 268566609, 4, 4 ]
  • [ 638054608, 268566609, 0, 4 ]

Even though they are different, I know that that doesn't affect lookup function because utils.cmp6() only cares about IPv6 array's first and second elements.

Is it bug? Or do I miss anything?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions