Commit Graph

34 Commits (c19a8ef9ff319d31991e1dd8a23bdd9efb9389bb)

Author SHA1 Message Date
Kim Alvefur eab319deaf util.ip: Remove redundant caching of method output (supposed to be done in ab9ddfb03d4d but lost somehow) 8 years ago
Kim Alvefur 9709fe286b util.ip: Convert the correct IP to IPv6-mapped for comparison (fixes traceback, possibly invalid result) 8 years ago
Kim Alvefur 36adf39958 util.ip: Do equality checking by comparing packed representation to avoid any variations 8 years ago
Kim Alvefur 64361b4894 util.ip: Add CGNAT network range reserved in RFC 6598 8 years ago
Kim Alvefur 45a9e749b3 util.ip: Do exact match for longer bit counts than available 8 years ago
Kim Alvefur 58da2819ae util.ip: Do CIDR matching by comparing all bits at once instead of using O(n) function 8 years ago
Kim Alvefur 4202df3e79 util.ip: Cache return values of all methods in one place 8 years ago
Kim Alvefur 6276b33d19 util.ip: Instantiate various addresses used for comparisons once 8 years ago
Kim Alvefur 3fcb0706d6 util.ip: Simplify creation of IPv6-mapped IPv4 addresses 8 years ago
Kim Alvefur b8212a93db util.ip: Add a method returning a normalized IP address 8 years ago
Kim Alvefur 72f20aab04 util.ip: Simplify bitstring method 8 years ago
Kim Alvefur 669f691fe8 util.ip: Make bit string function into a method 8 years ago
Kim Alvefur 15ba3cf144 util.ip: Parse IP address using inet_pton 8 years ago
Kim Alvefur 3af90af29b util.ip: Reflow module export table 8 years ago
Kim Alvefur a4c975abc3 util.ip: Reflow metatable 8 years ago
Kim Alvefur 11b0084551 util: Various minor changes to please [luacheck] 8 years ago
Anton Shestakov 3e39dcb915 util.ip: rename variable (i is already defined) [luacheck] 10 years ago
Anton Shestakov 4daf38eaeb util.ip: remove unused one-letter loop variables [luacheck] 10 years ago
Kim Alvefur fe0303fe45 util.ip: Support zone id syntax in IPv6 addresses 10 years ago
Matthew Wild be456ba1fa util.ip: Improve comparison, == doesn't necessarily handle IPv6 addresses correctly if they aren't normalized (case, ::, etc.) 10 years ago
Florian Zeitz 4b618a8727 Remove all trailing whitespace 13 years ago
Matthew Wild b985f77de3 util.ip: Fix protocol detection of IPv6 addresses beginning with : [Backported from 0.10] 13 years ago
Kim Alvefur 55946c9e63 util.ip: Convert IPv4 mapped addresses to hex. 13 years ago
Matthew Wild e6d86ed80b util.ip: Fix protocol detection of IPv6 addresses beginning with : 13 years ago
Matthew Wild 38abedd438 util.ip: Add CIDR notation parsing and matching 13 years ago
Matthew Wild 0fa89e6a22 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 5b21f4242a util.ip: Automatically determine protocol of IP address if none specified. Return error if invalid. [Backported from 0.10] 13 years ago
Matthew Wild e2c0ebf93d util.ip: Automatically determine protocol of IP address if none specified. Return error if invalid. 13 years ago
Florian Zeitz 81cb2e4380 util.rfc{3484,6724}: Update to RFC 6724 13 years ago
Matthew Wild d531e402d0 util.ip: Fix syntax error (while I search for my pre-commit hooks) 14 years ago
Matthew Wild 65ffc17487 util.ip: Fix in IP range calculation for 172.16.0.0/12 14 years ago
Florian Zeitz f0cd412842 util.ip: New module containing IP related functions 14 years ago