aboutsummaryrefslogtreecommitdiffstats
path: root/util/ip.lua
Commit message (Collapse)AuthorAgeFilesLines
* 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