2015-11-17 08:48:31 +00:00
|
|
|
{ stdenv, fetchurl, perl, buildLinux, ... } @ args:
|
|
|
|
|
|
|
|
import ./generic.nix (args // rec {
|
2016-11-07 13:15:33 +00:00
|
|
|
mptcpVersion = "0.91.2";
|
|
|
|
modDirVersion = "4.1.35";
|
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";
|
2016-11-07 13:15:33 +00:00
|
|
|
sha256 = "1jfxycg8i99ry2cr2ksarvqjzlr46sp192wkpb4sb2mynbzf3dmk";
|
2015-11-17 08:48:31 +00:00
|
|
|
};
|
|
|
|
|
2016-08-12 14:14:24 +01:00
|
|
|
kernelPatches = args.kernelPatches;
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
features.iwlwifi = true;
|
|
|
|
features.efiBootStub = true;
|
|
|
|
features.needsCifsUtils = true;
|
|
|
|
features.netfilterRPFilter = true;
|
|
|
|
} // (args.argsOverride or {}))
|