diff --git a/luci-app-mlvpn/htdocs/luci-static/resources/view/services/mlvpn.js b/luci-app-mlvpn/htdocs/luci-static/resources/view/services/mlvpn.js index e7259c44a..f8bbc58c5 100644 --- a/luci-app-mlvpn/htdocs/luci-static/resources/view/services/mlvpn.js +++ b/luci-app-mlvpn/htdocs/luci-static/resources/view/services/mlvpn.js @@ -82,6 +82,12 @@ return L.view.extend({ o.rmempty = false; o.modalonly = true; + o = s.taboption('advanced', form.Value, 'latency_tolerance', _('Latency tolerance')); + o.default = '300'; + o.datatype = "uinteger"; + o.rmempty = false; + o.modalonly = true; + return m.render(); } }); diff --git a/mlvpn/Makefile b/mlvpn/Makefile index f9a356f02..1dbe8573b 100644 --- a/mlvpn/Makefile +++ b/mlvpn/Makefile @@ -8,13 +8,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mlvpn -PKG_VERSION:=2263bab +PKG_VERSION:=8aa1b16 PKG_RELEASE:=1 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/zehome/MLVPN.git -PKG_SOURCE_VERSION:=2263bab7e5f983e1daa33887b53120c12646398f -PKG_SOURCE_DATE:=2020-12-16 +PKG_SOURCE_VERSION:=8aa1b16d843ea68734e2520e39a34cb7f3d61b2b +PKG_SOURCE_DATE:=2021-08-14 #PKG_SOURCE_URL:=https://github.com/markfoodyburton/MLVPN.git #PKG_SOURCE_VERSION:=8f9720978b28c1954f9f229525333547283316d2 #PKG_SOURCE_DATE:=2018-09-03 diff --git a/mlvpn/files/etc/config/mlvpn b/mlvpn/files/etc/config/mlvpn index 1122794be..bbd90b5a4 100644 --- a/mlvpn/files/etc/config/mlvpn +++ b/mlvpn/files/etc/config/mlvpn @@ -8,4 +8,5 @@ config mlvpn 'general' option host '128.128.128.128' option firstport '65201' option interface_name 'mlvpn0' - option loss_tolerance '50' \ No newline at end of file + option loss_tolerance '50' + option latency_tolerance '300' diff --git a/mlvpn/files/etc/init.d/mlvpn b/mlvpn/files/etc/init.d/mlvpn index 33f6e75a9..3c11ff633 100755 --- a/mlvpn/files/etc/init.d/mlvpn +++ b/mlvpn/files/etc/init.d/mlvpn @@ -33,14 +33,15 @@ interface_multipath_settings() { } start() { - local enable timeout mode password reorder_buffer_size interface_name host firstport loss_tolerence + local enable timeout mode password reorder_buffer_size interface_name host firstport loss_tolerance latency_tolerance [ "$(uci -q get mlvpn.general.enable)" = "1" ] || return 1 interface_name="$(uci -q get mlvpn.general.interface_name)" timeout="$(uci -q get mlvpn.general.timeout)" mode="$(uci -q get mlvpn.general.mode)" password="$(uci -q get mlvpn.general.password)" reorder_buffer_size="$(uci -q get mlvpn.general.reorder_buffer_size)" - loss_tolerence="$(uci -q get mlvpn.general.loss_tolerence)" + loss_tolerance="$(uci -q get mlvpn.general.loss_tolerance)" + latency_tolerance="$(uci -q get mlvpn.general.latency_tolerance)" cleartext_data="$(uci -q get mlvpn.general.cleartext_data)" [ -z "$cleartext_data" ] && cleartext_data="0" host="$(uci -q get mlvpn.general.host)" @@ -59,7 +60,8 @@ start() { timeout = ${timeout} reorder_buffer = yes reorder_buffer_size = ${reorder_buffer_size} - loss_tolerence = ${loss_tolerence} + loss_tolerence = ${loss_tolerance} + latency_tolerence = ${latency_tolerance} cleartext_data = ${cleartext_data} password = "${password}" mtu = 1452 diff --git a/mlvpn/patches/020-remove-cdefs.patch b/mlvpn/patches/020-remove-cdefs.patch new file mode 100644 index 000000000..9b4bd38a0 --- /dev/null +++ b/mlvpn/patches/020-remove-cdefs.patch @@ -0,0 +1,33 @@ +--- a/src/vis.h.anc 2021-09-24 22:00:03.900321816 +0200 ++++ b/src/vis.h 2021-09-24 22:00:21.500028958 +0200 +@@ -79,7 +79,6 @@ + */ + #define UNVIS_END 1 /* no more characters */ + +-#include + + __BEGIN_DECLS + char *vis(char *, int, int, int); +--- a/src/vis.h.anc 2021-09-24 22:05:19.543069573 +0200 ++++ b/src/vis.h 2021-09-24 22:06:00.430389216 +0200 +@@ -80,7 +80,9 @@ + #define UNVIS_END 1 /* no more characters */ + + +-__BEGIN_DECLS ++#ifdef __cplusplus ++extern "C" { ++#endif + char *vis(char *, int, int, int); + int strvis(char *, const char *, int); + int stravis(char **, const char *, int); +@@ -93,6 +95,8 @@ + ssize_t strnunvis(char *, const char *, size_t) + __attribute__ ((__bounded__(__string__,1,3))); + +-__END_DECLS ++#ifdef __cplusplus ++} ++#endif + + #endif /* !HAVE_STRNVIS || BROKEN_STRNVIS */