Project

General

Profile

$longip » History » Version 3

Per Amundsen, 02/23/2023 04:26 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$longip(address)*
4
5
Converts an IP address into a long value and vice-versa.
6
7
*Parameters*
8
9 3 Per Amundsen
table(ktable).
10
|*Parameter*|*Description*|
11
| address | Address to convert. |
12 1 Per Amundsen
13
*Example*
14
15
<pre>
16 2 Per Amundsen
; Convert a IP address to long.
17 1 Per Amundsen
//echo -ag $longip(8.8.8.8)
18
19
; Convert a long to IP address.
20
//echo -ag $longip(134744072)
21
</pre>