2018-08-20 20:43:41 +02:00
|
|
|
{ stdenv, buildPackages, fetchFromGitHub, perl, buildLinux, ... } @ args:
|
2015-11-17 09:48:31 +01:00
|
|
|
|
2018-01-28 19:50:18 +01:00
|
|
|
buildLinux (rec {
|
2018-10-01 17:34:42 +02:00
|
|
|
mptcpVersion = "0.94.1";
|
|
|
|
modDirVersion = "4.14.70";
|
2015-11-17 09:48:31 +01:00
|
|
|
version = "${modDirVersion}-mptcp_v${mptcpVersion}";
|
2018-01-28 19:50:18 +01:00
|
|
|
# autoModules= true;
|
2015-11-17 09:48:31 +01:00
|
|
|
|
|
|
|
extraMeta = {
|
2017-09-07 03:29:36 +02:00
|
|
|
branch = "4.4";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ teto layus ];
|
2015-11-17 09:48:31 +01:00
|
|
|
};
|
|
|
|
|
2017-11-05 14:56:06 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "multipath-tcp";
|
|
|
|
repo = "mptcp";
|
|
|
|
rev = "v${mptcpVersion}";
|
2018-10-01 17:34:42 +02:00
|
|
|
sha256 = "13mi672jr1x463kzig1hi9cpdi8x6nqdfd4bqlrjn8zca48f4ln4";
|
2015-11-17 09:48:31 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
extraConfig = ''
|
|
|
|
IPV6 y
|
|
|
|
MPTCP y
|
|
|
|
IP_MULTIPLE_TABLES y
|
|
|
|
|
|
|
|
# Enable advanced path-managers...
|
|
|
|
MPTCP_PM_ADVANCED y
|
|
|
|
MPTCP_FULLMESH y
|
|
|
|
MPTCP_NDIFFPORTS y
|
|
|
|
# ... but use none by default.
|
|
|
|
# The default is safer if source policy routing is not setup.
|
|
|
|
DEFAULT_DUMMY y
|
2016-09-16 13:15:50 +02:00
|
|
|
DEFAULT_MPTCP_PM default
|
2015-11-17 09:48:31 +01:00
|
|
|
|
|
|
|
# MPTCP scheduler selection.
|
2018-04-26 12:39:03 +02:00
|
|
|
MPTCP_SCHED_ADVANCED y
|
2016-09-16 13:15:50 +02:00
|
|
|
DEFAULT_MPTCP_SCHED default
|
2015-11-17 09:48:31 +01:00
|
|
|
|
|
|
|
# Smarter TCP congestion controllers
|
|
|
|
TCP_CONG_LIA m
|
|
|
|
TCP_CONG_OLIA m
|
|
|
|
TCP_CONG_WVEGAS m
|
|
|
|
TCP_CONG_BALIA m
|
|
|
|
|
2017-09-15 23:07:14 +02:00
|
|
|
'' + (args.extraConfig or "");
|
2018-01-28 19:50:18 +01:00
|
|
|
} // args)
|