Move remaining include/llarp headers to llarp/

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

@ -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.h>
#include <llarp/config.h> #include <threading.hpp> // for multithreaded version (multiplatorm)
#include <llarp/dns_iptracker.hpp>
#include <llarp/dnsd.hpp>
#include <llarp/dns_dotlokilookup.hpp>
#include <llarp/threading.hpp> // for multithreaded version (multiplatorm)
#include <signal.h> // Linux needs this for SIGINT #include <signal.h> // Linux needs this for SIGINT
#include <unistd.h>
#ifdef _WIN32 #ifdef _WIN32
#define uint UINT #define uint UINT

@ -1,16 +1,16 @@
#include <buffer.hpp> #include <buffer.hpp>
#include <crypto.hpp> #include <crypto.hpp>
#include <fs.hpp> #include <fs.hpp>
#include <fstream>
#include <llarp.h> #include <llarp.h>
#include <llarp/messages/dht.hpp>
#include <llarp/net.hpp>
#include <llarp/nodedb.hpp>
#include <llarp/time.hpp>
#include <logger.hpp> #include <logger.hpp>
#include <messages/dht.hpp>
#include <net.hpp>
#include <nodedb.hpp>
#include <router.hpp> #include <router.hpp>
#include <router_contact.hpp> #include <router_contact.hpp>
#include <time.hpp>
#include <fstream>
#include <getopt.h> #include <getopt.h>
#include <signal.h> #include <signal.h>

@ -1,10 +1,11 @@
#ifndef LLARP_H_ #ifndef LLARP_H_
#define LLARP_H_ #define LLARP_H_
#include <dht.h> #include <dht.h>
#include <llarp/ev.h> #include <ev.h>
#include <llarp/logic.hpp> #include <logic.hpp>
#include <llarp/mem.h> #include <mem.h>
#include <llarp/version.hpp> #include <version.hpp>
#ifdef __cplusplus #ifdef __cplusplus
#include <handlers/tun.hpp> // for handlers #include <handlers/tun.hpp> // for handlers

@ -1,10 +1,11 @@
#ifndef LLARP_HPP #ifndef LLARP_HPP
#define LLARP_HPP #define LLARP_HPP
#include <iostream> #include <crypto.h>
#include <llarp.h> #include <llarp.h>
#include <llarp/crypto.h> #include <threading.hpp>
#include <llarp/threading.hpp>
#include <iostream>
#include <memory> #include <memory>
#include <string> #include <string>
#include <vector> #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 #ifndef LLARP_STRING_H
#define LLARP_STRING_H #define LLARP_STRING_H
#include <llarp/common.hpp>
#include <common.hpp>
#ifndef __FreeBSD__ #ifndef __FreeBSD__
#if !(__APPLE__ && __MACH__) #if !(__APPLE__ && __MACH__)

@ -2,7 +2,7 @@
//#include <string.h> //#include <string.h>
#include <jni.h> #include <jni.h>
#include <llarp.h> #include <llarp.h>
#include <llarp/config.h> #include <config.h>
#include <signal.h> #include <signal.h>
#include <memory> #include <memory>
#include <thread> #include <thread>
@ -15,7 +15,7 @@ struct AndroidMain
std::string configFile; std::string configFile;
/// set configuration and ensure files /// set configuration and ensure files
bool bool
Configure(const char * conf, const char * basedir) Configure(const char * conf, const char * basedir)
{ {
configFile = conf; configFile = conf;
@ -84,7 +84,7 @@ struct AndroidMain
return ""; return "";
} }
int GetIfRange() const int GetIfRange() const
{ {
if(m_impl) if(m_impl)
{ {
@ -95,7 +95,7 @@ struct AndroidMain
return -1; return -1;
} }
void void
SetVPN_FD(int fd) SetVPN_FD(int fd)
{ {
if(m_impl) if(m_impl)
@ -148,7 +148,7 @@ extern "C"
{ {
if(daemon->Start()) if(daemon->Start())
return env->NewStringUTF("ok"); return env->NewStringUTF("ok");
else else
return env->NewStringUTF("failed to start daemon"); return env->NewStringUTF("failed to start daemon");
} }
else else
@ -163,7 +163,7 @@ extern "C"
daemon->Stop(); daemon->Stop();
} }
} }
JNIEXPORT void JNICALL JNIEXPORT void JNICALL
Java_network_loki_lokinet_Lokinet_1JNI_setVPNFileDescriptor(JNIEnv*, jclass, jint fd) Java_network_loki_lokinet_Lokinet_1JNI_setVPNFileDescriptor(JNIEnv*, jclass, jint fd)
{ {
@ -207,4 +207,4 @@ extern "C"
daemon->Stop(); daemon->Stop();
} }
} }
} }

@ -1,14 +1,16 @@
#ifndef __ABYSS_CLIENT_HPP__ #ifndef __ABYSS_CLIENT_HPP__
#define __ABYSS_CLIENT_HPP__ #define __ABYSS_CLIENT_HPP__
#include <string>
#include <memory> #include <abyss/json.hpp>
#include <list> #include <ev.h>
#include <string_view.hpp>
#include <deque> #include <deque>
#include <unordered_map>
#include <functional> #include <functional>
#include <llarp/string_view.hpp> #include <list>
#include <abyss/json.hpp> #include <memory>
#include <llarp/ev.h> #include <string>
#include <unordered_map>
namespace abyss namespace abyss
{ {

@ -1,9 +1,10 @@
#ifndef __ABYSS_HTTP_HPP__ #ifndef __ABYSS_HTTP_HPP__
#define __ABYSS_HTTP_HPP__ #define __ABYSS_HTTP_HPP__
#include <abyss/json.hpp>
#include <string_view.hpp>
#include <string> #include <string>
#include <unordered_map> #include <unordered_map>
#include <llarp/string_view.hpp>
#include <abyss/json.hpp>
namespace abyss namespace abyss
{ {

@ -1,14 +1,15 @@
#ifndef __ABYSS_SERVER_HPP__ #ifndef __ABYSS_SERVER_HPP__
#define __ABYSS_SERVER_HPP__ #define __ABYSS_SERVER_HPP__
#include <llarp/ev.h> #include <abyss/json.hpp>
#include <llarp/logic.hpp> #include <ev.h>
#include <llarp/string_view.hpp> #include <logic.hpp>
#include <llarp/time.hpp> #include <string_view.hpp>
#include <time.hpp>
#include <list> #include <list>
#include <memory> #include <memory>
#include <string> #include <string>
#include <abyss/json.hpp>
#include <unordered_map> #include <unordered_map>
namespace abyss namespace abyss

@ -1,5 +1,6 @@
#include <libabyss.hpp> #include <libabyss.hpp>
#include <llarp/net.hpp> #include <net.hpp>
#ifndef _WIN32 #ifndef _WIN32
#include <sys/signal.h> #include <sys/signal.h>
#endif #endif

@ -1,10 +1,11 @@
#include <llarp/string_view.hpp>
#include <abyss/json.hpp> #include <abyss/json.hpp>
#include <vector>
#include <cstring>
#include <rapidjson/stringbuffer.h> #include <rapidjson/stringbuffer.h>
#include <rapidjson/writer.h> #include <rapidjson/writer.h>
#include <string_view.hpp>
#include <cstring>
#include <string> #include <string>
#include <vector>
namespace abyss namespace abyss
{ {

@ -2,7 +2,7 @@
#include <abyss/server.hpp> #include <abyss/server.hpp>
#include <buffer.hpp> #include <buffer.hpp>
#include <logger.hpp> #include <logger.hpp>
#include <llarp/time.hpp> #include <time.hpp>
#include <algorithm> #include <algorithm>
#include <sstream> #include <sstream>

@ -2,10 +2,10 @@
#ifndef _WIN32 #ifndef _WIN32
#include <arpa/inet.h> #include <arpa/inet.h>
#endif #endif
#include <llarp/bencode.h> #include <bencode.h>
#include <llarp/mem.h> #include <mem.h>
#include <llarp/string.h> #include <string.h>
#include <llarp/net.hpp> #include <net.hpp>
namespace llarp namespace llarp
{ {

@ -1,11 +1,11 @@
#ifndef LLARP_AI_HPP #ifndef LLARP_AI_HPP
#define LLARP_AI_HPP #define LLARP_AI_HPP
#include <bencode.hpp>
#include <crypto.h>
#include <crypto.hpp> #include <crypto.hpp>
#include <llarp/bencode.hpp> #include <mem.h>
#include <llarp/crypto.h> #include <net.h>
#include <llarp/mem.h>
#include <llarp/net.h>
#include <string> #include <string>
#include <vector> #include <vector>

@ -1,9 +1,9 @@
#ifndef LLARP_ALIGNED_HPP #ifndef LLARP_ALIGNED_HPP
#define LLARP_ALIGNED_HPP #define LLARP_ALIGNED_HPP
#include <bencode.h>
#include <crypto.h>
#include <encode.hpp> #include <encode.hpp>
#include <llarp/bencode.h>
#include <llarp/crypto.h>
#include <logger.hpp> #include <logger.hpp>
#include <iomanip> #include <iomanip>

@ -1,4 +1,4 @@
#include <llarp/bencode.h> #include <bencode.h>
#include <logger.hpp> #include <logger.hpp>
bool bool

@ -1,8 +1,10 @@
#ifndef LLARP_BENCODE_H #ifndef LLARP_BENCODE_H
#define LLARP_BENCODE_H #define LLARP_BENCODE_H
#include <llarp/buffer.h>
#include <llarp/common.hpp> #include <buffer.h>
#include <llarp/proto.hpp> #include <common.hpp>
#include <proto.hpp>
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>

@ -2,7 +2,7 @@
#define LLARP_BENCODE_HPP #define LLARP_BENCODE_HPP
#include <buffer.hpp> #include <buffer.hpp>
#include <llarp/bencode.h> #include <bencode.h>
#include <logger.hpp> #include <logger.hpp>
#include <mem.hpp> #include <mem.hpp>

@ -1,5 +1,6 @@
#include <llarp/buffer.h> #include <buffer.h>
#include <llarp/endian.hpp> #include <endian.hpp>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>

@ -1,7 +1,9 @@
#ifndef LLARP_BUFFER_H_ #ifndef LLARP_BUFFER_H_
#define 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 <stdbool.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>

@ -1,7 +1,7 @@
#ifndef LLARP_BUFFER_HPP #ifndef LLARP_BUFFER_HPP
#define LLARP_BUFFER_HPP #define LLARP_BUFFER_HPP
#include <llarp/buffer.h> #include <buffer.h>
namespace llarp namespace llarp
{ {

@ -1,9 +1,10 @@
#ifndef LLARP_CODEL_QUEUE_HPP #ifndef LLARP_CODEL_QUEUE_HPP
#define LLARP_CODEL_QUEUE_HPP #define LLARP_CODEL_QUEUE_HPP
#include <llarp/threading.hpp>
#include <llarp/time.hpp>
#include <logger.hpp> #include <logger.hpp>
#include <mem.hpp> #include <mem.hpp>
#include <threading.hpp>
#include <time.hpp>
#include <algorithm> #include <algorithm>
#include <array> #include <array>

@ -1,11 +1,11 @@
#include "config.hpp" #include <config.h>
#include <llarp/config.h> #include <config.hpp>
#include <llarp/defaults.hpp> #include <defaults.hpp>
#include <llarp/net.hpp> #include <fs.hpp>
#include "fs.hpp" #include <ini.hpp>
#include "ini.hpp" #include <logger.hpp>
#include "logger.hpp" #include <mem.hpp>
#include "mem.hpp" #include <net.hpp>
namespace llarp namespace llarp
{ {

@ -1,10 +1,10 @@
#ifndef LIBLLARP_CONFIG_HPP #ifndef LIBLLARP_CONFIG_HPP
#define LIBLLARP_CONFIG_HPP #define LIBLLARP_CONFIG_HPP
#include <config.h>
#include <list> #include <list>
#include <string> #include <string>
#include <llarp/config.h>
namespace llarp namespace llarp
{ {
struct Config struct Config

@ -1,19 +1,19 @@
#include <dns_dotlokilookup.hpp>
#include <dnsd.hpp>
#include <ev.hpp>
#include <getopt.h> #include <getopt.h>
#include <llarp.h> #include <llarp.h>
#include <llarp/logger.h>
#include <signal.h>
#include <sys/param.h> // for MIN
#include <llarp.hpp> #include <llarp.hpp>
#include <logger.h>
#include <router.hpp> #include <router.hpp>
#include <signal.h>
#include <llarp/dnsd.hpp> #include <sys/param.h> // for MIN
#include <llarp/dns_dotlokilookup.hpp>
#if(__FreeBSD__) || (__OpenBSD__) || (__NetBSD__) #if(__FreeBSD__) || (__OpenBSD__) || (__NetBSD__)
#include <pthread_np.h> #include <pthread_np.h>
#endif #endif
#include "ev.hpp"
namespace llarp namespace llarp
{ {

@ -1,7 +1,8 @@
#ifndef LLARP_CRYPTO_H_ #ifndef LLARP_CRYPTO_H_
#define LLARP_CRYPTO_H_ #define LLARP_CRYPTO_H_
#include <llarp/buffer.h> #include <buffer.h>
#include <llarp/common.hpp> #include <common.hpp>
#include <functional> #include <functional>
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>

@ -1,11 +1,11 @@
#ifndef LLARP_CRYPTO_HPP #ifndef LLARP_CRYPTO_HPP
#define LLARP_CRYPTO_HPP #define LLARP_CRYPTO_HPP
#include <llarp/crypto.h> #include <aligned.hpp>
#include <llarp/mem.h> #include <crypto.h>
#include <llarp/threadpool.h> #include <mem.h>
#include <llarp/aligned.hpp> #include <router_id.hpp>
#include <llarp/router_id.hpp> #include <threadpool.h>
namespace llarp namespace llarp
{ {

@ -1,5 +1,5 @@
#include <assert.h> #include <assert.h>
#include <llarp/crypto.h> #include <crypto.h>
#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>

@ -2,7 +2,7 @@
#define LLARP_DHT_H_ #define LLARP_DHT_H_
#include <crypto.hpp> #include <crypto.hpp>
#include <llarp/buffer.h> #include <buffer.h>
#include <router_contact.hpp> #include <router_contact.hpp>
/** /**

@ -1,8 +1,9 @@
#include <dht/context.hpp> #include <dht/context.hpp>
#include <dht/messages/gotrouter.hpp> #include <dht/messages/gotrouter.hpp>
#include <llarp/messages/dht.hpp> #include <messages/dht.hpp>
#include <llarp/messages/dht_immediate.hpp> #include <messages/dht_immediate.hpp>
#include "router.hpp" #include <router.hpp>
#include <vector> #include <vector>
namespace llarp namespace llarp

@ -7,8 +7,8 @@
#include <dht/message.hpp> #include <dht/message.hpp>
#include <dht/messages/findintro.hpp> #include <dht/messages/findintro.hpp>
#include <dht/node.hpp> #include <dht/node.hpp>
#include <llarp/time.hpp>
#include <service/IntroSet.hpp> #include <service/IntroSet.hpp>
#include <time.hpp>
#include <set> #include <set>

@ -1,4 +1,4 @@
#include <llarp/messages/dht_immediate.hpp> #include <messages/dht_immediate.hpp>
#include <router.hpp> #include <router.hpp>

@ -1,8 +1,7 @@
#include <dht/context.hpp> #include <dht/context.hpp>
#include <dht/messages/findrouter.hpp> #include <dht/messages/findrouter.hpp>
#include <dht/messages/gotrouter.hpp> #include <dht/messages/gotrouter.hpp>
#include <llarp/messages/dht.hpp> #include <messages/dht.hpp>
#include <router.hpp> #include <router.hpp>
namespace llarp namespace llarp

@ -1,7 +1,6 @@
#include <dht/context.hpp> #include <dht/context.hpp>
#include <dht/messages/gotintro.hpp> #include <dht/messages/gotintro.hpp>
#include <llarp/messages/dht.hpp> #include <messages/dht.hpp>
#include <router.hpp> #include <router.hpp>
namespace llarp namespace llarp

@ -1,6 +1,7 @@
#ifndef LLARP_DHT_KEY_HPP #ifndef LLARP_DHT_KEY_HPP
#define LLARP_DHT_KEY_HPP #define LLARP_DHT_KEY_HPP
#include <llarp/aligned.hpp>
#include <aligned.hpp>
namespace llarp namespace llarp
{ {
@ -52,4 +53,4 @@ namespace llarp
} // namespace dht } // namespace dht
} // namespace llarp } // namespace llarp
#endif #endif

@ -1,10 +1,11 @@
#ifndef LLARP_DHT_MESSAGE_HPP #ifndef LLARP_DHT_MESSAGE_HPP
#define LLARP_DHT_MESSAGE_HPP #define LLARP_DHT_MESSAGE_HPP
#include <bencode.hpp>
#include <dht.h> #include <dht.h>
#include <dht/key.hpp> #include <dht/key.hpp>
#include <llarp/bencode.hpp> #include <path_types.hpp>
#include <llarp/path_types.hpp>
#include <vector> #include <vector>
namespace llarp namespace llarp

@ -1,8 +1,7 @@
#include <dht/context.hpp> #include <dht/context.hpp>
#include <dht/messages/pubintro.hpp> #include <dht/messages/pubintro.hpp>
#include <llarp/messages/dht.hpp> #include <messages/dht.hpp>
#include <llarp/messages/dht_immediate.hpp> #include <messages/dht_immediate.hpp>
#include <router.hpp> #include <router.hpp>
namespace llarp namespace llarp

@ -1,5 +1,5 @@
#include <llarp/endian.hpp> #include <dnsd.hpp> // for llarp_handle_dnsd_recvfrom, dnsc
#include <llarp/dnsd.hpp> // for llarp_handle_dnsd_recvfrom, dnsc #include <endian.hpp>
#include <logger.hpp> #include <logger.hpp>
void void

@ -3,17 +3,18 @@
#include <dns.h> #include <dns.h>
#include <sys/types.h> // for uint & ssize_t #include <sys/types.h> // for uint & ssize_t
#include <map>
#include <string>
#include <vector>
#ifndef _WIN32 #ifndef _WIN32
#include <sys/socket.h> #include <sys/socket.h>
#endif #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 <dns_rectypes.hpp>
#include <map>
#include <string>
#include <vector>
#define LLARP_DNS_RECTYPE_A 1 #define LLARP_DNS_RECTYPE_A 1
#define LLARP_DNS_RECTYPE_NS 2 #define LLARP_DNS_RECTYPE_NS 2
#define LLARP_DNS_RECTYPE_CNAME 5 #define LLARP_DNS_RECTYPE_CNAME 5

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

@ -1,5 +1,5 @@
#include <dns/name.hpp> #include <dns/name.hpp>
#include <llarp/net.hpp> #include <net.hpp>
#include <algorithm> #include <algorithm>
#include <sstream> #include <sstream>

@ -1,9 +1,10 @@
#ifndef LLARP_DNS_NAME_HPP #ifndef LLARP_DNS_NAME_HPP
#define LLARP_DNS_NAME_HPP #define LLARP_DNS_NAME_HPP
#include <buffer.h>
#include <net_int.hpp>
#include <string> #include <string>
#include <llarp/buffer.h>
#include <llarp/net_int.hpp>
namespace llarp namespace llarp
{ {

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

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

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

@ -1,6 +1,6 @@
#ifndef LLARP_DNS_SERIALIZE_HPP #ifndef LLARP_DNS_SERIALIZE_HPP
#define LLARP_DNS_SERIALIZE_HPP #define LLARP_DNS_SERIALIZE_HPP
#include <llarp/buffer.h> #include <buffer.h>
#include <vector> #include <vector>
namespace llarp namespace llarp

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

@ -1,6 +1,6 @@
#include <dns_dotlokilookup.hpp>
#include <handlers/tun.hpp> #include <handlers/tun.hpp>
#include <llarp/dns_dotlokilookup.hpp> #include <logic.hpp>
#include <llarp/logic.hpp>
#include <service/context.hpp> #include <service/context.hpp>
std::string const default_chars = std::string const default_chars =

@ -1,7 +1,7 @@
#ifndef LIBLLARP_DNS_DOTLOKILOOKUP_HPP #ifndef LIBLLARP_DNS_DOTLOKILOOKUP_HPP
#define LIBLLARP_DNS_DOTLOKILOOKUP_HPP #define LIBLLARP_DNS_DOTLOKILOOKUP_HPP
#include <llarp/dnsd.hpp> #include <dnsd.hpp>
#include <service/address.hpp> #include <service/address.hpp>

@ -1,4 +1,4 @@
#include <llarp/dns_iptracker.hpp> #include <dns_iptracker.hpp>
dns_iptracker g_dns_iptracker; dns_iptracker g_dns_iptracker;

@ -1,8 +1,8 @@
#ifndef LIBLLARP_DNSIPTRACKER_HPP #ifndef LIBLLARP_DNSIPTRACKER_HPP
#define LIBLLARP_DNSIPTRACKER_HPP #define LIBLLARP_DNSIPTRACKER_HPP
#include <llarp/dns_dotlokilookup.hpp> #include <dns_dotlokilookup.hpp>
#include <llarp/net.hpp> #include <net.hpp>
#include <service/address.hpp> #include <service/address.hpp>
#include <map> #include <map>

@ -1,9 +1,9 @@
#ifndef LIBLLARP_DNS_REC_TYPES_HPP #ifndef LIBLLARP_DNS_REC_TYPES_HPP
#define 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 <vector>
#include <llarp/buffer.h> // for byte_t
#include <llarp/net.hpp> // for llarp::Addr , llarp::huint32_t
namespace llarp namespace llarp
{ {

@ -1,4 +1,6 @@
#include <dnsc.hpp> #include <dnsc.hpp>
#include <logger.hpp>
#include <net.hpp> // for llarp::Addr
#ifndef _WIN32 #ifndef _WIN32
#include <arpa/inet.h> #include <arpa/inet.h>
@ -13,8 +15,6 @@
#include <unistd.h> /* close */ #include <unistd.h> /* close */
#include <algorithm> // for std::find_if #include <algorithm> // for std::find_if
#include <llarp/net.hpp> // for llarp::Addr
#include <logger.hpp>
#include <stdio.h> // sprintf #include <stdio.h> // sprintf
#define MIN(X, Y) (((X) < (Y)) ? (X) : (Y)) #define MIN(X, Y) (((X) < (Y)) ? (X) : (Y))

@ -1,7 +1,7 @@
#ifndef LIBLLARP_DNSC_HPP #ifndef LIBLLARP_DNSC_HPP
#define LIBLLARP_DNSC_HPP #define LIBLLARP_DNSC_HPP
#include <llarp/ev.h> // for sockaadr #include <ev.h> // for sockaadr
#include <dns.hpp> // get protocol structs #include <dns.hpp> // get protocol structs
// internal, non-public functions // internal, non-public functions

@ -1,5 +1,5 @@
#include <llarp/dnsd.hpp> #include <dnsd.hpp>
#include <llarp/net.hpp> #include <net.hpp>
extern dns_tracker dns_udp_tracker; extern dns_tracker dns_udp_tracker;

@ -1,11 +1,12 @@
#ifndef LIBLLARP_DNSD_HPP #ifndef LIBLLARP_DNSD_HPP
#define LIBLLARP_DNSD_HPP #define LIBLLARP_DNSD_HPP
#include <llarp/ev.h> // for sockaadr #include <ev.h> // for sockaadr
#include <string>
#include <dns.hpp> // question and dnsc #include <dns.hpp> // question and dnsc
#include <dnsc.hpp> #include <dnsc.hpp>
#include <string>
// //
// Input structures/functions: // Input structures/functions:
// //

@ -1 +1 @@
#include <llarp/dtls.hpp> #include <dtls.hpp>

@ -1,9 +1,10 @@
#ifndef LLARP_ENCCRYPTED_HPP #ifndef LLARP_ENCCRYPTED_HPP
#define LLARP_ENCCRYPTED_HPP #define LLARP_ENCCRYPTED_HPP
#include <llarp/bencode.h> #include <aligned.hpp>
#include <llarp/buffer.h> #include <bencode.h>
#include <llarp/aligned.hpp> #include <buffer.h>
#include <vector> #include <vector>
#include <stdexcept> #include <stdexcept>

@ -1,6 +1,8 @@
#ifndef LLARP_ENCRYPTED_ACK_HPP #ifndef LLARP_ENCRYPTED_ACK_HPP
#define LLARP_ENCRYPTED_ACK_HPP #define LLARP_ENCRYPTED_ACK_HPP
#include <llarp/encrypted.hpp>
#include <encrypted.hpp>
namespace llarp namespace llarp
{ {
struct EncryptedAck : public Encrypted struct EncryptedAck : public Encrypted

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

@ -1,10 +1,10 @@
#ifndef LLARP_ENCRYPTED_FRAME_HPP #ifndef LLARP_ENCRYPTED_FRAME_HPP
#define LLARP_ENCRYPTED_FRAME_HPP #define LLARP_ENCRYPTED_FRAME_HPP
#include <llarp/crypto.h> #include <crypto.h>
#include <llarp/mem.h> #include <encrypted.hpp>
#include <llarp/threadpool.h> #include <mem.h>
#include <llarp/encrypted.hpp> #include <threadpool.h>
namespace llarp namespace llarp
{ {

@ -1,10 +1,10 @@
#include <llarp/ev.h> #include <ev.h>
#include <llarp/logic.hpp> #include <logic.hpp>
#include <llarp/string_view.hpp> #include <mem.hpp>
#include <string_view.hpp>
#include <stddef.h> #include <stddef.h>
#include "mem.hpp"
#define EV_TICK_INTERVAL 100 #define EV_TICK_INTERVAL 100

@ -1,5 +1,10 @@
#ifndef LLARP_EV_H #ifndef LLARP_EV_H
#define LLARP_EV_H #define LLARP_EV_H
#include <buffer.h>
#include <time.hpp>
#include <tuntap.h>
#ifdef _WIN32 #ifdef _WIN32
#include <winsock2.h> #include <winsock2.h>
#include <ws2tcpip.h> #include <ws2tcpip.h>
@ -11,12 +16,10 @@
#include <netinet/in.h> #include <netinet/in.h>
#include <sys/socket.h> #include <sys/socket.h>
#endif #endif
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <stdlib.h> #include <stdlib.h>
#include <tuntap.h>
#include <llarp/time.hpp>
#include <llarp/buffer.h>
/** /**
* ev.h * ev.h

@ -1,17 +1,20 @@
#ifndef LLARP_EV_HPP #ifndef LLARP_EV_HPP
#define 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 // writev
#ifndef _WIN32 #ifndef _WIN32
#include <sys/uio.h> #include <sys/uio.h>
#endif #endif
#include <unistd.h>
#include <llarp/buffer.h>
#include <llarp/codel.hpp>
#include <list>
#include <deque>
#include <algorithm> #include <algorithm>
#include <buffer.h>
#include <deque>
#include <list>
#include <unistd.h>
#ifdef _WIN32 #ifdef _WIN32
#include <win32_up.h> #include <win32_up.h>

@ -1,19 +1,19 @@
#ifndef EV_EPOLL_HPP #ifndef EV_EPOLL_HPP
#define EV_EPOLL_HPP #define EV_EPOLL_HPP
#include <fcntl.h> #include <fcntl.h>
#include <llarp/buffer.h> #include <buffer.h>
#include <llarp/net.h> #include <net.h>
#include <signal.h> #include <signal.h>
#include <sys/epoll.h> #include <sys/epoll.h>
#include <sys/un.h> #include <sys/un.h>
#include <tuntap.h> #include <tuntap.h>
#include <unistd.h> #include <unistd.h>
#include <cstdio> #include <cstdio>
#include "buffer.hpp" #include <buffer.hpp>
#include "ev.hpp" #include <ev.hpp>
#include "llarp/net.hpp" #include <net.hpp>
#include "logger.hpp" #include <logger.hpp>
#include "mem.hpp" #include <mem.hpp>
#include <cassert> #include <cassert>
#ifdef ANDROID #ifdef ANDROID

@ -1,7 +1,11 @@
#ifndef EV_KQUEUE_HPP #ifndef EV_KQUEUE_HPP
#define 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> #include <sys/un.h>
@ -14,9 +18,6 @@
// original upstream // original upstream
#include <unistd.h> #include <unistd.h>
#include <cstdio> #include <cstdio>
#include <llarp/net.hpp>
#include "ev.hpp"
#include "logger.hpp"
namespace llarp namespace llarp
{ {

@ -1,12 +1,14 @@
#ifndef EV_WIN32_HPP #ifndef EV_WIN32_HPP
#define 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 <windows.h>
#include <cstdio> #include <cstdio>
#include <llarp/net.hpp>
#include "ev.hpp"
#include "logger.hpp"
#ifdef sizeof #ifdef sizeof
#undef sizeof #undef sizeof

@ -1,4 +1,4 @@
#include <llarp/messages/exit.hpp> #include <messages/exit.hpp>
#include <routing/handler.hpp> #include <routing/handler.hpp>
namespace llarp namespace llarp

@ -1,9 +1,10 @@
#ifndef LLARP_EXIT_ENDPOINT_HPP #ifndef LLARP_EXIT_ENDPOINT_HPP
#define LLARP_EXIT_ENDPOINT_HPP #define LLARP_EXIT_ENDPOINT_HPP
#include <llarp/time.hpp>
#include <crypto.hpp> #include <crypto.hpp>
#include <llarp/path.hpp> #include <ip.hpp>
#include <llarp/ip.hpp> #include <path.hpp>
#include <time.hpp>
namespace llarp namespace llarp
{ {

@ -1,4 +1,4 @@
#include <llarp/messages/exit.hpp> #include <messages/exit.hpp>
#include <routing/handler.hpp> #include <routing/handler.hpp>
namespace llarp namespace llarp

@ -1,5 +1,5 @@
#include <link_layer.hpp> #include <link_layer.hpp>
#include <llarp/messages/exit.hpp> #include <messages/exit.hpp>
#include <routing/handler.hpp> #include <routing/handler.hpp>
namespace llarp namespace llarp

@ -1,6 +1,7 @@
#ifndef LLARP_EXIT_POLICY_HPP #ifndef LLARP_EXIT_POLICY_HPP
#define LLARP_EXIT_POLICY_HPP #define LLARP_EXIT_POLICY_HPP
#include <llarp/bencode.hpp>
#include <bencode.hpp>
namespace llarp namespace llarp
{ {
@ -23,4 +24,4 @@ namespace llarp
} // namespace exit } // namespace exit
} // namespace llarp } // namespace llarp
#endif #endif

@ -1,4 +1,4 @@
#include <llarp/messages/exit.hpp> #include <messages/exit.hpp>
#include <routing/handler.hpp> #include <routing/handler.hpp>
namespace llarp namespace llarp

@ -1,5 +1,5 @@
#include <exit/session.hpp> #include <exit/session.hpp>
#include <llarp/path.hpp> #include <path.hpp>
#include <router.hpp> #include <router.hpp>
namespace llarp namespace llarp

@ -1,9 +1,11 @@
#ifndef LLARP_EXIT_SESSION_HPP #ifndef LLARP_EXIT_SESSION_HPP
#define LLARP_EXIT_SESSION_HPP #define LLARP_EXIT_SESSION_HPP
#include <llarp/pathbuilder.hpp>
#include <llarp/ip.hpp> #include <ip.hpp>
#include <llarp/messages/transfer_traffic.hpp> #include <messages/exit.hpp>
#include <llarp/messages/exit.hpp> #include <messages/transfer_traffic.hpp>
#include <pathbuilder.hpp>
#include <deque> #include <deque>
namespace llarp namespace llarp

@ -1,5 +1,5 @@
#include <llarp/endian.hpp> #include <endian.hpp>
#include <llarp/messages/transfer_traffic.hpp> #include <messages/transfer_traffic.hpp>
#include <routing/handler.hpp> #include <routing/handler.hpp>
namespace llarp namespace llarp

@ -1,4 +1,4 @@
#include <llarp/messages/exit.hpp> #include <messages/exit.hpp>
#include <routing/handler.hpp> #include <routing/handler.hpp>
namespace llarp namespace llarp

@ -2,10 +2,11 @@
#include <arpa/inet.h> #include <arpa/inet.h>
#endif #endif
#include <llarp/bencode.h> #include <bencode.h>
#include <llarp/exit_info.hpp> #include <exit_info.hpp>
#include <llarp/mem.h> #include <mem.h>
#include <llarp/string.h> #include <string.h>
#include <list> #include <list>
namespace llarp namespace llarp

@ -1,12 +1,14 @@
#ifndef LLARP_XI_H #ifndef LLARP_XI_H
#define LLARP_XI_H #define LLARP_XI_H
#include <llarp/buffer.h>
#include <llarp/crypto.h> #include <buffer.h>
#include <llarp/net.h> #include <crypto.h>
#include <net.h>
#ifdef __cplusplus #ifdef __cplusplus
#include <bits.hpp>
#include <iostream> #include <iostream>
#include <string> #include <string>
#include <llarp/bits.hpp>
#endif #endif
/** /**

@ -1,10 +1,12 @@
#ifndef LLARP_XI_HPP #ifndef LLARP_XI_HPP
#define LLARP_XI_HPP #define LLARP_XI_HPP
#include <bencode.hpp>
#include <bits.hpp>
#include <crypto.hpp> #include <crypto.hpp>
#include <llarp/bencode.hpp> #include <net.hpp>
#include <llarp/net.hpp>
#include <iostream> #include <iostream>
#include <llarp/bits.hpp>
/** /**
* exit_info.h * exit_info.h

@ -2,8 +2,9 @@
#include <arpa/inet.h> #include <arpa/inet.h>
#endif #endif
#include <llarp/bencode.h> #include <bencode.h>
#include <llarp/exit_route.h> #include <exit_route.h>
#include <llarp/string.h> #include <llarp/string.h>
bool bool

@ -1,7 +1,9 @@
#ifndef LLARP_XR_H #ifndef LLARP_XR_H
#define LLARP_XR_H #define LLARP_XR_H
#include <llarp/buffer.h>
#include <llarp/net.h> #include <buffer.h>
#include <net.h>
#include <stdint.h> #include <stdint.h>
struct llarp_xr struct llarp_xr

@ -1,5 +1,5 @@
#include <handlers/exit.hpp> #include <handlers/exit.hpp>
#include <llarp/net.hpp> #include <net.hpp>
#include <router.hpp> #include <router.hpp>
#include <str.hpp> #include <str.hpp>

@ -1,13 +1,13 @@
#ifndef LLARP_HANDLERS_TUN_HPP #ifndef LLARP_HANDLERS_TUN_HPP
#define LLARP_HANDLERS_TUN_HPP #define LLARP_HANDLERS_TUN_HPP
#include <codel.hpp>
#include <dns/server.hpp> #include <dns/server.hpp>
#include <llarp/codel.hpp> #include <ev.h>
#include <llarp/ev.h> #include <ip.hpp>
#include <llarp/ip.hpp> #include <net.hpp>
#include <llarp/net.hpp>
#include <llarp/threading.hpp>
#include <service/endpoint.hpp> #include <service/endpoint.hpp>
#include <threading.hpp>
namespace llarp namespace llarp
{ {

@ -1,7 +1,8 @@
#include <llarp/ip.hpp>
#include <buffer.hpp> #include <buffer.hpp>
#include <llarp/endian.hpp> #include <endian.hpp>
#include "mem.hpp" #include <ip.hpp>
#include <mem.hpp>
#ifndef _WIN32 #ifndef _WIN32
#include <netinet/in.h> #include <netinet/in.h>
#endif #endif

@ -1,9 +1,10 @@
#ifndef LLARP_IP_HPP #ifndef LLARP_IP_HPP
#define LLARP_IP_HPP #define LLARP_IP_HPP
#include <llarp/buffer.h>
#include <llarp/time.hpp> #include <buffer.h>
#include <llarp/net.hpp> #include <ev.h>
#include <llarp/ev.h> #include <net.hpp>
#include <time.hpp>
#ifndef _WIN32 #ifndef _WIN32
// unix, linux // unix, linux

@ -1,6 +1,8 @@
#ifndef LLARP_IWP_HPP #ifndef LLARP_IWP_HPP
#define LLARP_IWP_HPP #define LLARP_IWP_HPP
#include <llarp/crypto.h>
#include <crypto.h>
#include <string> #include <string>
namespace llarp { namespace llarp {

@ -1,6 +1,6 @@
#include <link/curvecp.hpp> #include <link/curvecp.hpp>
#include <link/server.hpp> #include <link/server.hpp>
#include <llarp/messages/link_intro.hpp> #include <messages/link_intro.hpp>
namespace llarp namespace llarp
{ {

@ -1,8 +1,8 @@
#ifndef LLARP_LINK_ENCODER_HPP #ifndef LLARP_LINK_ENCODER_HPP
#define LLARP_LINK_ENCODER_HPP #define LLARP_LINK_ENCODER_HPP
#include <llarp/bencode.h> #include <bencode.h>
#include <llarp/buffer.h> #include <buffer.h>
#include <router_contact.hpp> #include <router_contact.hpp>
namespace llarp namespace llarp

@ -1,12 +1,13 @@
#ifndef LLARP_LINK_SERVER_HPP #ifndef LLARP_LINK_SERVER_HPP
#define LLARP_LINK_SERVER_HPP #define LLARP_LINK_SERVER_HPP
#include <crypto.hpp> #include <crypto.hpp>
#include <ev.h>
#include <link/session.hpp> #include <link/session.hpp>
#include <llarp/ev.h> #include <logic.hpp>
#include <llarp/logic.hpp> #include <net.hpp>
#include <llarp/net.hpp>
#include <llarp/threading.hpp>
#include <router_contact.hpp> #include <router_contact.hpp>
#include <threading.hpp>
#include <list> #include <list>
#include <unordered_map> #include <unordered_map>

@ -2,9 +2,9 @@
#define LLARP_LINK_SESSION_HPP #define LLARP_LINK_SESSION_HPP
#include <crypto.hpp> #include <crypto.hpp>
#include <llarp/net.hpp> #include <net.hpp>
#include <llarp/types.hpp>
#include <router_contact.hpp> #include <router_contact.hpp>
#include <types.hpp>
#include <functional> #include <functional>

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

Loading…
Cancel
Save