projects
/
project
/
unetd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bpf_skb_utils.h: add missing include to fix build against newer kernel headers
[project/unetd.git]
/
unetd.h
diff --git
a/unetd.h
b/unetd.h
index 84e8a06f68d8162d80463b0409fc53130bf0a84a..365e738c6b22dedefd0dae7006353467ae89c976 100644
(file)
--- a/
unetd.h
+++ b/
unetd.h
@@
-13,16
+13,19
@@
#include "utils.h"
#include "siphash.h"
#include "wg.h"
#include "utils.h"
#include "siphash.h"
#include "wg.h"
+#include "pex-msg.h"
#include "pex.h"
#include "network.h"
#include "host.h"
#include "service.h"
#include "ubus.h"
#include "auth-data.h"
#include "pex.h"
#include "network.h"
#include "host.h"
#include "service.h"
#include "ubus.h"
#include "auth-data.h"
+#include "chacha20.h"
extern const char *mssfix_path;
extern const char *data_dir;
extern bool debug;
extern const char *mssfix_path;
extern const char *data_dir;
extern bool debug;
+extern int global_pex_port;
#define D(format, ...) \
do { \
#define D(format, ...) \
do { \
@@
-40,6
+43,10
@@
extern bool debug;
#define UNETD_MSS_BPF_PATH "/lib/bpf/mss.o"
#define UNETD_MSS_PRIO_BASE 0x130
#define UNETD_MSS_BPF_PATH "/lib/bpf/mss.o"
#define UNETD_MSS_PRIO_BASE 0x130
+#define UNETD_DATA_UPDATE_DELAY (10 * 1000)
+
+#define UNETD_PEX_HOST_ACITVE_TIMEOUT 60
+
void unetd_write_hosts(void);
int unetd_attach_mssfix(int ifindex, int mtu);
void unetd_write_hosts(void);
int unetd_attach_mssfix(int ifindex, int mtu);