Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util.hex: Deprecate to/from in favour of encode/decode, for consistency! | Matthew Wild | 2022-03-04 | 1 | -1/+1 |
| | |||||
* | Merge 0.11->trunk | Kim Alvefur | 2021-07-03 | 1 | -1/+1 |
|\ | |||||
| * | util.ip: Fix netmask for link-local address range | Kim Alvefur | 2021-07-03 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | This may have mistakenly caused link-local addresses to be considered global. May have caused mod_s2s and prosodyctl check dns to behave incorrectly on networks using link-local IPv4 addresses. By my guesstimate, these are extremely rare. Probably minimal impact beyond a bit longer to establish s2s and some possible confusion from prosodyctl check dns results. Ref RFC 3927 | ||||
* | | util.ip: Fix equality metamethod for Lua 5.3 | Kim Alvefur | 2020-01-15 | 1 | -1/+7 |
|/ | |||||
* | util.ip: Add missing netmask for 192.168/16 range (fixes #1343) | Kim Alvefur | 2019-04-14 | 1 | -1/+1 |
| | |||||
* | util.ip: Remove redundant caching of method output (supposed to be done in ↵ | Kim Alvefur | 2017-12-09 | 1 | -17/+7 |
| | | | | ab9ddfb03d4d but lost somehow) | ||||
* | util.ip: Convert the correct IP to IPv6-mapped for comparison (fixes ↵ | Kim Alvefur | 2017-12-09 | 1 | -1/+1 |
| | | | | traceback, possibly invalid result) | ||||
* | util.ip: Do equality checking by comparing packed representation to avoid ↵ | Kim Alvefur | 2017-12-01 | 1 | -1/+1 |
| | | | | any variations | ||||
* | util.ip: Add CGNAT network range reserved in RFC 6598 | Kim Alvefur | 2017-12-01 | 1 | -1/+2 |
| | |||||
* | util.ip: Do exact match for longer bit counts than available | Kim Alvefur | 2017-12-01 | 1 | -1/+1 |
| | |||||
* | util.ip: Do CIDR matching by comparing all bits at once instead of using ↵ | Kim Alvefur | 2017-12-01 | 1 | -4/+13 |
| | | | | O(n) function | ||||
* | util.ip: Cache return values of all methods in one place | Kim Alvefur | 2017-12-01 | 1 | -1/+5 |
| | |||||
* | util.ip: Instantiate various addresses used for comparisons once | Kim Alvefur | 2017-12-01 | 1 | -45/+49 |
| | |||||
* | util.ip: Simplify creation of IPv6-mapped IPv4 addresses | Kim Alvefur | 2017-12-01 | 1 | -14/+1 |
| | |||||
* | util.ip: Add a method returning a normalized IP address | Kim Alvefur | 2017-12-01 | 1 | -0/+4 |
| | |||||
* | util.ip: Simplify bitstring method | Kim Alvefur | 2017-12-01 | 1 | -18/+2 |
| | |||||
* | util.ip: Make bit string function into a method | Kim Alvefur | 2017-12-01 | 1 | -7/+9 |
| | |||||
* | util.ip: Parse IP address using inet_pton | Kim Alvefur | 2017-12-01 | 1 | -21/+21 |
| | |||||
* | util.ip: Reflow module export table | Kim Alvefur | 2017-12-01 | 1 | -2/+4 |
| | |||||
* | util.ip: Reflow metatable | Kim Alvefur | 2017-12-01 | 1 | -3/+9 |
| | |||||
* | util: Various minor changes to please [luacheck] | Kim Alvefur | 2017-11-10 | 1 | -1/+6 |
| | |||||
* | util.ip: rename variable (i is already defined) [luacheck] | Anton Shestakov | 2016-07-09 | 1 | -2/+2 |
| | |||||
* | util.ip: remove unused one-letter loop variables [luacheck] | Anton Shestakov | 2016-07-09 | 1 | -2/+2 |
| | |||||
* | Merge 0.9->0.10 | Kim Alvefur | 2016-01-08 | 1 | -1/+5 |
|\ | |||||
| * | util.ip: Support zone id syntax in IPv6 addresses | Kim Alvefur | 2016-01-04 | 1 | -1/+5 |
| | | |||||
| * | util.ip: Fix protocol detection of IPv6 addresses beginning with : ↵ | Matthew Wild | 2013-05-18 | 1 | -2/+4 |
| | | | | | | | | [Backported from 0.10] | ||||
| * | util.ip: Automatically determine protocol of IP address if none specified. ↵ | Matthew Wild | 2013-05-17 | 1 | -1/+9 |
| | | | | | | | | Return error if invalid. [Backported from 0.10] | ||||
* | | util.ip: Improve comparison, == doesn't necessarily handle IPv6 addresses ↵ | Matthew Wild | 2015-11-22 | 1 | -4/+1 |
| | | | | | | | | correctly if they aren't normalized (case, ::, etc.) | ||||
* | | Remove all trailing whitespace | Florian Zeitz | 2013-08-09 | 1 | -1/+1 |
| | | |||||
* | | util.ip: Fix protocol detection of IPv6 addresses beginning with : | Matthew Wild | 2013-05-18 | 1 | -2/+4 |
| | | |||||
* | | util.ip: Add CIDR notation parsing and matching | Matthew Wild | 2013-05-18 | 1 | -1/+24 |
| | | |||||
* | | Merge 0.9->trunk | Kim Alvefur | 2013-05-18 | 1 | -0/+7 |
|\| | |||||
| * | util.ip: Convert IPv4 mapped addresses to hex. | Kim Alvefur | 2013-05-18 | 1 | -0/+7 |
| | | |||||
* | | util.ip: Add 'private' method/property to determine whether an IP address is ↵ | Matthew Wild | 2013-05-17 | 1 | -0/+15 |
| | | | | | | | | generally expected to be internet-routeable (YMMV) | ||||
* | | util.ip: Automatically determine protocol of IP address if none specified. ↵ | Matthew Wild | 2013-05-17 | 1 | -1/+9 |
|/ | | | | Return error if invalid. | ||||
* | util.rfc{3484,6724}: Update to RFC 6724 | Florian Zeitz | 2013-04-30 | 1 | -5/+18 |
| | |||||
* | util.ip: Fix syntax error (while I search for my pre-commit hooks) | Matthew Wild | 2011-11-30 | 1 | -1/+1 |
| | |||||
* | util.ip: Fix in IP range calculation for 172.16.0.0/12 | Matthew Wild | 2011-11-30 | 1 | -1/+1 |
| | |||||
* | util.ip: New module containing IP related functions | Florian Zeitz | 2011-10-22 | 1 | -0/+176 |