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