Log

util/ip.lua @ 13029:8ad432953300

description author age
util: Prefix module imports with prosody namespace Kim Alvefur Fri, 17 Mar 2023 16:23:16 +0100
util.ip: Add ip.truncate() to return a new IP with only the prefix of another Matthew Wild Tue, 14 Mar 2023 18:24:58 +0000
util.ip: Add is_ip() helper method to detect if an object is an ip object Matthew Wild Tue, 14 Mar 2023 18:23:33 +0000
util.hex: Deprecate to/from in favour of encode/decode, for consistency! Matthew Wild Fri, 04 Mar 2022 15:22:45 +0000
Merge 0.11->trunk Kim Alvefur Sat, 03 Jul 2021 17:28:07 +0200
util.ip: Fix netmask for link-local address range 0.11 Kim Alvefur Sat, 03 Jul 2021 03:27:57 +0200
util.ip: Fix equality metamethod for Lua 5.3 Kim Alvefur Wed, 15 Jan 2020 21:16:08 +0100
util.ip: Add missing netmask for 192.168/16 range (fixes #1343) 0.11 Kim Alvefur Sun, 14 Apr 2019 02:06:20 +0200
util.ip: Remove redundant caching of method output (supposed to be done in ab9ddfb03d4d but lost somehow) Kim Alvefur Sat, 09 Dec 2017 20:56:37 +0100
util.ip: Convert the correct IP to IPv6-mapped for comparison (fixes traceback, possibly invalid result) Kim Alvefur Sat, 09 Dec 2017 20:53:37 +0100
util.ip: Do equality checking by comparing packed representation to avoid any variations Kim Alvefur Fri, 01 Dec 2017 05:13:28 +0100
util.ip: Add CGNAT network range reserved in RFC 6598 Kim Alvefur Fri, 01 Dec 2017 03:13:52 +0100
util.ip: Do exact match for longer bit counts than available Kim Alvefur Fri, 01 Dec 2017 03:31:37 +0100
util.ip: Do CIDR matching by comparing all bits at once instead of using O(n) function Kim Alvefur Fri, 01 Dec 2017 03:29:25 +0100
util.ip: Cache return values of all methods in one place Kim Alvefur Fri, 01 Dec 2017 02:25:25 +0100
util.ip: Instantiate various addresses used for comparisons once Kim Alvefur Fri, 01 Dec 2017 02:23:57 +0100
util.ip: Simplify creation of IPv6-mapped IPv4 addresses Kim Alvefur Fri, 01 Dec 2017 04:33:49 +0100
util.ip: Add a method returning a normalized IP address Kim Alvefur Fri, 01 Dec 2017 04:33:27 +0100
util.ip: Simplify bitstring method Kim Alvefur Fri, 01 Dec 2017 04:32:20 +0100
util.ip: Make bit string function into a method Kim Alvefur Fri, 01 Dec 2017 04:37:33 +0100
util.ip: Parse IP address using inet_pton Kim Alvefur Fri, 01 Dec 2017 04:39:12 +0100
util.ip: Reflow module export table Kim Alvefur Fri, 01 Dec 2017 01:55:40 +0100
util.ip: Reflow metatable Kim Alvefur Fri, 01 Dec 2017 01:55:15 +0100
util: Various minor changes to please [luacheck] Kim Alvefur Fri, 10 Nov 2017 05:42:32 +0100
util.ip: rename variable (i is already defined) [luacheck] Anton Shestakov Sat, 09 Jul 2016 17:33:38 +0800
util.ip: remove unused one-letter loop variables [luacheck] Anton Shestakov Sat, 09 Jul 2016 10:27:57 +0800
Merge 0.9->0.10 Kim Alvefur Fri, 08 Jan 2016 16:16:08 +0100
util.ip: Support zone id syntax in IPv6 addresses Kim Alvefur Mon, 04 Jan 2016 17:47:40 +0100
util.ip: Fix protocol detection of IPv6 addresses beginning with : [Backported from 0.10] Matthew Wild Sat, 18 May 2013 21:41:17 +0100
util.ip: Automatically determine protocol of IP address if none specified. Return error if invalid. [Backported from 0.10] Matthew Wild Fri, 17 May 2013 14:52:52 +0100