diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-09-01 16:49:19 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-09-01 16:49:19 +0200 |
commit | daeb2016d6b89d431f9e2ddb51384131c86ab6b6 (patch) | |
tree | c001b79ba85d903f46d1dd8ca7897e5823cec7de /documentation | |
parent | 3d0e8deedeb811184e672684f75030bbbba7d9d3 (diff) |
luci-lib-ip: fix documentation issue
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/api/modules/luci.ip.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/documentation/api/modules/luci.ip.html b/documentation/api/modules/luci.ip.html index 4dece031e..549a55307 100644 --- a/documentation/api/modules/luci.ip.html +++ b/documentation/api/modules/luci.ip.html @@ -370,10 +370,10 @@ Overrides mask embedded in the first argument if specified. (optional) <h3>Usage:</h3> -<pre>addr = luci.ip.new("10.24.0.1/24") -addr = luci.ip.new("10.24.0.1/255.255.255.0") -addr = luci.ip.new("10.24.0.1", "255.255.255.0") -- separate netmask -addr = luci.ip.new("10.24.0.1/24", 16) -- override netmask</pre> +<pre>addr = luci.ip.IPv4("10.24.0.1/24") +addr = luci.ip.IPv4("10.24.0.1/255.255.255.0") +addr = luci.ip.IPv4("10.24.0.1", "255.255.255.0") -- separate netmask +addr = luci.ip.IPv4("10.24.0.1/24", 16) -- override netmask</pre> @@ -425,10 +425,10 @@ Overrides mask embedded in the first argument if specified. (optional) <h3>Usage:</h3> -<pre>addr6 = luci.ip.new("fe80::221:63ff:fe75:aa17/64") -addr6 = luci.ip.new("fe80::221:63ff:fe75:aa17/ffff:ffff:ffff:ffff::") -addr6 = luci.ip.new("fe80::221:63ff:fe75:aa17", "ffff:ffff:ffff:ffff::") -addr6 = luci.ip.new("fe80::221:63ff:fe75:aa17/64", 128) -- override netmask</pre> +<pre>addr6 = luci.ip.IPv6("fe80::221:63ff:fe75:aa17/64") +addr6 = luci.ip.IPv6("fe80::221:63ff:fe75:aa17/ffff:ffff:ffff:ffff::") +addr6 = luci.ip.IPv6("fe80::221:63ff:fe75:aa17", "ffff:ffff:ffff:ffff::") +addr6 = luci.ip.IPv6("fe80::221:63ff:fe75:aa17/64", 128) -- override netmask</pre> |