Commit Graph

35 Commits (0ec577b5dfed46586ff329e531bcc18a4cd5ec00)

Author SHA1 Message Date
Kim Alvefur 85355a78c2 util.ip: Add missing netmask for 192.168/16 range (fixes #1343) 7 years ago
Kim Alvefur eab319deaf util.ip: Remove redundant caching of method output (supposed to be done in ab9ddfb03d4d but lost somehow) 9 years ago
Kim Alvefur 9709fe286b util.ip: Convert the correct IP to IPv6-mapped for comparison (fixes traceback, possibly invalid result) 9 years ago
Kim Alvefur 36adf39958 util.ip: Do equality checking by comparing packed representation to avoid any variations 9 years ago
Kim Alvefur 64361b4894 util.ip: Add CGNAT network range reserved in RFC 6598 9 years ago
Kim Alvefur 45a9e749b3 util.ip: Do exact match for longer bit counts than available 9 years ago
Kim Alvefur 58da2819ae util.ip: Do CIDR matching by comparing all bits at once instead of using O(n) function 9 years ago
Kim Alvefur 4202df3e79 util.ip: Cache return values of all methods in one place 9 years ago
Kim Alvefur 6276b33d19 util.ip: Instantiate various addresses used for comparisons once 9 years ago
Kim Alvefur 3fcb0706d6 util.ip: Simplify creation of IPv6-mapped IPv4 addresses 9 years ago
Kim Alvefur b8212a93db util.ip: Add a method returning a normalized IP address 9 years ago
Kim Alvefur 72f20aab04 util.ip: Simplify bitstring method 9 years ago
Kim Alvefur 669f691fe8 util.ip: Make bit string function into a method 9 years ago
Kim Alvefur 15ba3cf144 util.ip: Parse IP address using inet_pton 9 years ago
Kim Alvefur 3af90af29b util.ip: Reflow module export table 9 years ago
Kim Alvefur a4c975abc3 util.ip: Reflow metatable 9 years ago
Kim Alvefur 11b0084551 util: Various minor changes to please [luacheck] 9 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 11 years ago
Matthew Wild be456ba1fa util.ip: Improve comparison, == doesn't necessarily handle IPv6 addresses correctly if they aren't normalized (case, ::, etc.) 11 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) 15 years ago
Matthew Wild 65ffc17487 util.ip: Fix in IP range calculation for 172.16.0.0/12 15 years ago
Florian Zeitz f0cd412842 util.ip: New module containing IP related functions 15 years ago