Software /
code /
prosody
Comparison
teal-src/util/ip.d.tl @ 12935:ddb9e330d627
util.ip: Add Teal interface description
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 14 Mar 2023 19:46:46 +0100 |
comparison
equal
deleted
inserted
replaced
12934:c6dffebab2f8 | 12935:ddb9e330d627 |
---|---|
1 local record iplib | |
2 enum protocol | |
3 "IPv6" | |
4 "IPv4" | |
5 end | |
6 record ip_t | |
7 addr : string | |
8 packed : string | |
9 proto : protocol | |
10 zone : string | |
11 end | |
12 | |
13 new_ip : function (string, protocol) : ip_t | |
14 commonPrefixLength : function (ip_t, ip_t) : integer | |
15 parse_cidr : function (string) : ip_t, integer | |
16 match : function (ip_t, ip_t, integer) : boolean | |
17 is_ip : function (any) : boolean | |
18 truncate : function (ip_t, integer) : ip_t | |
19 end | |
20 return iplib |