[sr-dev] IPv4 and IPv6 binary comparison

Iñaki Baz Castillo ibc at aliax.net
Thu Apr 28 12:02:18 CEST 2011


2011/4/28 Iñaki Baz Castillo <ibc at aliax.net>:
> Obviously under IPv6 binary comparison is needed (this is what my
> function does).

Let me a related question:

An IPv6 looks like "1080::8:800:200C:417A", but when using it in a URI
it must be set as IPv6-reference (between [ ]):

  [1080::8:800:200C:417A]


Imagine I do:

  $rd = "1080::8:800:200C:417A";
  $dd = "1080::8:800:200C:417A";
  $rd = "[1080::8:800:200C:417A]";
  $dd = "[1080::8:800:200C:417A]";

Would SR handle correctly all these cases?


-- 
Iñaki Baz Castillo
<ibc at aliax.net>



More information about the sr-dev mailing list