Software /
code /
prosody
Comparison
util/dns.lua @ 12355:a0ff5c438e9d
util.hex: Deprecate to/from in favour of encode/decode, for consistency!
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 04 Mar 2022 15:22:45 +0000 |
parent | 12289:3a655adf1d0d |
child | 12975:d10957394a3c |
comparison
equal
deleted
inserted
replaced
12354:3ce3633527af | 12355:a0ff5c438e9d |
---|---|
11 local s_byte = string.byte; | 11 local s_byte = string.byte; |
12 local s_format = string.format; | 12 local s_format = string.format; |
13 local s_sub = string.sub; | 13 local s_sub = string.sub; |
14 | 14 |
15 local iana_data = require "util.dnsregistry"; | 15 local iana_data = require "util.dnsregistry"; |
16 local tohex = require "util.hex".to; | 16 local tohex = require "util.hex".encode; |
17 local inet_ntop = require "util.net".ntop; | 17 local inet_ntop = require "util.net".ntop; |
18 | 18 |
19 -- Simplified versions of Waqas DNS parsers | 19 -- Simplified versions of Waqas DNS parsers |
20 -- Only the per RR parsers are needed and only feed a single RR | 20 -- Only the per RR parsers are needed and only feed a single RR |
21 | 21 |