aboutsummaryrefslogtreecommitdiffstats
path: root/README.rst
diff options
context:
space:
mode:
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index 146ccca..df955e2 100644
--- a/README.rst
+++ b/README.rst
@@ -79,7 +79,7 @@ Operator Description
``tostring(net)`` convert to network
``:ipstring()`` ip as string without prefix
``:cidrstring()`` format CIDR notation
-``:netmask()`` generate netmask as address
+``:netmask()`` generate netmask as an address
``:flip()`` flip the least significant network bit
================= ======================================
@@ -234,6 +234,10 @@ Build an IP address mask with the netmask of ``foo``.
::
inet('192.0.2.0/24'):netmask() -- returns inet('255.255.255.0')
+ inet('2001:db8::/52'):netmask() -- returns inet('ffff:ffff:ffff:f000::')
+ inet('2001:db8::/56'):netmask() -- returns inet('ffff:ffff:ffff:ff00::')
+ inet('2001:db8::/64'):netmask() -- returns inet('ffff:ffff:ffff:ffff::')
+
``foo:flip()``
~~~~~~~~~~~~~~