forked from Ysurac/openmptcprouter-feeds
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
113 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
-- Copyright 2008 Steven Barth <[email protected]> | ||
-- Copyright 2011 Jo-Philipp Wich <[email protected]> | ||
-- Copyright 2018 Ycarus (Yannick Chabanois) <[email protected]> | ||
-- Copyright 2018-2023 Ycarus (Yannick Chabanois) <[email protected]> | ||
-- Licensed to the public under the Apache License 2.0. | ||
|
||
module("luci.controller.mptcp", package.seeall) | ||
|
||
local uname = nixio.uname() | ||
|
||
function index() | ||
local uname = nixio.uname() | ||
entry({"admin", "network", "mptcp"}, alias("admin", "network", "mptcp", "settings"), _("MPTCP")) | ||
entry({"admin", "network", "mptcp", "settings"}, cbi("mptcp"), _("Settings"),2).leaf = true | ||
entry({"admin", "network", "mptcp", "bandwidth"}, template("mptcp/multipath"), _("Bandwidth"), 3).leaf = true | ||
entry({"admin", "network", "mptcp", "multipath_bandwidth"}, call("multipath_bandwidth")).leaf = true | ||
entry({"admin", "network", "mptcp", "interface_bandwidth"}, call("interface_bandwidth")).leaf = true | ||
if uname.release:sub(1,1) == "5" then | ||
if uname ~= nil and uname.release:sub(1,1) == "5" then | ||
entry({"admin", "network", "mptcp", "mptcp_check"}, template("mptcp/mptcp_check"), _("MPTCP Support Check"), 4).leaf = true | ||
end | ||
entry({"admin", "network", "mptcp", "mptcp_check_trace"}, post("mptcp_check_trace")).leaf = true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#!/bin/sh | ||
#!/bin/sh | ||
# (c) Yannick Chabanois ([email protected]) for OpenMPTCProuter | ||
# | ||
# | ||
|
@@ -14,6 +13,7 @@ if [ "$1" = "fasttest" ]; then | |
fi | ||
for i in $@; do :; done | ||
INTERFACE="$i" | ||
[ "$INTERFACE" = "forcevps" ] || [ "$INTERFACE" = "fasttest" ] && INTERFACE="" | ||
|
||
[ -n "$INTERFACE" ] && [ ! -d "/sys/class/net/$INTERFACE" ] && { | ||
echo "You must use a real interface. You wan find them using 'ip a' for example" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,6 +149,7 @@ client | |
client_to_client | ||
comp_noadapt | ||
disable | ||
disable_dco | ||
disable_occ | ||
down_pre | ||
duplicate_cn | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# | ||
# Copyright (C) 2021 Jianhui Zhao <[email protected]> | ||
# Copyright (C) 2023 Yannick Chabanois (Ycarus) <[email protected]> for OpenMPTCProuter | ||
# | ||
# This is free software, licensed under the GNU General Public License v2. | ||
# See /LICENSE for more information. | ||
# | ||
|
||
include $(TOPDIR)/rules.mk | ||
include $(INCLUDE_DIR)/kernel.mk | ||
|
||
PKG_NAME:=ovpn-dco | ||
PKG_VERSION:=0.2.20231127 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE_PROTO:=git | ||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=https://github.com/OpenVPN/ovpn-dco.git | ||
PKG_SOURCE_VERSION:=c24380cdb8f5eef5a04059bbe82ad4ba4d3616c3 | ||
|
||
PKG_MAINTAINER:=Yannick Chabanois <[email protected]> | ||
PKG_LICENSE:=GPL-2.0-only | ||
|
||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define KernelPackage/ovpn-dco-v2 | ||
SUBMENU:=Network Support | ||
TITLE:=OpenVPN data channel offload | ||
DEPENDS:=+kmod-crypto-aead +kmod-udptunnel4 +IPV6:kmod-udptunnel6 | ||
FILES:=$(PKG_BUILD_DIR)/drivers/net/ovpn-dco/ovpn-dco-v2.ko | ||
AUTOLOAD:=$(call AutoLoad,30,ovpn-dco-v2) | ||
endef | ||
|
||
define KernelPackage/ovpn-dco-v2/description | ||
This module enhances the performance of the OpenVPN userspace software | ||
by offloading the data channel processing to kernelspace. | ||
endef | ||
|
||
NOSTDINC_FLAGS += \ | ||
$(KERNEL_NOSTDINC_FLAGS) \ | ||
-I$(PKG_BUILD_DIR)/include \ | ||
-include $(PKG_BUILD_DIR)/linux-compat.h \ | ||
-I$(PKG_BUILD_DIR)/compat-include/ | ||
|
||
EXTRA_KCONFIG:= \ | ||
CONFIG_OVPN_DCO_V2=m | ||
|
||
PKG_EXTMOD_SUBDIRS = drivers/net/ovpn-dco | ||
|
||
MAKE_OPTS:= \ | ||
$(KERNEL_MAKE_FLAGS) \ | ||
M="$(PKG_BUILD_DIR)/drivers/net/ovpn-dco" \ | ||
NOSTDINC_FLAGS="$(NOSTDINC_FLAGS)" \ | ||
$(EXTRA_KCONFIG) | ||
|
||
define Build/Compile | ||
$(MAKE) -C "$(LINUX_DIR)" \ | ||
$(MAKE_OPTS) \ | ||
modules | ||
endef | ||
|
||
$(eval $(call KernelPackage,ovpn-dco-v2)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters