mirror of https://github.com/oxen-io/lokinet
Move remaining include/llarp headers to llarp/
This commit is contained in:
parent
f667d4e81c
commit
85dde7b6b0
|
@ -1,13 +1,12 @@
|
|||
#include <unistd.h>
|
||||
#include <config.h>
|
||||
#include <dns_dotlokilookup.hpp>
|
||||
#include <dns_iptracker.hpp>
|
||||
#include <dnsd.hpp>
|
||||
#include <llarp.h>
|
||||
#include <llarp/config.h>
|
||||
#include <llarp/dns_iptracker.hpp>
|
||||
#include <llarp/dnsd.hpp>
|
||||
#include <llarp/dns_dotlokilookup.hpp>
|
||||
|
||||
#include <llarp/threading.hpp> // for multithreaded version (multiplatorm)
|
||||
#include <threading.hpp> // for multithreaded version (multiplatorm)
|
||||
|
||||
#include <signal.h> // Linux needs this for SIGINT
|
||||
#include <unistd.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#define uint UINT
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
#include <buffer.hpp>
|
||||
#include <crypto.hpp>
|
||||
#include <fs.hpp>
|
||||
#include <fstream>
|
||||
#include <llarp.h>
|
||||
#include <llarp/messages/dht.hpp>
|
||||
#include <llarp/net.hpp>
|
||||
#include <llarp/nodedb.hpp>
|
||||
#include <llarp/time.hpp>
|
||||
#include <logger.hpp>
|
||||
#include <messages/dht.hpp>
|
||||
#include <net.hpp>
|
||||
#include <nodedb.hpp>
|
||||
#include <router.hpp>
|
||||
#include <router_contact.hpp>
|
||||
#include <time.hpp>
|
||||
|
||||
#include <fstream>
|
||||
#include <getopt.h>
|
||||
#include <signal.h>
|
||||
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
#ifndef LLARP_H_
|
||||
#define LLARP_H_
|
||||
|
||||
#include <dht.h>
|
||||
#include <llarp/ev.h>
|
||||
#include <llarp/logic.hpp>
|
||||
#include <llarp/mem.h>
|
||||
#include <llarp/version.hpp>
|
||||
#include <ev.h>
|
||||
#include <logic.hpp>
|
||||
#include <mem.h>
|
||||
#include <version.hpp>
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include <handlers/tun.hpp> // for handlers
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
#ifndef LLARP_HPP
|
||||
#define LLARP_HPP
|
||||
|
||||
#include <iostream>
|
||||
#include <crypto.h>
|
||||
#include <llarp.h>
|
||||
#include <llarp/crypto.h>
|
||||
#include <llarp/threading.hpp>
|
||||
#include <threading.hpp>
|
||||
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
#ifndef LLARP_MESSAGES_HPP
|
||||
#define LLARP_MESSAGES_HPP
|
||||
|
||||
/**
|
||||
include shortcut for all link and routing messages
|
||||
*/
|
||||
|
||||
#include <llarp/messages/dht_immediate.hpp>
|
||||
#include <llarp/messages/link_intro.hpp>
|
||||
#include <llarp/messages/relay.hpp>
|
||||
#include <llarp/messages/relay_commit.hpp>
|
||||
#include <llarp/messages/discard.hpp>
|
||||
#include <llarp/messages/path_confirm.hpp>
|
||||
#include <llarp/messages/exit.hpp>
|
||||
#include <llarp/messages/transfer_traffic.hpp>
|
||||
|
||||
#endif
|
|
@ -1,6 +1,7 @@
|
|||
#ifndef LLARP_STRING_H
|
||||
#define LLARP_STRING_H
|
||||
#include <llarp/common.hpp>
|
||||
|
||||
#include <common.hpp>
|
||||
|
||||
#ifndef __FreeBSD__
|
||||
#if !(__APPLE__ && __MACH__)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
//#include <string.h>
|
||||
#include <jni.h>
|
||||
#include <llarp.h>
|
||||
#include <llarp/config.h>
|
||||
#include <config.h>
|
||||
#include <signal.h>
|
||||
#include <memory>
|
||||
#include <thread>
|
||||
|
@ -15,7 +15,7 @@ struct AndroidMain
|
|||
std::string configFile;
|
||||
|
||||
/// set configuration and ensure files
|
||||
bool
|
||||
bool
|
||||
Configure(const char * conf, const char * basedir)
|
||||
{
|
||||
configFile = conf;
|
||||
|
@ -84,7 +84,7 @@ struct AndroidMain
|
|||
return "";
|
||||
}
|
||||
|
||||
int GetIfRange() const
|
||||
int GetIfRange() const
|
||||
{
|
||||
if(m_impl)
|
||||
{
|
||||
|
@ -95,7 +95,7 @@ struct AndroidMain
|
|||
return -1;
|
||||
}
|
||||
|
||||
void
|
||||
void
|
||||
SetVPN_FD(int fd)
|
||||
{
|
||||
if(m_impl)
|
||||
|
@ -148,7 +148,7 @@ extern "C"
|
|||
{
|
||||
if(daemon->Start())
|
||||
return env->NewStringUTF("ok");
|
||||
else
|
||||
else
|
||||
return env->NewStringUTF("failed to start daemon");
|
||||
}
|
||||
else
|
||||
|
@ -163,7 +163,7 @@ extern "C"
|
|||
daemon->Stop();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_network_loki_lokinet_Lokinet_1JNI_setVPNFileDescriptor(JNIEnv*, jclass, jint fd)
|
||||
{
|
||||
|
@ -207,4 +207,4 @@ extern "C"
|
|||
daemon->Stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
#ifndef __ABYSS_CLIENT_HPP__
|
||||
#define __ABYSS_CLIENT_HPP__
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include <list>
|
||||
#include <deque>
|
||||
#include <unordered_map>
|
||||
#include <functional>
|
||||
#include <llarp/string_view.hpp>
|
||||
|
||||
#include <abyss/json.hpp>
|
||||
#include <llarp/ev.h>
|
||||
#include <ev.h>
|
||||
#include <string_view.hpp>
|
||||
|
||||
#include <deque>
|
||||
#include <functional>
|
||||
#include <list>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
|
||||
namespace abyss
|
||||
{
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
#ifndef __ABYSS_HTTP_HPP__
|
||||
#define __ABYSS_HTTP_HPP__
|
||||
#include <abyss/json.hpp>
|
||||
#include <string_view.hpp>
|
||||
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include <llarp/string_view.hpp>
|
||||
#include <abyss/json.hpp>
|
||||
|
||||
namespace abyss
|
||||
{
|
||||
|
|
|
@ -1,14 +1,15 @@
|
|||
#ifndef __ABYSS_SERVER_HPP__
|
||||
#define __ABYSS_SERVER_HPP__
|
||||
|
||||
#include <llarp/ev.h>
|
||||
#include <llarp/logic.hpp>
|
||||
#include <llarp/string_view.hpp>
|
||||
#include <llarp/time.hpp>
|
||||
#include <abyss/json.hpp>
|
||||
#include <ev.h>
|
||||
#include <logic.hpp>
|
||||
#include <string_view.hpp>
|
||||
#include <time.hpp>
|
||||
|
||||
#include <list>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <abyss/json.hpp>
|
||||
#include <unordered_map>
|
||||
|
||||
namespace abyss
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#include <libabyss.hpp>
|
||||
#include <llarp/net.hpp>
|
||||
#include <net.hpp>
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <sys/signal.h>
|
||||
#endif
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
#include <llarp/string_view.hpp>
|
||||
#include <abyss/json.hpp>
|
||||
#include <vector>
|
||||
#include <cstring>
|
||||
#include <rapidjson/stringbuffer.h>
|
||||
#include <rapidjson/writer.h>
|
||||
#include <string_view.hpp>
|
||||
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace abyss
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include <abyss/server.hpp>
|
||||
#include <buffer.hpp>
|
||||
#include <logger.hpp>
|
||||
#include <llarp/time.hpp>
|
||||
#include <time.hpp>
|
||||
|
||||
#include <algorithm>
|
||||
#include <sstream>
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
#ifndef _WIN32
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
#include <llarp/bencode.h>
|
||||
#include <llarp/mem.h>
|
||||
#include <llarp/string.h>
|
||||
#include <llarp/net.hpp>
|
||||
#include <bencode.h>
|
||||
#include <mem.h>
|
||||
#include <string.h>
|
||||
#include <net.hpp>
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
#ifndef LLARP_AI_HPP
|
||||
#define LLARP_AI_HPP
|
||||
|
||||
#include <bencode.hpp>
|
||||
#include <crypto.h>
|
||||
#include <crypto.hpp>
|
||||
#include <llarp/bencode.hpp>
|
||||
#include <llarp/crypto.h>
|
||||
#include <llarp/mem.h>
|
||||
#include <llarp/net.h>
|
||||
#include <mem.h>
|
||||
#include <net.h>
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#ifndef LLARP_ALIGNED_HPP
|
||||
#define LLARP_ALIGNED_HPP
|
||||
|
||||
#include <bencode.h>
|
||||
#include <crypto.h>
|
||||
#include <encode.hpp>
|
||||
#include <llarp/bencode.h>
|
||||
#include <llarp/crypto.h>
|
||||
#include <logger.hpp>
|
||||
|
||||
#include <iomanip>
|
|
@ -1,4 +1,4 @@
|
|||
#include <llarp/bencode.h>
|
||||
#include <bencode.h>
|
||||
#include <logger.hpp>
|
||||
|
||||
bool
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
#ifndef LLARP_BENCODE_H
|
||||
#define LLARP_BENCODE_H
|
||||
#include <llarp/buffer.h>
|
||||
#include <llarp/common.hpp>
|
||||
#include <llarp/proto.hpp>
|
||||
|
||||
#include <buffer.h>
|
||||
#include <common.hpp>
|
||||
#include <proto.hpp>
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
#define LLARP_BENCODE_HPP
|
||||
|
||||
#include <buffer.hpp>
|
||||
#include <llarp/bencode.h>
|
||||
#include <bencode.h>
|
||||
#include <logger.hpp>
|
||||
#include <mem.hpp>
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
#include <llarp/buffer.h>
|
||||
#include <llarp/endian.hpp>
|
||||
#include <buffer.h>
|
||||
#include <endian.hpp>
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
#ifndef LLARP_BUFFER_H_
|
||||
#define LLARP_BUFFER_H_
|
||||
#include <llarp/common.hpp>
|
||||
#include <llarp/mem.h>
|
||||
|
||||
#include <common.hpp>
|
||||
#include <mem.h>
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef LLARP_BUFFER_HPP
|
||||
#define LLARP_BUFFER_HPP
|
||||
|
||||
#include <llarp/buffer.h>
|
||||
#include <buffer.h>
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
#ifndef LLARP_CODEL_QUEUE_HPP
|
||||
#define LLARP_CODEL_QUEUE_HPP
|
||||
#include <llarp/threading.hpp>
|
||||
#include <llarp/time.hpp>
|
||||
|
||||
#include <logger.hpp>
|
||||
#include <mem.hpp>
|
||||
#include <threading.hpp>
|
||||
#include <time.hpp>
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
|
@ -1,11 +1,11 @@
|
|||
#include "config.hpp"
|
||||
#include <llarp/config.h>
|
||||
#include <llarp/defaults.hpp>
|
||||
#include <llarp/net.hpp>
|
||||
#include "fs.hpp"
|
||||
#include "ini.hpp"
|
||||
#include "logger.hpp"
|
||||
#include "mem.hpp"
|
||||
#include <config.h>
|
||||
#include <config.hpp>
|
||||
#include <defaults.hpp>
|
||||
#include <fs.hpp>
|
||||
#include <ini.hpp>
|
||||
#include <logger.hpp>
|
||||
#include <mem.hpp>
|
||||
#include <net.hpp>
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#ifndef LIBLLARP_CONFIG_HPP
|
||||
#define LIBLLARP_CONFIG_HPP
|
||||
#include <config.h>
|
||||
|
||||
#include <list>
|
||||
#include <string>
|
||||
|
||||
#include <llarp/config.h>
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
struct Config
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
#include <dns_dotlokilookup.hpp>
|
||||
#include <dnsd.hpp>
|
||||
#include <ev.hpp>
|
||||
#include <getopt.h>
|
||||
#include <llarp.h>
|
||||
#include <llarp/logger.h>
|
||||
#include <signal.h>
|
||||
#include <sys/param.h> // for MIN
|
||||
#include <llarp.hpp>
|
||||
#include <logger.h>
|
||||
#include <router.hpp>
|
||||
#include <signal.h>
|
||||
|
||||
#include <llarp/dnsd.hpp>
|
||||
#include <llarp/dns_dotlokilookup.hpp>
|
||||
#include <sys/param.h> // for MIN
|
||||
|
||||
#if(__FreeBSD__) || (__OpenBSD__) || (__NetBSD__)
|
||||
#include <pthread_np.h>
|
||||
#endif
|
||||
|
||||
#include "ev.hpp"
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
#ifndef LLARP_CRYPTO_H_
|
||||
#define LLARP_CRYPTO_H_
|
||||
#include <llarp/buffer.h>
|
||||
#include <llarp/common.hpp>
|
||||
#include <buffer.h>
|
||||
#include <common.hpp>
|
||||
|
||||
#include <functional>
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
|
@ -1,11 +1,11 @@
|
|||
#ifndef LLARP_CRYPTO_HPP
|
||||
#define LLARP_CRYPTO_HPP
|
||||
|
||||
#include <llarp/crypto.h>
|
||||
#include <llarp/mem.h>
|
||||
#include <llarp/threadpool.h>
|
||||
#include <llarp/aligned.hpp>
|
||||
#include <llarp/router_id.hpp>
|
||||
#include <aligned.hpp>
|
||||
#include <crypto.h>
|
||||
#include <mem.h>
|
||||
#include <router_id.hpp>
|
||||
#include <threadpool.h>
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <assert.h>
|
||||
#include <llarp/crypto.h>
|
||||
#include <crypto.h>
|
||||
#include <sodium/crypto_generichash.h>
|
||||
#include <sodium/crypto_sign.h>
|
||||
#include <sodium/crypto_scalarmult.h>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#define LLARP_DHT_H_
|
||||
|
||||
#include <crypto.hpp>
|
||||
#include <llarp/buffer.h>
|
||||
#include <buffer.h>
|
||||
#include <router_contact.hpp>
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
#include <dht/context.hpp>
|
||||
#include <dht/messages/gotrouter.hpp>
|
||||
#include <llarp/messages/dht.hpp>
|
||||
#include <llarp/messages/dht_immediate.hpp>
|
||||
#include "router.hpp"
|
||||
#include <messages/dht.hpp>
|
||||
#include <messages/dht_immediate.hpp>
|
||||
#include <router.hpp>
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace llarp
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
#include <dht/message.hpp>
|
||||
#include <dht/messages/findintro.hpp>
|
||||
#include <dht/node.hpp>
|
||||
#include <llarp/time.hpp>
|
||||
#include <service/IntroSet.hpp>
|
||||
#include <time.hpp>
|
||||
|
||||
#include <set>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include <llarp/messages/dht_immediate.hpp>
|
||||
#include <messages/dht_immediate.hpp>
|
||||
|
||||
#include <router.hpp>
|
||||
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
#include <dht/context.hpp>
|
||||
#include <dht/messages/findrouter.hpp>
|
||||
#include <dht/messages/gotrouter.hpp>
|
||||
#include <llarp/messages/dht.hpp>
|
||||
|
||||
#include <messages/dht.hpp>
|
||||
#include <router.hpp>
|
||||
|
||||
namespace llarp
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#include <dht/context.hpp>
|
||||
#include <dht/messages/gotintro.hpp>
|
||||
#include <llarp/messages/dht.hpp>
|
||||
|
||||
#include <messages/dht.hpp>
|
||||
#include <router.hpp>
|
||||
|
||||
namespace llarp
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#ifndef LLARP_DHT_KEY_HPP
|
||||
#define LLARP_DHT_KEY_HPP
|
||||
#include <llarp/aligned.hpp>
|
||||
|
||||
#include <aligned.hpp>
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
|
@ -52,4 +53,4 @@ namespace llarp
|
|||
} // namespace dht
|
||||
} // namespace llarp
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
#ifndef LLARP_DHT_MESSAGE_HPP
|
||||
#define LLARP_DHT_MESSAGE_HPP
|
||||
|
||||
#include <bencode.hpp>
|
||||
#include <dht.h>
|
||||
#include <dht/key.hpp>
|
||||
#include <llarp/bencode.hpp>
|
||||
#include <llarp/path_types.hpp>
|
||||
#include <path_types.hpp>
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace llarp
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
#include <dht/context.hpp>
|
||||
#include <dht/messages/pubintro.hpp>
|
||||
#include <llarp/messages/dht.hpp>
|
||||
#include <llarp/messages/dht_immediate.hpp>
|
||||
|
||||
#include <messages/dht.hpp>
|
||||
#include <messages/dht_immediate.hpp>
|
||||
#include <router.hpp>
|
||||
|
||||
namespace llarp
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <llarp/endian.hpp>
|
||||
#include <llarp/dnsd.hpp> // for llarp_handle_dnsd_recvfrom, dnsc
|
||||
#include <dnsd.hpp> // for llarp_handle_dnsd_recvfrom, dnsc
|
||||
#include <endian.hpp>
|
||||
#include <logger.hpp>
|
||||
|
||||
void
|
||||
|
|
|
@ -3,17 +3,18 @@
|
|||
|
||||
#include <dns.h>
|
||||
#include <sys/types.h> // for uint & ssize_t
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
|
||||
#include <llarp/net.hpp> // for llarp::Addr , llarp::huint32_t
|
||||
#include <net.hpp> // for llarp::Addr , llarp::huint32_t
|
||||
#include <dns_rectypes.hpp>
|
||||
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#define LLARP_DNS_RECTYPE_A 1
|
||||
#define LLARP_DNS_RECTYPE_NS 2
|
||||
#define LLARP_DNS_RECTYPE_CNAME 5
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include <buffer.hpp>
|
||||
#include <dns/message.hpp>
|
||||
#include <llarp/endian.hpp>
|
||||
#include <endian.hpp>
|
||||
#include <logger.hpp>
|
||||
|
||||
namespace llarp
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <dns/name.hpp>
|
||||
#include <llarp/net.hpp>
|
||||
#include <net.hpp>
|
||||
|
||||
#include <algorithm>
|
||||
#include <sstream>
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
#ifndef LLARP_DNS_NAME_HPP
|
||||
#define LLARP_DNS_NAME_HPP
|
||||
|
||||
#include <buffer.h>
|
||||
#include <net_int.hpp>
|
||||
|
||||
#include <string>
|
||||
#include <llarp/buffer.h>
|
||||
#include <llarp/net_int.hpp>
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
#ifndef LLARP_DNS_QUESTION_HPP
|
||||
#define LLARP_DNS_QUESTION_HPP
|
||||
|
||||
#include <dns/serialize.hpp>
|
||||
#include <dns/name.hpp>
|
||||
#include <llarp/net_int.hpp>
|
||||
#include <net_int.hpp>
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#ifndef LLARP_DNS_RR_HPP
|
||||
#define LLARP_DNS_RR_HPP
|
||||
|
||||
#include <dns/name.hpp>
|
||||
#include <dns/serialize.hpp>
|
||||
|
||||
#include <llarp/net_int.hpp>
|
||||
#include <net_int.hpp>
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <dns/serialize.hpp>
|
||||
#include <llarp/net_int.hpp>
|
||||
#include <net_int.hpp>
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#ifndef LLARP_DNS_SERIALIZE_HPP
|
||||
#define LLARP_DNS_SERIALIZE_HPP
|
||||
#include <llarp/buffer.h>
|
||||
#include <buffer.h>
|
||||
#include <vector>
|
||||
|
||||
namespace llarp
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#ifndef LLARP_DNS_SERVER_HPP
|
||||
#define LLARP_DNS_SERVER_HPP
|
||||
#include <dns/message.hpp>
|
||||
|
||||
#include <llarp/ev.h>
|
||||
#include <llarp/net.hpp>
|
||||
#include <llarp/string_view.hpp>
|
||||
#include <dns/message.hpp>
|
||||
#include <ev.h>
|
||||
#include <net.hpp>
|
||||
#include <string_view.hpp>
|
||||
|
||||
#include <unordered_map>
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include <dns_dotlokilookup.hpp>
|
||||
#include <handlers/tun.hpp>
|
||||
#include <llarp/dns_dotlokilookup.hpp>
|
||||
#include <llarp/logic.hpp>
|
||||
#include <logic.hpp>
|
||||
#include <service/context.hpp>
|
||||
|
||||
std::string const default_chars =
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef LIBLLARP_DNS_DOTLOKILOOKUP_HPP
|
||||
#define LIBLLARP_DNS_DOTLOKILOOKUP_HPP
|
||||
|
||||
#include <llarp/dnsd.hpp>
|
||||
#include <dnsd.hpp>
|
||||
#include <service/address.hpp>
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#include <llarp/dns_iptracker.hpp>
|
||||
#include <dns_iptracker.hpp>
|
||||
|
||||
dns_iptracker g_dns_iptracker;
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#ifndef LIBLLARP_DNSIPTRACKER_HPP
|
||||
#define LIBLLARP_DNSIPTRACKER_HPP
|
||||
|
||||
#include <llarp/dns_dotlokilookup.hpp>
|
||||
#include <llarp/net.hpp>
|
||||
#include <dns_dotlokilookup.hpp>
|
||||
#include <net.hpp>
|
||||
#include <service/address.hpp>
|
||||
|
||||
#include <map>
|
|
@ -1,9 +1,9 @@
|
|||
#ifndef LIBLLARP_DNS_REC_TYPES_HPP
|
||||
#define LIBLLARP_DNS_REC_TYPES_HPP
|
||||
|
||||
#include <buffer.h> // for byte_t
|
||||
#include <net.hpp> // for llarp::Addr , llarp::huint32_t
|
||||
#include <vector>
|
||||
#include <llarp/buffer.h> // for byte_t
|
||||
#include <llarp/net.hpp> // for llarp::Addr , llarp::huint32_t
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
#include <dnsc.hpp>
|
||||
#include <logger.hpp>
|
||||
#include <net.hpp> // for llarp::Addr
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <arpa/inet.h>
|
||||
|
@ -13,8 +15,6 @@
|
|||
#include <unistd.h> /* close */
|
||||
|
||||
#include <algorithm> // for std::find_if
|
||||
#include <llarp/net.hpp> // for llarp::Addr
|
||||
#include <logger.hpp>
|
||||
#include <stdio.h> // sprintf
|
||||
|
||||
#define MIN(X, Y) (((X) < (Y)) ? (X) : (Y))
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef LIBLLARP_DNSC_HPP
|
||||
#define LIBLLARP_DNSC_HPP
|
||||
|
||||
#include <llarp/ev.h> // for sockaadr
|
||||
#include <ev.h> // for sockaadr
|
||||
#include <dns.hpp> // get protocol structs
|
||||
|
||||
// internal, non-public functions
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <llarp/dnsd.hpp>
|
||||
#include <llarp/net.hpp>
|
||||
#include <dnsd.hpp>
|
||||
#include <net.hpp>
|
||||
|
||||
extern dns_tracker dns_udp_tracker;
|
||||
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
#ifndef LIBLLARP_DNSD_HPP
|
||||
#define LIBLLARP_DNSD_HPP
|
||||
|
||||
#include <llarp/ev.h> // for sockaadr
|
||||
#include <string>
|
||||
#include <ev.h> // for sockaadr
|
||||
#include <dns.hpp> // question and dnsc
|
||||
#include <dnsc.hpp>
|
||||
|
||||
#include <string>
|
||||
|
||||
//
|
||||
// Input structures/functions:
|
||||
//
|
|
@ -1 +1 @@
|
|||
#include <llarp/dtls.hpp>
|
||||
#include <dtls.hpp>
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
#ifndef LLARP_ENCCRYPTED_HPP
|
||||
#define LLARP_ENCCRYPTED_HPP
|
||||
|
||||
#include <llarp/bencode.h>
|
||||
#include <llarp/buffer.h>
|
||||
#include <llarp/aligned.hpp>
|
||||
#include <aligned.hpp>
|
||||
#include <bencode.h>
|
||||
#include <buffer.h>
|
||||
|
||||
#include <vector>
|
||||
#include <stdexcept>
|
||||
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef LLARP_ENCRYPTED_ACK_HPP
|
||||
#define LLARP_ENCRYPTED_ACK_HPP
|
||||
#include <llarp/encrypted.hpp>
|
||||
|
||||
#include <encrypted.hpp>
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
struct EncryptedAck : public Encrypted
|
|
@ -1,7 +1,7 @@
|
|||
#include <crypto.hpp>
|
||||
#include <llarp/encrypted_frame.hpp>
|
||||
#include "logger.hpp"
|
||||
#include "mem.hpp"
|
||||
#include <encrypted_frame.hpp>
|
||||
#include <logger.hpp>
|
||||
#include <mem.hpp>
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
#ifndef LLARP_ENCRYPTED_FRAME_HPP
|
||||
#define LLARP_ENCRYPTED_FRAME_HPP
|
||||
|
||||
#include <llarp/crypto.h>
|
||||
#include <llarp/mem.h>
|
||||
#include <llarp/threadpool.h>
|
||||
#include <llarp/encrypted.hpp>
|
||||
#include <crypto.h>
|
||||
#include <encrypted.hpp>
|
||||
#include <mem.h>
|
||||
#include <threadpool.h>
|
||||
|
||||
namespace llarp
|
||||
{
|
|
@ -1,10 +1,10 @@
|
|||
#include <llarp/ev.h>
|
||||
#include <llarp/logic.hpp>
|
||||
#include <llarp/string_view.hpp>
|
||||
#include <ev.h>
|
||||
#include <logic.hpp>
|
||||
#include <mem.hpp>
|
||||
#include <string_view.hpp>
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include "mem.hpp"
|
||||
|
||||
#define EV_TICK_INTERVAL 100
|
||||
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
#ifndef LLARP_EV_H
|
||||
#define LLARP_EV_H
|
||||
|
||||
#include <buffer.h>
|
||||
#include <time.hpp>
|
||||
#include <tuntap.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
|
@ -11,12 +16,10 @@
|
|||
#include <netinet/in.h>
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <tuntap.h>
|
||||
#include <llarp/time.hpp>
|
||||
#include <llarp/buffer.h>
|
||||
|
||||
/**
|
||||
* ev.h
|
17
llarp/ev.hpp
17
llarp/ev.hpp
|
@ -1,17 +1,20 @@
|
|||
#ifndef LLARP_EV_HPP
|
||||
#define LLARP_EV_HPP
|
||||
#include <llarp/ev.h>
|
||||
#include <llarp/threading.hpp>
|
||||
|
||||
#include <ev.h>
|
||||
#include <codel.hpp>
|
||||
#include <threading.hpp>
|
||||
|
||||
// writev
|
||||
#ifndef _WIN32
|
||||
#include <sys/uio.h>
|
||||
#endif
|
||||
#include <unistd.h>
|
||||
#include <llarp/buffer.h>
|
||||
#include <llarp/codel.hpp>
|
||||
#include <list>
|
||||
#include <deque>
|
||||
|
||||
#include <algorithm>
|
||||
#include <buffer.h>
|
||||
#include <deque>
|
||||
#include <list>
|
||||
#include <unistd.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <win32_up.h>
|
||||
|
|
|
@ -1,19 +1,19 @@
|
|||
#ifndef EV_EPOLL_HPP
|
||||
#define EV_EPOLL_HPP
|
||||
#include <fcntl.h>
|
||||
#include <llarp/buffer.h>
|
||||
#include <llarp/net.h>
|
||||
#include <buffer.h>
|
||||
#include <net.h>
|
||||
#include <signal.h>
|
||||
#include <sys/epoll.h>
|
||||
#include <sys/un.h>
|
||||
#include <tuntap.h>
|
||||
#include <unistd.h>
|
||||
#include <cstdio>
|
||||
#include "buffer.hpp"
|
||||
#include "ev.hpp"
|
||||
#include "llarp/net.hpp"
|
||||
#include "logger.hpp"
|
||||
#include "mem.hpp"
|
||||
#include <buffer.hpp>
|
||||
#include <ev.hpp>
|
||||
#include <net.hpp>
|
||||
#include <logger.hpp>
|
||||
#include <mem.hpp>
|
||||
#include <cassert>
|
||||
|
||||
#ifdef ANDROID
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
#ifndef EV_KQUEUE_HPP
|
||||
#define EV_KQUEUE_HPP
|
||||
#include <llarp/buffer.h>
|
||||
#include <llarp/net.h>
|
||||
|
||||
#include <buffer.h>
|
||||
#include <ev.hpp>
|
||||
#include <logger.hpp>
|
||||
#include <net.h>
|
||||
#include <net.hpp>
|
||||
|
||||
#include <sys/un.h>
|
||||
|
||||
|
@ -14,9 +18,6 @@
|
|||
// original upstream
|
||||
#include <unistd.h>
|
||||
#include <cstdio>
|
||||
#include <llarp/net.hpp>
|
||||
#include "ev.hpp"
|
||||
#include "logger.hpp"
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
#ifndef EV_WIN32_HPP
|
||||
#define EV_WIN32_HPP
|
||||
#include <llarp/buffer.h>
|
||||
#include <llarp/net.h>
|
||||
|
||||
#include <buffer.h>
|
||||
#include <ev.hpp>
|
||||
#include <logger.hpp>
|
||||
#include <net.h>
|
||||
#include <net.hpp>
|
||||
#include <windows.h>
|
||||
|
||||
#include <cstdio>
|
||||
#include <llarp/net.hpp>
|
||||
#include "ev.hpp"
|
||||
#include "logger.hpp"
|
||||
|
||||
#ifdef sizeof
|
||||
#undef sizeof
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include <llarp/messages/exit.hpp>
|
||||
#include <messages/exit.hpp>
|
||||
#include <routing/handler.hpp>
|
||||
|
||||
namespace llarp
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
#ifndef LLARP_EXIT_ENDPOINT_HPP
|
||||
#define LLARP_EXIT_ENDPOINT_HPP
|
||||
#include <llarp/time.hpp>
|
||||
|
||||
#include <crypto.hpp>
|
||||
#include <llarp/path.hpp>
|
||||
#include <llarp/ip.hpp>
|
||||
#include <ip.hpp>
|
||||
#include <path.hpp>
|
||||
#include <time.hpp>
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include <llarp/messages/exit.hpp>
|
||||
#include <messages/exit.hpp>
|
||||
#include <routing/handler.hpp>
|
||||
|
||||
namespace llarp
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <link_layer.hpp>
|
||||
#include <llarp/messages/exit.hpp>
|
||||
#include <messages/exit.hpp>
|
||||
#include <routing/handler.hpp>
|
||||
|
||||
namespace llarp
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
#ifndef LLARP_EXIT_POLICY_HPP
|
||||
#define LLARP_EXIT_POLICY_HPP
|
||||
#include <llarp/bencode.hpp>
|
||||
|
||||
#include <bencode.hpp>
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
|
@ -23,4 +24,4 @@ namespace llarp
|
|||
} // namespace exit
|
||||
} // namespace llarp
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include <llarp/messages/exit.hpp>
|
||||
#include <messages/exit.hpp>
|
||||
#include <routing/handler.hpp>
|
||||
|
||||
namespace llarp
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <exit/session.hpp>
|
||||
#include <llarp/path.hpp>
|
||||
#include <path.hpp>
|
||||
#include <router.hpp>
|
||||
|
||||
namespace llarp
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
#ifndef LLARP_EXIT_SESSION_HPP
|
||||
#define LLARP_EXIT_SESSION_HPP
|
||||
#include <llarp/pathbuilder.hpp>
|
||||
#include <llarp/ip.hpp>
|
||||
#include <llarp/messages/transfer_traffic.hpp>
|
||||
#include <llarp/messages/exit.hpp>
|
||||
|
||||
#include <ip.hpp>
|
||||
#include <messages/exit.hpp>
|
||||
#include <messages/transfer_traffic.hpp>
|
||||
#include <pathbuilder.hpp>
|
||||
|
||||
#include <deque>
|
||||
|
||||
namespace llarp
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <llarp/endian.hpp>
|
||||
#include <llarp/messages/transfer_traffic.hpp>
|
||||
#include <endian.hpp>
|
||||
#include <messages/transfer_traffic.hpp>
|
||||
#include <routing/handler.hpp>
|
||||
|
||||
namespace llarp
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include <llarp/messages/exit.hpp>
|
||||
#include <messages/exit.hpp>
|
||||
#include <routing/handler.hpp>
|
||||
|
||||
namespace llarp
|
||||
|
|
|
@ -2,10 +2,11 @@
|
|||
#include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
#include <llarp/bencode.h>
|
||||
#include <llarp/exit_info.hpp>
|
||||
#include <llarp/mem.h>
|
||||
#include <llarp/string.h>
|
||||
#include <bencode.h>
|
||||
#include <exit_info.hpp>
|
||||
#include <mem.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <list>
|
||||
|
||||
namespace llarp
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
#ifndef LLARP_XI_H
|
||||
#define LLARP_XI_H
|
||||
#include <llarp/buffer.h>
|
||||
#include <llarp/crypto.h>
|
||||
#include <llarp/net.h>
|
||||
|
||||
#include <buffer.h>
|
||||
#include <crypto.h>
|
||||
#include <net.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include <bits.hpp>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <llarp/bits.hpp>
|
||||
#endif
|
||||
|
||||
/**
|
|
@ -1,10 +1,12 @@
|
|||
#ifndef LLARP_XI_HPP
|
||||
#define LLARP_XI_HPP
|
||||
|
||||
#include <bencode.hpp>
|
||||
#include <bits.hpp>
|
||||
#include <crypto.hpp>
|
||||
#include <llarp/bencode.hpp>
|
||||
#include <llarp/net.hpp>
|
||||
#include <net.hpp>
|
||||
|
||||
#include <iostream>
|
||||
#include <llarp/bits.hpp>
|
||||
|
||||
/**
|
||||
* exit_info.h
|
|
@ -2,8 +2,9 @@
|
|||
#include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
#include <llarp/bencode.h>
|
||||
#include <llarp/exit_route.h>
|
||||
#include <bencode.h>
|
||||
#include <exit_route.h>
|
||||
|
||||
#include <llarp/string.h>
|
||||
|
||||
bool
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
#ifndef LLARP_XR_H
|
||||
#define LLARP_XR_H
|
||||
#include <llarp/buffer.h>
|
||||
#include <llarp/net.h>
|
||||
|
||||
#include <buffer.h>
|
||||
#include <net.h>
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
struct llarp_xr
|
|
@ -1,5 +1,5 @@
|
|||
#include <handlers/exit.hpp>
|
||||
#include <llarp/net.hpp>
|
||||
#include <net.hpp>
|
||||
#include <router.hpp>
|
||||
#include <str.hpp>
|
||||
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
#ifndef LLARP_HANDLERS_TUN_HPP
|
||||
#define LLARP_HANDLERS_TUN_HPP
|
||||
|
||||
#include <codel.hpp>
|
||||
#include <dns/server.hpp>
|
||||
#include <llarp/codel.hpp>
|
||||
#include <llarp/ev.h>
|
||||
#include <llarp/ip.hpp>
|
||||
#include <llarp/net.hpp>
|
||||
#include <llarp/threading.hpp>
|
||||
#include <ev.h>
|
||||
#include <ip.hpp>
|
||||
#include <net.hpp>
|
||||
#include <service/endpoint.hpp>
|
||||
#include <threading.hpp>
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
#include <llarp/ip.hpp>
|
||||
#include <buffer.hpp>
|
||||
#include <llarp/endian.hpp>
|
||||
#include "mem.hpp"
|
||||
#include <endian.hpp>
|
||||
#include <ip.hpp>
|
||||
#include <mem.hpp>
|
||||
|
||||
#ifndef _WIN32
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
#ifndef LLARP_IP_HPP
|
||||
#define LLARP_IP_HPP
|
||||
#include <llarp/buffer.h>
|
||||
#include <llarp/time.hpp>
|
||||
#include <llarp/net.hpp>
|
||||
#include <llarp/ev.h>
|
||||
|
||||
#include <buffer.h>
|
||||
#include <ev.h>
|
||||
#include <net.hpp>
|
||||
#include <time.hpp>
|
||||
|
||||
#ifndef _WIN32
|
||||
// unix, linux
|
|
@ -1,6 +1,8 @@
|
|||
#ifndef LLARP_IWP_HPP
|
||||
#define LLARP_IWP_HPP
|
||||
#include <llarp/crypto.h>
|
||||
|
||||
#include <crypto.h>
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace llarp {
|
|
@ -1,6 +1,6 @@
|
|||
#include <link/curvecp.hpp>
|
||||
#include <link/server.hpp>
|
||||
#include <llarp/messages/link_intro.hpp>
|
||||
#include <messages/link_intro.hpp>
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#ifndef LLARP_LINK_ENCODER_HPP
|
||||
#define LLARP_LINK_ENCODER_HPP
|
||||
|
||||
#include <llarp/bencode.h>
|
||||
#include <llarp/buffer.h>
|
||||
#include <bencode.h>
|
||||
#include <buffer.h>
|
||||
#include <router_contact.hpp>
|
||||
|
||||
namespace llarp
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
#ifndef LLARP_LINK_SERVER_HPP
|
||||
#define LLARP_LINK_SERVER_HPP
|
||||
|
||||
#include <crypto.hpp>
|
||||
#include <ev.h>
|
||||
#include <link/session.hpp>
|
||||
#include <llarp/ev.h>
|
||||
#include <llarp/logic.hpp>
|
||||
#include <llarp/net.hpp>
|
||||
#include <llarp/threading.hpp>
|
||||
#include <logic.hpp>
|
||||
#include <net.hpp>
|
||||
#include <router_contact.hpp>
|
||||
#include <threading.hpp>
|
||||
|
||||
#include <list>
|
||||
#include <unordered_map>
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
#define LLARP_LINK_SESSION_HPP
|
||||
|
||||
#include <crypto.hpp>
|
||||
#include <llarp/net.hpp>
|
||||
#include <llarp/types.hpp>
|
||||
#include <net.hpp>
|
||||
#include <router_contact.hpp>
|
||||
#include <types.hpp>
|
||||
|
||||
#include <functional>
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue