aboutsummaryrefslogtreecommitdiffstats
path: root/util/ip.lua
Commit message (Collapse)AuthorAgeFilesLines
* Merge 0.11->trunkKim Alvefur2021-07-031-1/+1
|\
| * util.ip: Fix netmask for link-local address rangeKim Alvefur2021-07-031-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.3Kim Alvefur2020-01-151-1/+7
|/
* util.ip: Add missing netmask for 192.168/16 range (fixes #1343)Kim Alvefur2019-04-141-1/+1
|
* util.ip: Remove redundant caching of method output (supposed to be done in ↵Kim Alvefur2017-12-091-17/+7
| | | | ab9ddfb03d4d but lost somehow)
* util.ip: Convert the correct IP to IPv6-mapped for comparison (fixes ↵Kim Alvefur2017-12-091-1/+1
| | | | traceback, possibly invalid result)
* util.ip: Do equality checking by comparing packed representation to avoid ↵Kim Alvefur2017-12-011-1/+1
| | | | any variations
* util.ip: Add CGNAT network range reserved in RFC 6598Kim Alvefur2017-12-011-1/+2
|
* util.ip: Do exact match for longer bit counts than availableKim Alvefur2017-12-011-1/+1
|
* util.ip: Do CIDR matching by comparing all bits at once instead of using ↵Kim Alvefur2017-12-011-4/+13
| | | | O(n) function
* util.ip: Cache return values of all methods in one placeKim Alvefur2017-12-011-1/+5
|
* util.ip: Instantiate various addresses used for comparisons onceKim Alvefur2017-12-011-45/+49
|
* util.ip: Simplify creation of IPv6-mapped IPv4 addressesKim Alvefur2017-12-011-14/+1
|
* util.ip: Add a method returning a normalized IP addressKim Alvefur2017-12-011-0/+4
|
* util.ip: Simplify bitstring methodKim Alvefur2017-12-011-18/+2
|
* util.ip: Make bit string function into a methodKim Alvefur2017-12-011-7/+9
|
* util.ip: Parse IP address using inet_ptonKim Alvefur2017-12-011-21/+21
|
* util.ip: Reflow module export tableKim Alvefur2017-12-011-2/+4
|
* util.ip: Reflow metatableKim Alvefur2017-12-011-3/+9
|
* util: Various minor changes to please [luacheck]Kim Alvefur2017-11-101-1/+6
|
* util.ip: rename variable (i is already defined) [luacheck]Anton Shestakov2016-07-091-2/+2
|
* util.ip: remove unused one-letter loop variables [luacheck]Anton Shestakov2016-07-091-2/+2
|
* Merge 0.9->0.10Kim Alvefur2016-01-081-1/+5
|\
| * util.ip: Support zone id syntax in IPv6 addressesKim Alvefur2016-01-041-1/+5
| |
| * util.ip: Fix protocol detection of IPv6 addresses beginning with : ↵Matthew Wild2013-05-181-2/+4
| | | | | | | | [Backported from 0.10]
| * util.ip: Automatically determine protocol of IP address if none specified. ↵Matthew Wild2013-05-171-1/+9
| | | | | | | | Return error if invalid. [Backported from 0.10]
* | util.ip: Improve comparison, == doesn't necessarily handle IPv6 addresses ↵Matthew Wild2015-11-221-4/+1
| | | | | | | | correctly if they aren't normalized (case, ::, etc.)
* | Remove all trailing whitespaceFlorian Zeitz2013-08-091-1/+1
| |
* | util.ip: Fix protocol detection of IPv6 addresses beginning with :Matthew Wild2013-05-181-2/+4
| |
* | util.ip: Add CIDR notation parsing and matchingMatthew Wild2013-05-181-1/+24
| |
* | Merge 0.9->trunkKim Alvefur2013-05-181-0/+7
|\|
| * util.ip: Convert IPv4 mapped addresses to hex.Kim Alvefur2013-05-181-0/+7
| |
* | util.ip: Add 'private' method/property to determine whether an IP address is ↵Matthew Wild2013-05-171-0/+15
| | | | | | | | generally expected to be internet-routeable (YMMV)
* | util.ip: Automatically determine protocol of IP address if none specified. ↵Matthew Wild2013-05-171-1/+9
|/ | | | Return error if invalid.
* util.rfc{3484,6724}: Update to RFC 6724Florian Zeitz2013-04-301-5/+18
|
* util.ip: Fix syntax error (while I search for my pre-commit hooks)Matthew Wild2011-11-301-1/+1
|
* util.ip: Fix in IP range calculation for 172.16.0.0/12Matthew Wild2011-11-301-1/+1
|
* util.ip: New module containing IP related functionsFlorian Zeitz2011-10-221-0/+176