2017-06-28 21:32:25 +01:00
|
|
|
{ stdenv, hostPlatform, fetchurl, perl, buildLinux, ... } @ args:
|
2015-11-17 08:48:31 +00:00
|
|
|
|
|
|
|
import ./generic.nix (args // rec {
|
2017-03-23 21:35:28 +00:00
|
|
|
mptcpVersion = "0.91.3";
|
|
|
|
modDirVersion = "4.1.38";
|
2015-11-17 08:48:31 +00:00
|
|
|
version = "${modDirVersion}-mptcp_v${mptcpVersion}";
|
|
|
|
|
|
|
|
extraMeta = {
|
2016-08-12 14:14:24 +01:00
|
|
|
branch = "4.1";
|
2016-11-20 17:05:18 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.layus ];
|
2015-11-17 08:48:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/multipath-tcp/mptcp/archive/v${mptcpVersion}.tar.gz";
|
2017-03-23 21:35:28 +00:00
|
|
|
sha256 = "0vqjnkzcbbvyq24w3cryfmw7hhws1xqkkxqcv71szkbqqs6mcr14";
|
2015-11-17 08:48:31 +00: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 12:15:50 +01:00
|
|
|
DEFAULT_MPTCP_PM default
|
2015-11-17 08:48:31 +00:00
|
|
|
|
|
|
|
# MPTCP scheduler selection.
|
|
|
|
# Disabled as the only non-default is the useless round-robin.
|
|
|
|
MPTCP_SCHED_ADVANCED n
|
2016-09-16 12:15:50 +01:00
|
|
|
DEFAULT_MPTCP_SCHED default
|
2015-11-17 08:48:31 +00:00
|
|
|
|
|
|
|
# Smarter TCP congestion controllers
|
|
|
|
TCP_CONG_LIA m
|
|
|
|
TCP_CONG_OLIA m
|
|
|
|
TCP_CONG_WVEGAS m
|
|
|
|
TCP_CONG_BALIA m
|
|
|
|
|
2017-09-15 22:07:14 +01:00
|
|
|
'' + (args.extraConfig or "");
|
2015-11-17 08:48:31 +00:00
|
|
|
} // (args.argsOverride or {}))
|