Log

util/ip.lua @ 13085:0e17cb78264f

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
util.ip: Improve comparison, == doesn't necessarily handle IPv6 addresses correctly if they aren't normalized (case, ::, etc.) Matthew Wild Sun, 22 Nov 2015 15:30:27 +0000
Remove all trailing whitespace Florian Zeitz Fri, 09 Aug 2013 17:48:21 +0200
util.ip: Fix protocol detection of IPv6 addresses beginning with : Matthew Wild Sat, 18 May 2013 21:41:17 +0100
util.ip: Add CIDR notation parsing and matching Matthew Wild Sat, 18 May 2013 16:45:29 +0100
Merge 0.9->trunk Kim Alvefur Sat, 18 May 2013 13:20:46 +0200
util.ip: Convert IPv4 mapped addresses to hex. Kim Alvefur Sat, 18 May 2013 13:14:19 +0200
util.ip: Add 'private' method/property to determine whether an IP address is generally expected to be internet-routeable (YMMV) Matthew Wild Fri, 17 May 2013 14:53:51 +0100
util.ip: Automatically determine protocol of IP address if none specified. Return error if invalid. Matthew Wild Fri, 17 May 2013 14:52:52 +0100
util.rfc{3484,6724}: Update to RFC 6724 Florian Zeitz Tue, 30 Apr 2013 18:34:03 +0200
util.ip: Fix syntax error (while I search for my pre-commit hooks) Matthew Wild Wed, 30 Nov 2011 19:37:13 +0000
util.ip: Fix in IP range calculation for 172.16.0.0/12 Matthew Wild Wed, 30 Nov 2011 17:20:16 +0000
util.ip: New module containing IP related functions Florian Zeitz Sat, 22 Oct 2011 17:51:53 +0200