aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/doc/src/inet.xml
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2017-05-23 15:12:52 +0200
committerGitHub <[email protected]>2017-05-23 15:12:52 +0200
commitc633554de7dfa2f34a0eaeabfb2922836583ef8e (patch)
tree6990551088562887a6e7bb54807fc09b46f36c63 /lib/kernel/doc/src/inet.xml
parent24481c66a615c62b22d664e141b581b979af0eaf (diff)
parentdf75dcf7287cb0c0ffd4dc7f253161eb3f3779c3 (diff)
downloadotp-c633554de7dfa2f34a0eaeabfb2922836583ef8e.tar.gz
otp-c633554de7dfa2f34a0eaeabfb2922836583ef8e.tar.bz2
otp-c633554de7dfa2f34a0eaeabfb2922836583ef8e.zip
Merge pull request #1440 from jj1bdx/jj1bdx-inet-ipv6-doc-fix
kernel: inet - fix invalid IPv4-mapped-address examples
Diffstat (limited to 'lib/kernel/doc/src/inet.xml')
-rw-r--r--lib/kernel/doc/src/inet.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/kernel/doc/src/inet.xml b/lib/kernel/doc/src/inet.xml
index b7c904ff45..b71e8a1e5d 100644
--- a/lib/kernel/doc/src/inet.xml
+++ b/lib/kernel/doc/src/inet.xml
@@ -75,8 +75,8 @@ Address ip_address()
------- ------------
::1 {0,0,0,0,0,0,0,1}
::192.168.42.2 {0,0,0,0,0,0,(192 bsl 8) bor 168,(42 bsl 8) bor 2}
-FFFF::192.168.42.2
- {16#FFFF,0,0,0,0,0,(192 bsl 8) bor 168,(42 bsl 8) bor 2}
+::FFFF:192.168.42.2
+ {0,0,0,0,0,16#FFFF,(192 bsl 8) bor 168,(42 bsl 8) bor 2}
3ffe:b80:1f8d:2:204:acff:fe17:bf38
{16#3ffe,16#b80,16#1f8d,16#2,16#204,16#acff,16#fe17,16#bf38}
fe80::204:acff:fe17:bf38
@@ -87,8 +87,8 @@ fe80::204:acff:fe17:bf38
<pre>
1> <input>inet:parse_address("192.168.42.2").</input>
{ok,{192,168,42,2}}
-2> <input>inet:parse_address("FFFF::192.168.42.2").</input>
-{ok,{65535,0,0,0,0,0,49320,10754}}</pre>
+2> <input>inet:parse_address("::FFFF:192.168.42.2").</input>
+{ok,{0,0,0,0,0,65535,49320,10754}}</pre>
</description>
<datatypes>