standardize include format and pragma once

All #ifndef guards on headers have been removed, I think,
in favor of #pragma once

Headers are now included as `#include "filename"` if the included file
resides in the same directory as the file including it, or any
subdirectory therein.  Otherwise they are included as
`#include <project/top/dir/relative/path/filename>`

The above does not include system/os headers.
pull/1574/head
Thomas Winget 3 years ago
parent 35fb54d131
commit 7caa87862e

@ -4,7 +4,7 @@
#include <future> #include <future>
#include <vector> #include <vector>
#include <array> #include <array>
#include <net/net.hpp> #include <llarp/net/net.hpp>
#ifdef _WIN32 #ifdef _WIN32
// add the unholy windows headers for iphlpapi // add the unholy windows headers for iphlpapi

@ -1,7 +1,7 @@
#include <config/config.hpp> #include <llarp/config/config.hpp>
#include <router_contact.hpp> #include <llarp/router_contact.hpp>
#include <util/logging/logger.hpp> #include <llarp/util/logging/logger.hpp>
#include <util/logging/ostream_logger.hpp> #include <llarp/util/logging/ostream_logger.hpp>
#include <cxxopts.hpp> #include <cxxopts.hpp>
#include <string> #include <string>

@ -1,11 +1,11 @@
#include <config/config.hpp> // for ensure_config #include <llarp/config/config.hpp> // for ensure_config
#include <constants/version.hpp> #include <llarp/constants/version.hpp>
#include <llarp.hpp> #include <llarp.hpp>
#include <util/lokinet_init.h> #include <llarp/util/lokinet_init.h>
#include <util/fs.hpp> #include <llarp/util/fs.hpp>
#include <util/logging/logger.hpp> #include <llarp/util/logging/logger.hpp>
#include <util/logging/ostream_logger.hpp> #include <llarp/util/logging/ostream_logger.hpp>
#include <util/str.hpp> #include <llarp/util/str.hpp>
#ifdef _WIN32 #ifdef _WIN32
#include <dbghelp.h> #include <dbghelp.h>

@ -1,6 +1,6 @@
#include "network_loki_lokinet_LokinetConfig.h" #include "network_loki_lokinet_LokinetConfig.h"
#include <llarp.hpp> #include <llarp.hpp>
#include <config/config.hpp> #include <llarp/config/config.hpp>
#include "lokinet_jni_common.hpp" #include "lokinet_jni_common.hpp"
extern "C" extern "C"

@ -2,7 +2,7 @@
#include "lokinet_jni_common.hpp" #include "lokinet_jni_common.hpp"
#include "lokinet_jni_vpnio.hpp" #include "lokinet_jni_vpnio.hpp"
#include <llarp.hpp> #include <llarp.hpp>
#include <config/config.hpp> #include <llarp/config/config.hpp>
extern "C" extern "C"
{ {

@ -1,5 +1,4 @@
#ifndef LOKINET_JNI_COMMON_HPP #pragma once
#define LOKINET_JNI_COMMON_HPP
#include <jni.h> #include <jni.h>
#include <string_view> #include <string_view>
@ -78,5 +77,3 @@ GetImpl(JNIEnv* env, jobject self)
{ {
return FromObjectMember<T>(env, self, "impl"); return FromObjectMember<T>(env, self, "impl");
} }
#endif

@ -1,5 +1,4 @@
#ifndef LOKINET_JNI_VPNIO_HPP #pragma once
#define LOKINET_JNI_VPNIO_HPP
#include <llarp.h> #include <llarp.h>
#include <memory> #include <memory>
@ -143,5 +142,3 @@ struct lokinet_jni_vpnio : public lokinet::VPNIO
Tick() override Tick() override
{} {}
}; };
#endif

@ -1,8 +1,8 @@
#include "network_loki_lokinet_LokinetVPN.h" #include "network_loki_lokinet_LokinetVPN.h"
#include "lokinet_jni_vpnio.hpp" #include "lokinet_jni_vpnio.hpp"
#include "lokinet_jni_common.hpp" #include "lokinet_jni_common.hpp"
#include <net/ip.hpp> #include <llarp/net/ip.hpp>
#include <net/ip_packet.hpp> #include <llarp/net/ip_packet.hpp>
#include <string_view> #include <string_view>
extern "C" extern "C"
@ -82,4 +82,4 @@ extern "C"
}); });
vpn->info.netmask = GetObjectMemberAsInt<uint8_t>(env, info, "netmask"); vpn->info.netmask = GetObjectMemberAsInt<uint8_t>(env, info, "netmask");
} }
} }

@ -22,7 +22,7 @@ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <android/ifaddrs.h> #include "ifaddrs.h"
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>

@ -1,5 +1,5 @@
#include <bootstrap.hpp> #include "bootstrap.hpp"
#include <util/bencode.hpp> #include "util/bencode.hpp"
namespace llarp namespace llarp
{ {

@ -1,7 +1,6 @@
#ifndef LLARP_BOOTSTRAP_HPP #pragma once
#define LLARP_BOOTSTRAP_HPP
#include <router_contact.hpp> #include "router_contact.hpp"
#include <set> #include <set>
namespace llarp namespace llarp
@ -18,5 +17,3 @@ namespace llarp
Clear(); Clear();
}; };
} // namespace llarp } // namespace llarp
#endif

@ -1,25 +1,25 @@
#include <chrono> #include <chrono>
#include <config/config.hpp> #include "config.hpp"
#include <config/ini.hpp> #include "ini.hpp"
#include <constants/defaults.hpp> #include <llarp/constants/defaults.hpp>
#include <constants/files.hpp> #include <llarp/constants/files.hpp>
#include <net/net.hpp> #include <llarp/net/net.hpp>
#include <net/ip.hpp> #include <llarp/net/ip.hpp>
#include <router_contact.hpp> #include <llarp/router_contact.hpp>
#include <stdexcept> #include <stdexcept>
#include <util/fs.hpp> #include <llarp/util/fs.hpp>
#include <util/logging/logger.hpp> #include <llarp/util/logging/logger.hpp>
#include <util/mem.hpp> #include <llarp/util/mem.hpp>
#include <util/str.hpp> #include <llarp/util/str.hpp>
#include <service/name.hpp> #include <llarp/service/name.hpp>
#include <cstdlib> #include <cstdlib>
#include <fstream> #include <fstream>
#include <ios> #include <ios>
#include <iostream> #include <iostream>
#include "constants/version.hpp" #include <llarp/constants/version.hpp>
namespace llarp namespace llarp
{ {

@ -1,22 +1,21 @@
#ifndef LLARP_CONFIG_HPP #pragma once
#define LLARP_CONFIG_HPP
#include <chrono> #include <chrono>
#include <crypto/types.hpp> #include <llarp/crypto/types.hpp>
#include <router_contact.hpp> #include <llarp/router_contact.hpp>
#include <util/fs.hpp> #include <llarp/util/fs.hpp>
#include <util/str.hpp> #include <llarp/util/str.hpp>
#include <config/ini.hpp> #include "ini.hpp"
#include <config/definition.hpp> #include "definition.hpp"
#include <constants/files.hpp> #include <llarp/constants/files.hpp>
#include <net/ip_address.hpp> #include <llarp/net/ip_address.hpp>
#include <net/net_int.hpp> #include <llarp/net/net_int.hpp>
#include <net/ip_range_map.hpp> #include <llarp/net/ip_range_map.hpp>
#include <service/address.hpp> #include <llarp/service/address.hpp>
#include <service/auth.hpp> #include <llarp/service/auth.hpp>
#include <dns/srv_data.hpp> #include <llarp/dns/srv_data.hpp>
#include <router_contact.hpp> #include <llarp/router_contact.hpp>
#include <cstdlib> #include <cstdlib>
#include <functional> #include <functional>
@ -276,5 +275,3 @@ namespace llarp
ensureConfig(fs::path dataDir, fs::path confFile, bool overwrite, bool asRouter); ensureConfig(fs::path dataDir, fs::path confFile, bool overwrite, bool asRouter);
} // namespace llarp } // namespace llarp
#endif

@ -1,5 +1,5 @@
#include <config/definition.hpp> #include "definition.hpp"
#include <util/logging/logger.hpp> #include <llarp/util/logging/logger.hpp>
#include <iterator> #include <iterator>
#include <sstream> #include <sstream>

@ -2,8 +2,8 @@
#include <initializer_list> #include <initializer_list>
#include <type_traits> #include <type_traits>
#include <util/str.hpp> #include <llarp/util/str.hpp>
#include <util/fs.hpp> #include <llarp/util/fs.hpp>
#include <iostream> #include <iostream>
#include <memory> #include <memory>

@ -1,7 +1,7 @@
#include <config/ini.hpp> #include "ini.hpp"
#include <util/logging/logger.hpp> #include <llarp/util/logging/logger.hpp>
#include <util/str.hpp> #include <llarp/util/str.hpp>
#include <cctype> #include <cctype>
#include <fstream> #include <fstream>

@ -1,5 +1,4 @@
#ifndef LOKINET_BOOTSERV_CONFIG_HPP #pragma once
#define LOKINET_BOOTSERV_CONFIG_HPP
#include <string_view> #include <string_view>
#include <string> #include <string>
@ -7,7 +6,7 @@
#include <memory> #include <memory>
#include <unordered_map> #include <unordered_map>
#include <vector> #include <vector>
#include <util/fs.hpp> #include <llarp/util/fs.hpp>
namespace llarp namespace llarp
{ {
@ -59,5 +58,3 @@ namespace llarp
}; };
} // namespace llarp } // namespace llarp
#endif

@ -1,10 +1,10 @@
#include <config/key_manager.hpp> #include "key_manager.hpp"
#include <system_error> #include <system_error>
#include <util/logging/logger.hpp> #include <llarp/util/logging/logger.hpp>
#include "config/config.hpp" #include "config.hpp"
#include "crypto/crypto.hpp" #include <llarp/crypto/crypto.hpp>
#include "crypto/types.hpp" #include <llarp/crypto/types.hpp>
namespace llarp namespace llarp
{ {

@ -1,10 +1,9 @@
#ifndef LLARP_KEY_MANAGER_HPP #pragma once
#define LLARP_KEY_MANAGER_HPP
#include <atomic> #include <atomic>
#include <config/config.hpp> #include "config.hpp"
#include <crypto/types.hpp> #include <llarp/crypto/types.hpp>
#include <router_contact.hpp> #include <llarp/router_contact.hpp>
namespace llarp namespace llarp
{ {
@ -88,5 +87,3 @@ namespace llarp
}; };
} // namespace llarp } // namespace llarp
#endif

@ -1,5 +1,5 @@
#include <consensus/table.hpp> #include "table.hpp"
#include <crypto/crypto.hpp> #include <llarp/crypto/crypto.hpp>
namespace llarp namespace llarp
{ {

@ -1,7 +1,6 @@
#ifndef LLARP_CONSENSUS_TABLE_HPP #pragma once
#define LLARP_CONSENSUS_TABLE_HPP
#include <crypto/types.hpp> #include <llarp/crypto/types.hpp>
#include <vector> #include <vector>
namespace llarp namespace llarp
@ -16,5 +15,3 @@ namespace llarp
}; };
} // namespace consensus } // namespace consensus
} // namespace llarp } // namespace llarp
#endif

@ -1,5 +1,4 @@
#ifndef LLARP_DEFAULTS_HPP #pragma once
#define LLARP_DEFAULTS_HPP
#ifndef DEFAULT_RESOLVER_US #ifndef DEFAULT_RESOLVER_US
#define DEFAULT_RESOLVER_US "1.1.1.1" #define DEFAULT_RESOLVER_US "1.1.1.1"
@ -17,5 +16,3 @@
#ifndef DEFAULT_LOKINET_GROUP #ifndef DEFAULT_LOKINET_GROUP
#define DEFAULT_LOKINET_GROUP "lokinet" #define DEFAULT_LOKINET_GROUP "lokinet"
#endif #endif
#endif

@ -1,6 +1,6 @@
#pragma once #pragma once
#include <util/fs.hpp> #include <llarp/util/fs.hpp>
#include <stdlib.h> #include <stdlib.h>

@ -1,11 +1,9 @@
#ifndef LLARP_LINK_LAYER_HPP #pragma once
#define LLARP_LINK_LAYER_HPP #include <llarp/util/types.hpp>
#include <util/types.hpp> #include <llarp/util/time.hpp>
#include <util/time.hpp>
#include <cstdlib> #include <cstdlib>
constexpr size_t MAX_LINK_MSG_SIZE = 8192; constexpr size_t MAX_LINK_MSG_SIZE = 8192;
static constexpr auto DefaultLinkSessionLifetime = 1min; static constexpr auto DefaultLinkSessionLifetime = 1min;
constexpr size_t MaxSendQueueSize = 1024; constexpr size_t MaxSendQueueSize = 1024;
#endif

@ -1,11 +1,10 @@
#ifndef LLARP_CONSTANTS_PATH_HPP #pragma once
#define LLARP_CONSTANTS_PATH_HPP
#include <chrono> #include <chrono>
#include <cstddef> #include <cstddef>
#include <util/types.hpp> #include <llarp/util/types.hpp>
#include <util/time.hpp> #include <llarp/util/time.hpp>
namespace llarp namespace llarp
{ {
@ -40,5 +39,3 @@ namespace llarp
} // namespace path } // namespace path
} // namespace llarp } // namespace llarp
#endif

@ -1,5 +1,4 @@
#ifndef LLARP_PROTO_HPP #pragma once
#define LLARP_PROTO_HPP
#ifndef LLARP_PROTO_VERSION #ifndef LLARP_PROTO_VERSION
#define LLARP_PROTO_VERSION (0) #define LLARP_PROTO_VERSION (0)
@ -12,5 +11,3 @@
#ifndef LLARP_KEYFILE_VERSION #ifndef LLARP_KEYFILE_VERSION
#define LLARP_KEYFILE_VERSION (1) #define LLARP_KEYFILE_VERSION (1)
#endif #endif
#endif

@ -1,17 +1,17 @@
#include <llarp.hpp> #include <llarp.hpp>
#include <constants/version.hpp> #include "constants/version.hpp"
#include <constants/evloop.hpp> #include "constants/evloop.hpp"
#include <config/config.hpp> #include "config/config.hpp"
#include <crypto/crypto_libsodium.hpp> #include "crypto/crypto_libsodium.hpp"
#include <dht/context.hpp> #include "dht/context.hpp"
#include <ev/ev.hpp> #include "ev/ev.hpp"
#include <ev/vpnio.hpp> #include "ev/vpnio.hpp"
#include <memory> #include <memory>
#include <nodedb.hpp> #include "nodedb.hpp"
#include <router/router.hpp> #include "router/router.hpp"
#include <service/context.hpp> #include "service/context.hpp"
#include <util/logging/logger.hpp> #include "util/logging/logger.hpp"
#include <cxxopts.hpp> #include <cxxopts.hpp>
#include <csignal> #include <csignal>

@ -1,5 +1,4 @@
#ifndef LLARP_CRYPTO_CONSTANTS_HPP #pragma once
#define LLARP_CRYPTO_CONSTANTS_HPP
#include <cstdint> #include <cstdint>
@ -21,5 +20,3 @@ static constexpr uint32_t PQ_CIPHERTEXTSIZE = crypto_kem_CIPHERTEXTBYTES;
static constexpr uint32_t PQ_PUBKEYSIZE = crypto_kem_PUBLICKEYBYTES; static constexpr uint32_t PQ_PUBKEYSIZE = crypto_kem_PUBLICKEYBYTES;
static constexpr uint32_t PQ_SECRETKEYSIZE = crypto_kem_SECRETKEYBYTES; static constexpr uint32_t PQ_SECRETKEYSIZE = crypto_kem_SECRETKEYBYTES;
static constexpr uint32_t PQ_KEYPAIRSIZE = (PQ_SECRETKEYSIZE + PQ_PUBKEYSIZE); static constexpr uint32_t PQ_KEYPAIRSIZE = (PQ_SECRETKEYSIZE + PQ_PUBKEYSIZE);
#endif

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

@ -1,10 +1,9 @@
#ifndef LLARP_CRYPTO_HPP #pragma once
#define LLARP_CRYPTO_HPP
#include <crypto/constants.hpp> #include "constants.hpp"
#include <crypto/types.hpp> #include "types.hpp"
#include <util/buffer.hpp> #include <llarp/util/buffer.hpp>
#include <functional> #include <functional>
@ -176,5 +175,3 @@ namespace llarp
}; };
} // namespace llarp } // namespace llarp
#endif

@ -1,4 +1,4 @@
#include <crypto/crypto_libsodium.hpp> #include "crypto_libsodium.hpp"
#include <sodium/crypto_generichash.h> #include <sodium/crypto_generichash.h>
#include <sodium/crypto_sign.h> #include <sodium/crypto_sign.h>
#include <sodium/crypto_scalarmult.h> #include <sodium/crypto_scalarmult.h>
@ -8,9 +8,9 @@
#include <sodium/crypto_aead_xchacha20poly1305.h> #include <sodium/crypto_aead_xchacha20poly1305.h>
#include <sodium/randombytes.h> #include <sodium/randombytes.h>
#include <sodium/utils.h> #include <sodium/utils.h>
#include <util/mem.hpp> #include <llarp/util/mem.hpp>
#include <util/endian.hpp> #include <llarp/util/endian.hpp>
#include <util/str.hpp> #include <llarp/util/str.hpp>
#include <cassert> #include <cassert>
#include <cstring> #include <cstring>

@ -1,7 +1,6 @@
#ifndef LLARP_CRYPTO_LIBSODIUM_HPP #pragma once
#define LLARP_CRYPTO_LIBSODIUM_HPP
#include <crypto/crypto.hpp> #include "crypto.hpp"
namespace llarp namespace llarp
{ {
@ -109,5 +108,3 @@ namespace llarp
} // namespace sodium } // namespace sodium
} // namespace llarp } // namespace llarp
#endif

@ -1,11 +1,10 @@
#ifndef LLARP_ENCRYPTED_HPP #pragma once
#define LLARP_ENCRYPTED_HPP
#include <constants/link_layer.hpp> #include <llarp/constants/link_layer.hpp>
#include <util/aligned.hpp> #include <llarp/util/aligned.hpp>
#include <util/bencode.h> #include <llarp/util/bencode.h>
#include <util/buffer.hpp> #include <llarp/util/buffer.hpp>
#include <util/mem.hpp> #include <llarp/util/mem.hpp>
#include <vector> #include <vector>
#include <stdexcept> #include <stdexcept>
@ -165,5 +164,3 @@ namespace llarp
llarp_buffer_t m_Buffer; llarp_buffer_t m_Buffer;
}; // namespace llarp }; // namespace llarp
} // namespace llarp } // namespace llarp
#endif

@ -1,8 +1,8 @@
#include <crypto/encrypted_frame.hpp> #include "encrypted_frame.hpp"
#include <crypto/crypto.hpp> #include "crypto.hpp"
#include <util/logging/logger.hpp> #include <llarp/util/logging/logger.hpp>
#include <util/mem.hpp> #include <llarp/util/mem.hpp>
namespace llarp namespace llarp
{ {

@ -1,11 +1,10 @@
#ifndef LLARP_ENCRYPTED_FRAME_HPP #pragma once
#define LLARP_ENCRYPTED_FRAME_HPP
#include <crypto/encrypted.hpp> #include "encrypted.hpp"
#include <crypto/types.hpp> #include "types.hpp"
#include <util/buffer.hpp> #include <llarp/util/buffer.hpp>
#include <utility> #include <utility>
#include <util/mem.h> #include <llarp/util/mem.h>
namespace llarp namespace llarp
{ {
@ -85,5 +84,3 @@ namespace llarp
} }
}; };
} // namespace llarp } // namespace llarp
#endif

@ -1,9 +1,9 @@
#include <crypto/types.hpp> #include "types.hpp"
#include <util/buffer.hpp> #include <llarp/util/buffer.hpp>
#include <fstream> #include <fstream>
#include <util/fs.hpp> #include <llarp/util/fs.hpp>
#include <iterator> #include <iterator>

@ -1,11 +1,10 @@
#ifndef LLARP_CRYPTO_TYPES_HPP #pragma once
#define LLARP_CRYPTO_TYPES_HPP
#include <crypto/constants.hpp> #include "constants.hpp"
#include <router_id.hpp> #include <llarp/router_id.hpp>
#include <util/aligned.hpp> #include <llarp/util/aligned.hpp>
#include <util/types.hpp> #include <llarp/util/types.hpp>
#include <util/fs.hpp> #include <llarp/util/fs.hpp>
#include <algorithm> #include <algorithm>
#include <iostream> #include <iostream>
@ -244,5 +243,3 @@ namespace llarp
/// SH(result, body) /// SH(result, body)
using shorthash_func = std::function<bool(ShortHash&, const llarp_buffer_t&)>; using shorthash_func = std::function<bool(ShortHash&, const llarp_buffer_t&)>;
} // namespace llarp } // namespace llarp
#endif

@ -1,9 +1,8 @@
#ifndef LLARP_DHT_BUCKET_HPP #pragma once
#define LLARP_DHT_BUCKET_HPP
#include <dht/kademlia.hpp> #include "kademlia.hpp"
#include <dht/key.hpp> #include "key.hpp"
#include <util/status.hpp> #include <llarp/util/status.hpp>
#include <map> #include <map>
#include <set> #include <set>
@ -230,4 +229,3 @@ namespace llarp
}; };
} // namespace dht } // namespace dht
} // namespace llarp } // namespace llarp
#endif

@ -1,26 +1,26 @@
#include <dht/context.hpp> #include "context.hpp"
#include <dht/explorenetworkjob.hpp> #include "explorenetworkjob.hpp"
#include <dht/localrouterlookup.hpp> #include "localrouterlookup.hpp"
#include <dht/localserviceaddresslookup.hpp> #include "localserviceaddresslookup.hpp"
#include <dht/localtaglookup.hpp> #include "localtaglookup.hpp"
#include <dht/messages/findrouter.hpp> #include <llarp/dht/messages/findrouter.hpp>
#include <dht/messages/gotintro.hpp> #include <llarp/dht/messages/gotintro.hpp>
#include <dht/messages/gotrouter.hpp> #include <llarp/dht/messages/gotrouter.hpp>
#include <dht/messages/pubintro.hpp> #include <llarp/dht/messages/pubintro.hpp>
#include <dht/node.hpp> #include "node.hpp"
#include <dht/publishservicejob.hpp> #include "publishservicejob.hpp"
#include <dht/recursiverouterlookup.hpp> #include "recursiverouterlookup.hpp"
#include <dht/serviceaddresslookup.hpp> #include "serviceaddresslookup.hpp"
#include <dht/taglookup.hpp> #include "taglookup.hpp"
#include <messages/dht_immediate.hpp> #include <llarp/messages/dht_immediate.hpp>
#include <path/path_context.hpp> #include <llarp/path/path_context.hpp>
#include <router/abstractrouter.hpp> #include <llarp/router/abstractrouter.hpp>
#include <routing/dht_message.hpp> #include <llarp/routing/dht_message.hpp>
#include <nodedb.hpp> #include <llarp/nodedb.hpp>
#include <profiling.hpp> #include <llarp/profiling.hpp>
#include <router/i_rc_lookup_handler.hpp> #include <llarp/router/i_rc_lookup_handler.hpp>
#include <util/decaying_hashset.hpp> #include <llarp/util/decaying_hashset.hpp>
#include <vector> #include <vector>
namespace llarp namespace llarp

@ -1,18 +1,18 @@
#ifndef LLARP_DHT_CONTEXT #ifndef LLARP_DHT_CONTEXT
#define LLARP_DHT_CONTEXT #define LLARP_DHT_CONTEXT
#include <dht/bucket.hpp> #include "bucket.hpp"
#include <dht/dht.h> #include "dht.h"
#include <dht/key.hpp> #include "key.hpp"
#include <dht/message.hpp> #include "message.hpp"
#include <dht/messages/findintro.hpp> #include <llarp/dht/messages/findintro.hpp>
#include <dht/node.hpp> #include "node.hpp"
#include <dht/tx.hpp> #include "tx.hpp"
#include <dht/txholder.hpp> #include "txholder.hpp"
#include <dht/txowner.hpp> #include "txowner.hpp"
#include <service/intro_set.hpp> #include <llarp/service/intro_set.hpp>
#include <util/time.hpp> #include <llarp/util/time.hpp>
#include <util/status.hpp> #include <llarp/util/status.hpp>
#include <memory> #include <memory>
#include <set> #include <set>

@ -1,6 +1,6 @@
#include <dht/context.hpp> #include "context.hpp"
#include <dht/dht.h> #include "dht.h"
#include <router_contact.hpp> #include <llarp/router_contact.hpp>
llarp_dht_context::llarp_dht_context(llarp::AbstractRouter* router) llarp_dht_context::llarp_dht_context(llarp::AbstractRouter* router)
{ {

@ -1,9 +1,8 @@
#ifndef LLARP_DHT_H_ #pragma once
#define LLARP_DHT_H_
#include <crypto/crypto.hpp> #include <llarp/crypto/crypto.hpp>
#include <router_contact.hpp> #include <llarp/router_contact.hpp>
#include <util/buffer.hpp> #include <llarp/util/buffer.hpp>
/** /**
* dht.h * dht.h
@ -60,5 +59,3 @@ __llarp_dht_remove_peer(struct llarp_dht_context* ctx, const byte_t* id);
void void
llarp_dht_lookup_router(struct llarp_dht_context* ctx, struct llarp_router_lookup_job* job); llarp_dht_lookup_router(struct llarp_dht_context* ctx, struct llarp_router_lookup_job* job);
#endif

@ -1,12 +1,12 @@
#include <dht/explorenetworkjob.hpp> #include "explorenetworkjob.hpp"
#include <dht/context.hpp> #include "context.hpp"
#include <dht/messages/findrouter.hpp> #include <llarp/dht/messages/findrouter.hpp>
#include <router/abstractrouter.hpp> #include <llarp/router/abstractrouter.hpp>
#include <nodedb.hpp> #include <llarp/nodedb.hpp>
#include <tooling/dht_event.hpp> #include <llarp/tooling/dht_event.hpp>
namespace llarp namespace llarp
{ {

@ -1,8 +1,8 @@
#ifndef LLARP_DHT_EXPLORENETWORKJOB #ifndef LLARP_DHT_EXPLORENETWORKJOB
#define LLARP_DHT_EXPLORENETWORKJOB #define LLARP_DHT_EXPLORENETWORKJOB
#include <dht/tx.hpp> #include "tx.hpp"
#include <router_id.hpp> #include <llarp/router_id.hpp>
namespace llarp namespace llarp
{ {

@ -1,8 +1,7 @@
#ifndef LLARP_DHT_KADEMLIA_HPP #pragma once
#define LLARP_DHT_KADEMLIA_HPP
#include <dht/key.hpp> #include "key.hpp"
#include <router_contact.hpp> #include <llarp/router_contact.hpp>
namespace llarp namespace llarp
{ {
@ -29,4 +28,3 @@ namespace llarp
}; };
} // namespace dht } // namespace dht
} // namespace llarp } // namespace llarp
#endif

@ -1,8 +1,7 @@
#ifndef LLARP_DHT_KEY_HPP #pragma once
#define LLARP_DHT_KEY_HPP
#include <util/aligned.hpp> #include <llarp/util/aligned.hpp>
#include <router_id.hpp> #include <llarp/router_id.hpp>
#include <array> #include <array>
@ -75,5 +74,3 @@ namespace llarp
}; };
} // namespace dht } // namespace dht
} // namespace llarp } // namespace llarp
#endif

@ -1,12 +1,12 @@
#include <dht/localrouterlookup.hpp> #include "localrouterlookup.hpp"
#include <dht/context.hpp> #include "context.hpp"
#include <dht/messages/gotrouter.hpp> #include <llarp/dht/messages/gotrouter.hpp>
#include <path/path_context.hpp> #include <llarp/path/path_context.hpp>
#include <router/abstractrouter.hpp> #include <llarp/router/abstractrouter.hpp>
#include <routing/dht_message.hpp> #include <llarp/routing/dht_message.hpp>
#include <util/logging/logger.hpp> #include <llarp/util/logging/logger.hpp>
namespace llarp namespace llarp
{ {

@ -1,11 +1,11 @@
#ifndef LLARP_DHT_LOCALROUTERLOOKUP #ifndef LLARP_DHT_LOCALROUTERLOOKUP
#define LLARP_DHT_LOCALROUTERLOOKUP #define LLARP_DHT_LOCALROUTERLOOKUP
#include <dht/recursiverouterlookup.hpp> #include "recursiverouterlookup.hpp"
#include <path/path_types.hpp> #include <llarp/path/path_types.hpp>
#include <router_contact.hpp> #include <llarp/router_contact.hpp>
#include <router_id.hpp> #include <llarp/router_id.hpp>
namespace llarp namespace llarp
{ {

@ -1,11 +1,11 @@
#include <dht/localserviceaddresslookup.hpp> #include "localserviceaddresslookup.hpp"
#include <dht/context.hpp> #include "context.hpp"
#include <dht/messages/gotintro.hpp> #include <llarp/dht/messages/gotintro.hpp>
#include <path/path_context.hpp> #include <llarp/path/path_context.hpp>
#include <router/abstractrouter.hpp> #include <llarp/router/abstractrouter.hpp>
#include <routing/dht_message.hpp> #include <llarp/routing/dht_message.hpp>
#include <util/logging/logger.hpp> #include <llarp/util/logging/logger.hpp>
namespace llarp namespace llarp
{ {

@ -1,9 +1,9 @@
#ifndef LLARP_DHT_LOCALSERVICEADDRESSLOOKUP #ifndef LLARP_DHT_LOCALSERVICEADDRESSLOOKUP
#define LLARP_DHT_LOCALSERVICEADDRESSLOOKUP #define LLARP_DHT_LOCALSERVICEADDRESSLOOKUP
#include <dht/serviceaddresslookup.hpp> #include "serviceaddresslookup.hpp"
#include <path/path_types.hpp> #include <llarp/path/path_types.hpp>
namespace llarp namespace llarp
{ {

@ -1,10 +1,10 @@
#include <dht/localtaglookup.hpp> #include "localtaglookup.hpp"
#include <dht/context.hpp> #include "context.hpp"
#include <dht/messages/gotintro.hpp> #include <llarp/dht/messages/gotintro.hpp>
#include <path/path_context.hpp> #include <llarp/path/path_context.hpp>
#include <router/abstractrouter.hpp> #include <llarp/router/abstractrouter.hpp>
#include <routing/dht_message.hpp> #include <llarp/routing/dht_message.hpp>
namespace llarp namespace llarp
{ {

@ -1,7 +1,7 @@
#ifndef LLARP_DHT_LOOKUPTAGLOOKUP #ifndef LLARP_DHT_LOOKUPTAGLOOKUP
#define LLARP_DHT_LOOKUPTAGLOOKUP #define LLARP_DHT_LOOKUPTAGLOOKUP
#include <dht/taglookup.hpp> #include "taglookup.hpp"
namespace llarp namespace llarp
{ {

@ -1,14 +1,14 @@
#include <dht/context.hpp> #include "context.hpp"
#include <memory> #include <memory>
#include <util/bencode.hpp> #include <llarp/util/bencode.hpp>
#include <dht/messages/findintro.hpp> #include <llarp/dht/messages/findintro.hpp>
#include <dht/messages/findrouter.hpp> #include <llarp/dht/messages/findrouter.hpp>
#include <dht/messages/gotintro.hpp> #include <llarp/dht/messages/gotintro.hpp>
#include <dht/messages/gotrouter.hpp> #include <llarp/dht/messages/gotrouter.hpp>
#include <dht/messages/pubintro.hpp> #include <llarp/dht/messages/pubintro.hpp>
#include <dht/messages/findname.hpp> #include <llarp/dht/messages/findname.hpp>
#include <dht/messages/gotname.hpp> #include <llarp/dht/messages/gotname.hpp>
namespace llarp namespace llarp
{ {

@ -1,10 +1,9 @@
#ifndef LLARP_DHT_MESSAGE_HPP #pragma once
#define LLARP_DHT_MESSAGE_HPP
#include <dht/dht.h> #include "dht.h"
#include <dht/key.hpp> #include "key.hpp"
#include <path/path_types.hpp> #include <llarp/path/path_types.hpp>
#include <util/bencode.hpp> #include <llarp/util/bencode.hpp>
#include <vector> #include <vector>
@ -46,5 +45,3 @@ namespace llarp
Key_t from, llarp_buffer_t* buf, std::vector<IMessage::Ptr_t>& dst, bool relayed = false); Key_t from, llarp_buffer_t* buf, std::vector<IMessage::Ptr_t>& dst, bool relayed = false);
} // namespace dht } // namespace dht
} // namespace llarp } // namespace llarp
#endif

@ -1,7 +1,6 @@
#ifndef LLARP_DHT_MESSAGES_CONSENSUS_HPP #pragma once
#define LLARP_DHT_MESSAGES_CONSENSUS_HPP #include <llarp/dht/message.hpp>
#include <dht/message.hpp> #include <llarp/router_version.hpp>
#include <router_version.hpp>
namespace llarp namespace llarp
{ {

@ -1,9 +1,9 @@
#include <dht/context.hpp> #include <llarp/dht/context.hpp>
#include <dht/messages/findintro.hpp> #include "findintro.hpp"
#include <dht/messages/gotintro.hpp> #include "gotintro.hpp"
#include <routing/message.hpp> #include <llarp/routing/message.hpp>
#include <router/abstractrouter.hpp> #include <llarp/router/abstractrouter.hpp>
#include <nodedb.hpp> #include <llarp/nodedb.hpp>
namespace llarp namespace llarp
{ {

@ -1,10 +1,9 @@
#ifndef LLARP_DHT_MESSAGES_FIND_INTRO_HPP #pragma once
#define LLARP_DHT_MESSAGES_FIND_INTRO_HPP
#include <dht/message.hpp> #include <llarp/dht/message.hpp>
#include <routing/message.hpp> #include <llarp/routing/message.hpp>
#include <service/address.hpp> #include <llarp/service/address.hpp>
#include <service/tag.hpp> #include <llarp/service/tag.hpp>
namespace llarp namespace llarp
{ {
@ -47,4 +46,3 @@ namespace llarp
}; };
} // namespace dht } // namespace dht
} // namespace llarp } // namespace llarp
#endif

@ -1,11 +1,11 @@
#include <dht/messages/findname.hpp> #include "findname.hpp"
#include <oxenmq/bt_serialize.h> #include <oxenmq/bt_serialize.h>
#include <dht/context.hpp> #include <llarp/dht/context.hpp>
#include <dht/messages/gotname.hpp> #include "gotname.hpp"
#include <router/abstractrouter.hpp> #include <llarp/router/abstractrouter.hpp>
#include <rpc/lokid_rpc_client.hpp> #include <llarp/rpc/lokid_rpc_client.hpp>
#include <path/path_context.hpp> #include <llarp/path/path_context.hpp>
#include <routing/dht_message.hpp> #include <llarp/routing/dht_message.hpp>
namespace llarp::dht namespace llarp::dht
{ {

@ -1,6 +1,6 @@
#pragma once #pragma once
#include <dht/message.hpp> #include <llarp/dht/message.hpp>
namespace llarp::dht namespace llarp::dht
{ {

@ -1,13 +1,13 @@
#include <dht/messages/findrouter.hpp> #include "findrouter.hpp"
#include <dht/context.hpp> #include <llarp/dht/context.hpp>
#include <dht/messages/gotrouter.hpp> #include "gotrouter.hpp"
#include <nodedb.hpp> #include <llarp/nodedb.hpp>
#include <path/path_context.hpp> #include <llarp/path/path_context.hpp>
#include <router/abstractrouter.hpp> #include <llarp/router/abstractrouter.hpp>
#include <routing/dht_message.hpp> #include <llarp/routing/dht_message.hpp>
#include <tooling/dht_event.hpp> #include <llarp/tooling/dht_event.hpp>
namespace llarp namespace llarp
{ {

@ -1,6 +1,5 @@
#ifndef LLARP_DHT_MESSAGES_FIND_ROUTER_HPP #pragma once
#define LLARP_DHT_MESSAGES_FIND_ROUTER_HPP #include <llarp/dht/message.hpp>
#include <dht/message.hpp>
namespace llarp namespace llarp
{ {
@ -56,4 +55,3 @@ namespace llarp
}; };
} // namespace dht } // namespace dht
} // namespace llarp } // namespace llarp
#endif

@ -1,12 +1,12 @@
#include <dht/messages/gotintro.hpp> #include "gotintro.hpp"
#include <service/intro.hpp> #include <llarp/service/intro.hpp>
#include <dht/context.hpp> #include <llarp/dht/context.hpp>
#include <memory> #include <memory>
#include <path/path_context.hpp> #include <llarp/path/path_context.hpp>
#include <router/abstractrouter.hpp> #include <llarp/router/abstractrouter.hpp>
#include <routing/dht_message.hpp> #include <llarp/routing/dht_message.hpp>
#include <tooling/dht_event.hpp> #include <llarp/tooling/dht_event.hpp>
#include <utility> #include <utility>
namespace llarp namespace llarp

@ -1,9 +1,8 @@
#ifndef LLARP_DHT_MESSAGES_GOT_INTRO_HPP #pragma once
#define LLARP_DHT_MESSAGES_GOT_INTRO_HPP
#include <dht/message.hpp> #include <llarp/dht/message.hpp>
#include <service/intro_set.hpp> #include <llarp/service/intro_set.hpp>
#include <util/copy_or_nullptr.hpp> #include <llarp/util/copy_or_nullptr.hpp>
#include <vector> #include <vector>
#include <optional> #include <optional>
@ -63,4 +62,3 @@ namespace llarp
using GotIntroMessage_constptr = std::shared_ptr<const GotIntroMessage>; using GotIntroMessage_constptr = std::shared_ptr<const GotIntroMessage>;
} // namespace dht } // namespace dht
} // namespace llarp } // namespace llarp
#endif

@ -1,8 +1,8 @@
#include <dht/messages/gotname.hpp> #include "gotname.hpp"
#include <oxenmq/bt_serialize.h> #include <oxenmq/bt_serialize.h>
#include <dht/context.hpp> #include <llarp/dht/context.hpp>
#include <router/abstractrouter.hpp> #include <llarp/router/abstractrouter.hpp>
#include <path/path_context.hpp> #include <llarp/path/path_context.hpp>
namespace llarp::dht namespace llarp::dht
{ {

@ -1,7 +1,7 @@
#pragma once #pragma once
#include <dht/message.hpp> #include <llarp/dht/message.hpp>
#include <service/name.hpp> #include <llarp/service/name.hpp>
namespace llarp::dht namespace llarp::dht
{ {

@ -1,11 +1,11 @@
#include <dht/context.hpp> #include <llarp/dht/context.hpp>
#include <dht/messages/gotrouter.hpp> #include "gotrouter.hpp"
#include <memory> #include <memory>
#include <path/path_context.hpp> #include <llarp/path/path_context.hpp>
#include <router/abstractrouter.hpp> #include <llarp/router/abstractrouter.hpp>
#include <router/i_rc_lookup_handler.hpp> #include <llarp/router/i_rc_lookup_handler.hpp>
#include <tooling/rc_event.hpp> #include <llarp/tooling/rc_event.hpp>
namespace llarp namespace llarp
{ {

@ -1,9 +1,8 @@
#ifndef LLARP_DHT_MESSAGES_GOT_ROUTER_HPP #pragma once
#define LLARP_DHT_MESSAGES_GOT_ROUTER_HPP #include <llarp/constants/proto.hpp>
#include <constants/proto.hpp> #include <llarp/dht/message.hpp>
#include <dht/message.hpp> #include <llarp/router_contact.hpp>
#include <router_contact.hpp> #include <llarp/util/copy_or_nullptr.hpp>
#include <util/copy_or_nullptr.hpp>
#include <utility> #include <utility>
#include <vector> #include <vector>
@ -67,4 +66,3 @@ namespace llarp
using GotRouterMessage_constptr = std::shared_ptr<const GotRouterMessage>; using GotRouterMessage_constptr = std::shared_ptr<const GotRouterMessage>;
} // namespace dht } // namespace dht
} // namespace llarp } // namespace llarp
#endif

@ -1,13 +1,13 @@
#include <dht/messages/pubintro.hpp> #include "pubintro.hpp"
#include <dht/context.hpp> #include <llarp/dht/context.hpp>
#include <dht/messages/gotintro.hpp> #include "gotintro.hpp"
#include <messages/dht_immediate.hpp> #include <llarp/messages/dht_immediate.hpp>
#include <router/abstractrouter.hpp> #include <llarp/router/abstractrouter.hpp>
#include <routing/dht_message.hpp> #include <llarp/routing/dht_message.hpp>
#include <nodedb.hpp> #include <llarp/nodedb.hpp>
#include <tooling/dht_event.hpp> #include <llarp/tooling/dht_event.hpp>
namespace llarp namespace llarp
{ {

@ -1,7 +1,6 @@
#ifndef LLARP_DHT_MESSAGES_PUB_INTRO_HPP #pragma once
#define LLARP_DHT_MESSAGES_PUB_INTRO_HPP #include <llarp/dht/message.hpp>
#include <dht/message.hpp> #include <llarp/service/intro_set.hpp>
#include <service/intro_set.hpp>
#include <utility> #include <utility>
#include <vector> #include <vector>
@ -42,4 +41,3 @@ namespace llarp
}; };
} // namespace dht } // namespace dht
} // namespace llarp } // namespace llarp
#endif

@ -1,9 +1,8 @@
#ifndef LLARP_DHT_NODE_HPP #pragma once
#define LLARP_DHT_NODE_HPP
#include <dht/key.hpp> #include "key.hpp"
#include <router_contact.hpp> #include <llarp/router_contact.hpp>
#include <service/intro_set.hpp> #include <llarp/service/intro_set.hpp>
#include <utility> #include <utility>
namespace llarp namespace llarp
@ -66,5 +65,3 @@ namespace llarp
}; };
} // namespace dht } // namespace dht
} // namespace llarp } // namespace llarp
#endif

@ -1,11 +1,11 @@
#include <dht/publishservicejob.hpp> #include "publishservicejob.hpp"
#include <dht/context.hpp> #include "context.hpp"
#include <dht/messages/pubintro.hpp> #include <llarp/dht/messages/pubintro.hpp>
#include <dht/messages/gotintro.hpp> #include <llarp/dht/messages/gotintro.hpp>
#include <path/path_context.hpp> #include <llarp/path/path_context.hpp>
#include <routing/dht_message.hpp> #include <llarp/routing/dht_message.hpp>
#include <router/abstractrouter.hpp> #include <llarp/router/abstractrouter.hpp>
#include <utility> #include <utility>
namespace llarp namespace llarp

@ -1,10 +1,10 @@
#ifndef LLARP_DHT_PUBLISHSERVICEJOB #ifndef LLARP_DHT_PUBLISHSERVICEJOB
#define LLARP_DHT_PUBLISHSERVICEJOB #define LLARP_DHT_PUBLISHSERVICEJOB
#include <dht/tx.hpp> #include "tx.hpp"
#include <dht/txowner.hpp> #include "txowner.hpp"
#include <service/address.hpp> #include <llarp/service/address.hpp>
#include <service/intro_set.hpp> #include <llarp/service/intro_set.hpp>
#include <set> #include <set>

@ -1,11 +1,11 @@
#include <dht/recursiverouterlookup.hpp> #include "recursiverouterlookup.hpp"
#include <dht/context.hpp> #include "context.hpp"
#include <dht/messages/findrouter.hpp> #include <llarp/dht/messages/findrouter.hpp>
#include <dht/messages/gotrouter.hpp> #include <llarp/dht/messages/gotrouter.hpp>
#include <router/abstractrouter.hpp> #include <llarp/router/abstractrouter.hpp>
#include <router/i_rc_lookup_handler.hpp> #include <llarp/router/i_rc_lookup_handler.hpp>
#include <utility> #include <utility>

@ -1,10 +1,10 @@
#ifndef LLARP_DHT_RECURSIVEROUTERLOOKUP #ifndef LLARP_DHT_RECURSIVEROUTERLOOKUP
#define LLARP_DHT_RECURSIVEROUTERLOOKUP #define LLARP_DHT_RECURSIVEROUTERLOOKUP
#include <dht/tx.hpp> #include "tx.hpp"
#include <router_contact.hpp> #include <llarp/router_contact.hpp>
#include <router_id.hpp> #include <llarp/router_id.hpp>
namespace llarp namespace llarp
{ {

@ -1,8 +1,8 @@
#include <dht/serviceaddresslookup.hpp> #include "serviceaddresslookup.hpp"
#include <dht/context.hpp> #include "context.hpp"
#include <dht/messages/findintro.hpp> #include <llarp/dht/messages/findintro.hpp>
#include <dht/messages/gotintro.hpp> #include <llarp/dht/messages/gotintro.hpp>
#include <utility> #include <utility>
namespace llarp namespace llarp

@ -1,10 +1,10 @@
#ifndef LLARP_DHT_SERVICEADDRESSLOOKUP #ifndef LLARP_DHT_SERVICEADDRESSLOOKUP
#define LLARP_DHT_SERVICEADDRESSLOOKUP #define LLARP_DHT_SERVICEADDRESSLOOKUP
#include <dht/key.hpp> #include "key.hpp"
#include <dht/tx.hpp> #include "tx.hpp"
#include <service/address.hpp> #include <llarp/service/address.hpp>
#include <service/intro_set.hpp> #include <llarp/service/intro_set.hpp>
namespace llarp namespace llarp
{ {

@ -1,7 +1,7 @@
#include <dht/taglookup.hpp> #include "taglookup.hpp"
#include <dht/context.hpp> #include "context.hpp"
#include <dht/messages/gotintro.hpp> #include <llarp/dht/messages/gotintro.hpp>
namespace llarp namespace llarp
{ {

@ -1,9 +1,9 @@
#ifndef LLARP_DHT_TAGLOOKUP #ifndef LLARP_DHT_TAGLOOKUP
#define LLARP_DHT_TAGLOOKUP #define LLARP_DHT_TAGLOOKUP
#include <dht/tx.hpp> #include "tx.hpp"
#include <service/intro_set.hpp> #include <llarp/service/intro_set.hpp>
#include <service/tag.hpp> #include <llarp/service/tag.hpp>
namespace llarp namespace llarp
{ {

@ -1,10 +1,10 @@
#ifndef LLARP_DHT_TX #ifndef LLARP_DHT_TX
#define LLARP_DHT_TX #define LLARP_DHT_TX
#include <dht/key.hpp> #include "key.hpp"
#include <dht/txowner.hpp> #include "txowner.hpp"
#include <util/logging/logger.hpp> #include <llarp/util/logging/logger.hpp>
#include <util/status.hpp> #include <llarp/util/status.hpp>
#include <set> #include <set>
#include <vector> #include <vector>

@ -1,10 +1,10 @@
#ifndef LLARP_DHT_TXHOLDER #ifndef LLARP_DHT_TXHOLDER
#define LLARP_DHT_TXHOLDER #define LLARP_DHT_TXHOLDER
#include <dht/tx.hpp> #include "tx.hpp"
#include <dht/txowner.hpp> #include "txowner.hpp"
#include <util/time.hpp> #include <llarp/util/time.hpp>
#include <util/status.hpp> #include <llarp/util/status.hpp>
#include <memory> #include <memory>
#include <unordered_map> #include <unordered_map>

@ -1,8 +1,7 @@
#ifndef LLARP_DHT_TXOWNER_HPP #pragma once
#define LLARP_DHT_TXOWNER_HPP
#include <dht/key.hpp> #include "key.hpp"
#include <util/status.hpp> #include <llarp/util/status.hpp>
#include <cstdint> #include <cstdint>
namespace llarp namespace llarp
@ -59,5 +58,3 @@ namespace llarp
}; };
} // namespace dht } // namespace dht
} // namespace llarp } // namespace llarp
#endif

@ -1,5 +1,4 @@
#ifndef LLARP_DNS_DNS_HPP #pragma once
#define LLARP_DNS_DNS_HPP
#include <cstdint> #include <cstdint>
@ -29,5 +28,3 @@ namespace llarp
} // namespace dns } // namespace dns
} // namespace llarp } // namespace llarp
#endif

@ -1,12 +1,12 @@
#include <dns/message.hpp> #include "message.hpp"
#include <dns/dns.hpp> #include "dns.hpp"
#include <dns/srv_data.hpp> #include "srv_data.hpp"
#include <util/buffer.hpp> #include <llarp/util/buffer.hpp>
#include <util/endian.hpp> #include <llarp/util/endian.hpp>
#include <util/logging/logger.hpp> #include <llarp/util/logging/logger.hpp>
#include <util/printer.hpp> #include <llarp/util/printer.hpp>
#include <net/ip.hpp> #include <llarp/net/ip.hpp>
#include <array> #include <array>

@ -1,9 +1,8 @@
#ifndef LLARP_DNS_MESSAGE_HPP #pragma once
#define LLARP_DNS_MESSAGE_HPP
#include <dns/serialize.hpp> #include "serialize.hpp"
#include <dns/rr.hpp> #include "rr.hpp"
#include <dns/question.hpp> #include "question.hpp"
namespace llarp namespace llarp
{ {
@ -106,5 +105,3 @@ namespace llarp
} }
} // namespace dns } // namespace dns
} // namespace llarp } // namespace llarp
#endif

@ -1,8 +1,8 @@
#define __USE_MINGW_ANSI_STDIO 1 #define __USE_MINGW_ANSI_STDIO 1
#include <dns/name.hpp> #include "name.hpp"
#include <net/net.hpp> #include <llarp/net/net.hpp>
#include <net/ip.hpp> #include <llarp/net/ip.hpp>
#include <util/str.hpp> #include <llarp/util/str.hpp>
#include <algorithm> #include <algorithm>
#include <sstream> #include <sstream>

@ -1,8 +1,7 @@
#ifndef LLARP_DNS_NAME_HPP #pragma once
#define LLARP_DNS_NAME_HPP
#include <net/net_int.hpp> #include <llarp/net/net_int.hpp>
#include <util/buffer.hpp> #include <llarp/util/buffer.hpp>
#include <string> #include <string>
@ -28,5 +27,3 @@ namespace llarp
} // namespace dns } // namespace dns
} // namespace llarp } // namespace llarp
#endif

@ -1,4 +1 @@
#ifndef LLARP_DNS_QUERY_HPP #pragma once
#define LLARP_DNS_QUERY_HPP
#endif

@ -1,8 +1,8 @@
#include <dns/question.hpp> #include "question.hpp"
#include <util/logging/logger.hpp> #include <llarp/util/logging/logger.hpp>
#include <util/printer.hpp> #include <llarp/util/printer.hpp>
#include <util/str.hpp> #include <llarp/util/str.hpp>
namespace llarp namespace llarp
{ {

@ -1,9 +1,8 @@
#ifndef LLARP_DNS_QUESTION_HPP #pragma once
#define LLARP_DNS_QUESTION_HPP
#include <dns/serialize.hpp> #include "serialize.hpp"
#include <dns/name.hpp> #include "name.hpp"
#include <net/net_int.hpp> #include <llarp/net/net_int.hpp>
namespace llarp namespace llarp
{ {
@ -69,5 +68,3 @@ namespace llarp
} }
} // namespace dns } // namespace dns
} // namespace llarp } // namespace llarp
#endif

@ -1,8 +1,8 @@
#include <dns/rr.hpp> #include "rr.hpp"
#include <dns/dns.hpp> #include "dns.hpp"
#include <util/mem.hpp> #include <llarp/util/mem.hpp>
#include <util/logging/logger.hpp> #include <llarp/util/logging/logger.hpp>
#include <util/printer.hpp> #include <llarp/util/printer.hpp>
namespace llarp namespace llarp
{ {

@ -1,9 +1,8 @@
#ifndef LLARP_DNS_RR_HPP #pragma once
#define LLARP_DNS_RR_HPP
#include <dns/name.hpp> #include "name.hpp"
#include <dns/serialize.hpp> #include "serialize.hpp"
#include <net/net_int.hpp> #include <llarp/net/net_int.hpp>
#include <memory> #include <memory>
#include <vector> #include <vector>
@ -49,5 +48,3 @@ namespace llarp
} }
} // namespace dns } // namespace dns
} // namespace llarp } // namespace llarp
#endif

@ -1,5 +1,5 @@
#include <dns/serialize.hpp> #include "serialize.hpp"
#include <net/net_int.hpp> #include <llarp/net/net_int.hpp>
namespace llarp namespace llarp
{ {

@ -1,7 +1,6 @@
#ifndef LLARP_DNS_SERIALIZE_HPP #pragma once
#define LLARP_DNS_SERIALIZE_HPP
#include <util/buffer.hpp> #include <llarp/util/buffer.hpp>
#include <vector> #include <vector>
@ -31,5 +30,3 @@ namespace llarp
} // namespace dns } // namespace dns
} // namespace llarp } // namespace llarp
#endif

@ -1,9 +1,9 @@
#include <dns/server.hpp> #include "server.hpp"
#include <dns/dns.hpp> #include "dns.hpp"
#include <crypto/crypto.hpp> #include <llarp/crypto/crypto.hpp>
#include <array> #include <array>
#include <utility> #include <utility>
#include <ev/udp_handle.hpp> #include <llarp/ev/udp_handle.hpp>
namespace llarp::dns namespace llarp::dns
{ {

@ -1,10 +1,9 @@
#ifndef LLARP_DNS_SERVER_HPP #pragma once
#define LLARP_DNS_SERVER_HPP
#include <dns/message.hpp> #include "message.hpp"
#include <ev/ev.hpp> #include <llarp/ev/ev.hpp>
#include <net/net.hpp> #include <llarp/net/net.hpp>
#include <dns/unbound_resolver.hpp> #include "unbound_resolver.hpp"
#include <unordered_map> #include <unordered_map>
@ -87,5 +86,3 @@ namespace llarp
}; };
} // namespace dns } // namespace dns
} // namespace llarp } // namespace llarp
#endif

@ -1,6 +1,6 @@
#include <dns/srv_data.hpp> #include "srv_data.hpp"
#include <util/str.hpp> #include <llarp/util/str.hpp>
#include <util/logging/logger.hpp> #include <llarp/util/logging/logger.hpp>
#include <limits> #include <limits>

@ -1,7 +1,7 @@
#pragma once #pragma once
#include <dns/name.hpp> #include "name.hpp"
#include <dns/serialize.hpp> #include "serialize.hpp"
#include <tuple> #include <tuple>
#include <string_view> #include <string_view>

@ -1,5 +1,4 @@
#ifndef LLARP_DNS_STRING_HPP #pragma once
#define LLARP_DNS_STRING_HPP
#include <string> #include <string>
@ -21,5 +20,3 @@ namespace llarp
} // namespace dns } // namespace dns
} // namespace llarp } // namespace llarp
#endif

@ -1,7 +1,7 @@
#include <dns/unbound_resolver.hpp> #include "unbound_resolver.hpp"
#include <dns/server.hpp> #include "server.hpp"
#include <util/buffer.hpp> #include <llarp/util/buffer.hpp>
namespace llarp::dns namespace llarp::dns
{ {

@ -6,9 +6,9 @@
#include <memory> #include <memory>
#include <queue> #include <queue>
#include <ev/ev.hpp> #include <llarp/ev/ev.hpp>
#include <dns/message.hpp> #include "message.hpp"
#ifdef _WIN32 #ifdef _WIN32
#include <thread> #include <thread>

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save