diff options
| author | Asbjørn Sloth Tønnesen <ast@2e8.dk> | 2019-07-18 18:43:42 +0000 | 
|---|---|---|
| committer | Asbjørn Sloth Tønnesen <ast@2e8.dk> | 2019-07-18 18:43:42 +0000 | 
| commit | e92fb277616ede376d81853c052bc399c198e15d (patch) | |
| tree | 9e429f4f79f34d87060e4013baa11412d6cf3b9f /README.rst | |
| parent | 2149068c6dec19edc33010bf2026a41dd3503c2f (diff) | |
| download | lua-inet-e92fb277616ede376d81853c052bc399c198e15d.tar.gz lua-inet-e92fb277616ede376d81853c052bc399c198e15d.tar.xz lua-inet-e92fb277616ede376d81853c052bc399c198e15d.zip  | |
use and test mixed_networks
Signed-off-by: Asbjørn Sloth Tønnesen <ast@2e8.dk>
Diffstat (limited to 'README.rst')
| -rw-r--r-- | README.rst | 12 | 
1 files changed, 11 insertions, 1 deletions
@@ -305,7 +305,7 @@ Like ``tostring(foo)``, but always return the address in CIDR notation, as speci  ``foo:ipstring()``  ~~~~~~~~~~~~~~~~~~ -Like ``tostring(foo)``, but always just return the IP address. +Like ``tostring(foo)``, but always returns the only the IP address, and not the mask.  :: @@ -316,11 +316,21 @@ Like ``tostring(foo)``, but always just return the IP address.  Like ``foo:ipstring()``, but always uses mixed notation. +:: + +  inet('2001:db8::c000:218'):ipstring()  -- returns '2001:db8::c000:218' +  inet('2001:db8::c000:218'):ipstring4() -- returns '2001:db8::192.0.2.24' +  ``foo:ipstring6()``  ~~~~~~~~~~~~~~~~~~~  Like ``tostring(foo)``, but never uses mixed notation. +:: + +  inet('::ffff:192.0.2.24'):ipstring()  -- returns '::ffff:192.0.2.24' +  inet('::ffff:192.0.2.24'):ipstring6() -- returns '::ffff:c000:218' +  Sets  ----  | 
