aboutsummaryrefslogtreecommitdiffstats
path: root/util/ip.lua
Commit message (Expand)AuthorAgeFilesLines
* util.ip: Add ip.truncate() to return a new IP with only the prefix of anotherMatthew Wild2023-03-141-0/+12
* util.ip: Add is_ip() helper method to detect if an object is an ip objectMatthew Wild2023-03-141-0/+5
* util.hex: Deprecate to/from in favour of encode/decode, for consistency!Matthew Wild2022-03-041-1/+1
* Merge 0.11->trunkKim Alvefur2021-07-031-1/+1
|\
| * util.ip: Fix netmask for link-local address rangeKim Alvefur2021-07-031-1/+1
* | 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 ab...Kim Alvefur2017-12-091-17/+7
* util.ip: Convert the correct IP to IPv6-mapped for comparison (fixes tracebac...Kim Alvefur2017-12-091-1/+1
* util.ip: Do equality checking by comparing packed representation to avoid any...Kim Alvefur2017-12-011-1/+1
* 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 O(n)...Kim Alvefur2017-12-011-4/+13
* 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 : [Backporte...Matthew Wild2013-05-181-2/+4
| * util.ip: Automatically determine protocol of IP address if none specified. Re...Matthew Wild2013-05-171-1/+9
* | util.ip: Improve comparison, == doesn't necessarily handle IPv6 addresses cor...Matthew Wild2015-11-221-4/+1
* | 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
* | util.ip: Automatically determine protocol of IP address if none specified. Re...Matthew Wild2013-05-171-1/+9
|/
* 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