You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
2 years ago
..
dns.hpp standardize include format and pragma once 3 years ago
message.cpp DNS message parsing fixes and cleanup 2 years ago
message.hpp Remote util::Printer and related cruft 2 years ago
name.cpp DNS message parsing fixes and cleanup 2 years ago
name.hpp DNS message parsing fixes and cleanup 2 years ago
query.hpp standardize include format and pragma once 3 years ago
question.cpp DNS message parsing fixes and cleanup 2 years ago
question.hpp DNS message parsing fixes and cleanup 2 years ago
rr.cpp DNS message parsing fixes and cleanup 2 years ago
rr.hpp DNS message parsing fixes and cleanup 2 years ago
serialize.cpp standardize include format and pragma once 3 years ago
serialize.hpp macos sort of works now 3 years ago
server.cpp override ShouldHandlePacket on android to bypass non .snode/.loki dns hooking. 3 years ago
server.hpp Reformat 3 years ago
srv_data.cpp Replace logging with oxen-logger 2 years ago
srv_data.hpp srv records 3 years ago
string.hpp standardize include format and pragma once 3 years ago
unbound_resolver.cpp Replace logging with oxen-logger 2 years ago
unbound_resolver.hpp Forward-declare ub_ctx/ub_result 3 years ago