From ecf033ea15c312f6153ca761ee329058de5de918 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= Date: Thu, 18 Jul 2019 18:44:18 +0000 Subject: add another well-known mixed network MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Asbjørn Sloth Tønnesen --- README.rst | 9 ++++++++- lua/inet/init.lua | 3 ++- 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 -- cgit v1.2.1