Commit Graph

43 Commits (master)

Author SHA1 Message Date
Matthew Wild f4d2d7a3a3 util.ip: Remove ip.bits and related code, switch to more efficient strbitop 2 years ago
Kim Alvefur 59d820880f util.ip: Fix netmask for link-local address range 5 years ago
Matthew Wild ab835fed13 util.hex: Deprecate to/from in favour of encode/decode, for consistency! 4 years ago
Kim Alvefur 43531740f9 util: Prefix module imports with prosody namespace 3 years ago
Matthew Wild 84c0204ea2 util.ip: Add ip.truncate() to return a new IP with only the prefix of another 3 years ago
Matthew Wild 3eedf79c8b util.ip: Add is_ip() helper method to detect if an object is an ip object 3 years ago
Kim Alvefur 78eb3b5935 util.ip: Fix equality metamethod for Lua 5.3 6 years ago
Kim Alvefur 86b34563eb util.ip: Add missing netmask for 192.168/16 range (fixes #1343) 7 years ago
Kim Alvefur 2a1cee5c50 util.ip: Remove redundant caching of method output (supposed to be done in ab9ddfb03d4d but lost somehow) 8 years ago
Kim Alvefur 9448c27667 util.ip: Convert the correct IP to IPv6-mapped for comparison (fixes traceback, possibly invalid result) 8 years ago
Kim Alvefur e2ef028b09 util.ip: Do equality checking by comparing packed representation to avoid any variations 8 years ago
Kim Alvefur 6d29dae97f util.ip: Add CGNAT network range reserved in RFC 6598 8 years ago
Kim Alvefur 9be5c88b83 util.ip: Do exact match for longer bit counts than available 8 years ago
Kim Alvefur 7d1d1be98e util.ip: Do CIDR matching by comparing all bits at once instead of using O(n) function 8 years ago
Kim Alvefur a4aa61fdb1 util.ip: Cache return values of all methods in one place 8 years ago
Kim Alvefur b799561dca util.ip: Instantiate various addresses used for comparisons once 8 years ago
Kim Alvefur 405739ef2f util.ip: Simplify creation of IPv6-mapped IPv4 addresses 8 years ago
Kim Alvefur 84da11d50e util.ip: Add a method returning a normalized IP address 8 years ago
Kim Alvefur 42e41f583d util.ip: Simplify bitstring method 8 years ago
Kim Alvefur e9e827557b util.ip: Make bit string function into a method 8 years ago
Kim Alvefur 0152e8b7c6 util.ip: Parse IP address using inet_pton 8 years ago
Kim Alvefur 2ba6041c32 util.ip: Reflow module export table 8 years ago
Kim Alvefur af801d58cb util.ip: Reflow metatable 8 years ago
Kim Alvefur 1438a38845 util: Various minor changes to please [luacheck] 8 years ago
Anton Shestakov 1e78e0f236 util.ip: rename variable (i is already defined) [luacheck] 10 years ago
Anton Shestakov 416f381c39 util.ip: remove unused one-letter loop variables [luacheck] 10 years ago
Kim Alvefur e03302f412 util.ip: Support zone id syntax in IPv6 addresses 10 years ago
Matthew Wild 68b9f29131 util.ip: Improve comparison, == doesn't necessarily handle IPv6 addresses correctly if they aren't normalized (case, ::, etc.) 10 years ago
Florian Zeitz 1d833bb807 Remove all trailing whitespace 13 years ago
Matthew Wild 2b64027204 util.ip: Fix protocol detection of IPv6 addresses beginning with : [Backported from 0.10] 13 years ago
Kim Alvefur 146ed08e62 util.ip: Convert IPv4 mapped addresses to hex. 13 years ago
Matthew Wild 97cef2740b util.ip: Fix protocol detection of IPv6 addresses beginning with : 13 years ago
Matthew Wild 62a1d8a2d3 util.ip: Add CIDR notation parsing and matching 13 years ago
Matthew Wild e082db3cf7 util.ip: Add 'private' method/property to determine whether an IP address is generally expected to be internet-routeable (YMMV) 13 years ago
Matthew Wild 2ab42c8dbf util.ip: Automatically determine protocol of IP address if none specified. Return error if invalid. [Backported from 0.10] 13 years ago
Matthew Wild 4d630bbd3c util.ip: Automatically determine protocol of IP address if none specified. Return error if invalid. 13 years ago
Florian Zeitz e53d5b4f79 util.rfc{3484,6724}: Update to RFC 6724 13 years ago
Matthew Wild c08e057bd2 util.ip: Fix syntax error (while I search for my pre-commit hooks) 14 years ago
Matthew Wild 762989f7c9 util.ip: Fix in IP range calculation for 172.16.0.0/12 14 years ago
Florian Zeitz 2156033d35 util.ip: New module containing IP related functions 14 years ago