Move dns* to llarp/

pull/137/head
Michael 6 years ago
parent fddc8734d2
commit d9ce493a9e
No known key found for this signature in database
GPG Key ID: 2D51757B47E2434C

@ -1,5 +0,0 @@
#include <llarp/dns/name.hpp>
#include <llarp/dns/rr.hpp>
#include <llarp/dns/serialize.hpp>
#include <llarp/dns/message.hpp>
#include <llarp/dns/server.hpp>

@ -3,8 +3,8 @@
#include <llarp/ev.h> // for sockaadr
#include <string>
#include <llarp/dns.hpp> // question and dnsc
#include <llarp/dnsc.hpp>
#include <dns.hpp> // question and dnsc
#include <dnsc.hpp>
//
// Input structures/functions:

@ -5,7 +5,7 @@
#include <llarp/ip.hpp>
#include <llarp/service/endpoint.hpp>
#include <llarp/threading.hpp>
#include <llarp/dns/server.hpp>
#include <dns/server.hpp>
#include <llarp/net.hpp>
namespace llarp

@ -1,7 +1,7 @@
#ifndef LIBLLARP_DNS_HPP
#define LIBLLARP_DNS_HPP
#include <llarp/dns.h>
#include <dns.h>
#include <sys/types.h> // for uint & ssize_t
#include <map>
#include <string>
@ -12,7 +12,7 @@
#endif
#include <llarp/net.hpp> // for llarp::Addr , llarp::huint32_t
#include <llarp/dns_rectypes.hpp>
#include <dns_rectypes.hpp>
#define LLARP_DNS_RECTYPE_A 1
#define LLARP_DNS_RECTYPE_NS 2

@ -0,0 +1,5 @@
#include <dns/name.hpp>
#include <dns/rr.hpp>
#include <dns/serialize.hpp>
#include <dns/message.hpp>
#include <dns/server.hpp>

@ -1,5 +1,5 @@
#include <buffer.hpp>
#include <llarp/dns/message.hpp>
#include <dns/message.hpp>
#include <llarp/endian.hpp>
#include <llarp/logger.hpp>

@ -1,8 +1,8 @@
#ifndef LLARP_DNS_MESSAGE_HPP
#define LLARP_DNS_MESSAGE_HPP
#include <llarp/dns/serialize.hpp>
#include <llarp/dns/rr.hpp>
#include <llarp/dns/question.hpp>
#include <dns/serialize.hpp>
#include <dns/rr.hpp>
#include <dns/question.hpp>
namespace llarp
{

@ -1,7 +1,8 @@
#include <llarp/dns/name.hpp>
#include <dns/name.hpp>
#include <llarp/net.hpp>
#include <sstream>
#include <algorithm>
#include <sstream>
namespace llarp
{

@ -1,4 +1,4 @@
#include <llarp/dns/question.hpp>
#include <dns/question.hpp>
#include <llarp/logger.hpp>
namespace llarp

@ -1,7 +1,7 @@
#ifndef LLARP_DNS_QUESTION_HPP
#define LLARP_DNS_QUESTION_HPP
#include <llarp/dns/serialize.hpp>
#include <llarp/dns/name.hpp>
#include <dns/serialize.hpp>
#include <dns/name.hpp>
#include <llarp/net_int.hpp>
namespace llarp

@ -1,4 +1,4 @@
#include <llarp/dns/rr.hpp>
#include <dns/rr.hpp>
#include <llarp/logger.hpp>
namespace llarp

@ -1,10 +1,12 @@
#ifndef LLARP_DNS_RR_HPP
#define LLARP_DNS_RR_HPP
#include <llarp/dns/name.hpp>
#include <llarp/dns/serialize.hpp>
#include <dns/name.hpp>
#include <dns/serialize.hpp>
#include <llarp/net_int.hpp>
#include <vector>
#include <memory>
#include <vector>
namespace llarp
{

@ -1,4 +1,4 @@
#include <llarp/dns/serialize.hpp>
#include <dns/serialize.hpp>
#include <llarp/net_int.hpp>
namespace llarp

@ -1,4 +1,4 @@
#include <llarp/dns/server.hpp>
#include <dns/server.hpp>
namespace llarp
{

@ -1,10 +1,10 @@
#ifndef LLARP_DNS_SERVER_HPP
#define LLARP_DNS_SERVER_HPP
#include <llarp/string_view.hpp>
#include <llarp/dns/message.hpp>
#include <dns/message.hpp>
#include <llarp/ev.h>
#include <llarp/net.hpp>
#include <llarp/string_view.hpp>
#include <unordered_map>

@ -1,5 +1,5 @@
#include <llarp/dns_rectypes.hpp>
#include <llarp/dns.hpp> // for vput16bits()
#include <dns.hpp> // for vput16bits()
#include <dns_rectypes.hpp>
namespace llarp
{

@ -1,4 +1,4 @@
#include <llarp/dnsc.hpp>
#include <dnsc.hpp>
#ifndef _WIN32
#include <arpa/inet.h>

@ -2,7 +2,7 @@
#define LIBLLARP_DNSC_HPP
#include <llarp/ev.h> // for sockaadr
#include <llarp/dns.hpp> // get protocol structs
#include <dns.hpp> // get protocol structs
// internal, non-public functions
// well dnsc init/stop are public...

@ -1,9 +1,10 @@
#include <gtest/gtest.h>
#include <dns.hpp>
#include <dnsc.hpp>
#include <llarp.h> // for llarp_main_init
#include <llarp/logic.hpp> // for threadpool/llarp::Logic
#include "llarp/net.hpp" // for llarp::Addr
#include "llarp/dns.hpp"
#include "llarp/dnsc.hpp"
struct DNSTest : public ::testing::Test
{

@ -1,5 +1,6 @@
#include <gtest/gtest.h>
#include <dnsc.hpp>
#include <llarp.h> // for llarp_main_init
#include <llarp/logic.hpp> // for threadpool/llarp::Logic
#include "llarp/net.hpp" // for llarp::Addr
#include "llarp/dnsc.hpp"
#include <llarp/net.hpp> // for llarp::Addr

@ -1,4 +1,4 @@
#include <llarp/dns/dns.hpp>
#include <dns/dns.hpp>
#include <gtest/gtest.h>
#include <algorithm>
#include <llarp/net.hpp>

Loading…
Cancel
Save