lokinet/llarp/dns
Jason Rhinelander 9ea82edc07
DNS message parsing fixes and cleanup
Fixes:

- tighten reserved name detection to not match fooloki.loki, but instead
  only match "foo.loki.loki" and "loki.loki" (and similar for reserved
  name "snode.loki").
- IPv6 PTR parsing was completely broken.
- Added tests for the above two issues.

Cleanups:

- Eliminate llarp::dns::Name_t typedef for std::string
- Use optional return instead of bool + output param
- Use string_views; we were doing a *lot* of string substr's during
  parsing, each of which allocates a new string.
- Use fmt instead of stringstream
- Simplify IPv4 PTR parsing
2022-07-20 16:50:38 -03:00
..
dns.hpp standardize include format and pragma once 2021-03-09 19:01:41 -05:00
message.cpp DNS message parsing fixes and cleanup 2022-07-20 16:50:38 -03:00
message.hpp Remote util::Printer and related cruft 2022-07-18 14:56:09 -03:00
name.cpp DNS message parsing fixes and cleanup 2022-07-20 16:50:38 -03:00
name.hpp DNS message parsing fixes and cleanup 2022-07-20 16:50:38 -03:00
query.hpp standardize include format and pragma once 2021-03-09 19:01:41 -05:00
question.cpp DNS message parsing fixes and cleanup 2022-07-20 16:50:38 -03:00
question.hpp DNS message parsing fixes and cleanup 2022-07-20 16:50:38 -03:00
rr.cpp DNS message parsing fixes and cleanup 2022-07-20 16:50:38 -03:00
rr.hpp DNS message parsing fixes and cleanup 2022-07-20 16:50:38 -03:00
serialize.cpp standardize include format and pragma once 2021-03-09 19:01:41 -05:00
serialize.hpp macos sort of works now 2021-09-02 14:17:09 -04:00
server.cpp override ShouldHandlePacket on android to bypass non .snode/.loki dns hooking. 2021-09-03 14:03:55 -04:00
server.hpp Reformat 2021-09-02 14:17:10 -04:00
srv_data.cpp Replace logging with oxen-logger 2022-07-15 22:17:59 -03:00
srv_data.hpp srv records 2021-04-19 07:02:43 -04:00
string.hpp standardize include format and pragma once 2021-03-09 19:01:41 -05:00
unbound_resolver.cpp Replace logging with oxen-logger 2022-07-15 22:17:59 -03:00
unbound_resolver.hpp Forward-declare ub_ctx/ub_result 2021-09-02 14:17:11 -04:00