aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.rst9
-rw-r--r--lua/inet/init.lua3
2 files changed, 10 insertions, 2 deletions
diff --git a/README.rst b/README.rst
index 274b7d3..fae2397 100644
--- a/README.rst
+++ b/README.rst
@@ -47,7 +47,14 @@ IPv6 mixed notation configuration
should use mixed notation, ie. last 32 bits formatted as IPv4,
as per `RFC 5952`_ section 5.
-Initially the set only contains the well-known ``::ffff:0.0.0.0/96`` network.
+Initially the set contains these well-known networks:
+
+::
+
+ inet.mixed_networks:list() -- returns {
+ inet('::ffff:0:0/96'), -- RFC 5156
+ inet('64:ff9b::/96'), -- RFC 6052
+ }
Common ``inet*`` API
--------------------
diff --git a/lua/inet/init.lua b/lua/inet/init.lua
index a504ddd..1bb0121 100644
--- a/lua/inet/init.lua
+++ b/lua/inet/init.lua
@@ -12,7 +12,8 @@ end
do
local mixed_networks = set.new()
- mixed_networks:add(new_inet('::ffff:0.0.0.0/96'))
+ mixed_networks:add(new_inet('::ffff:0:0/96')) -- RFC 5156
+ mixed_networks:add(new_inet('64:ff9b::/96')) -- RFC 6052
M.mixed_networks = mixed_networks
core.set_mixed_networks(mixed_networks)
end