mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
0828e2d8c3
Want to get this out of here for 18.09, so it can be deprecated thereafter.
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{ stdenv, buildPackages, fetchFromGitHub, perl, buildLinux, ... } @ args:
|
|
|
|
buildLinux (rec {
|
|
mptcpVersion = "0.94";
|
|
modDirVersion = "4.14.24";
|
|
version = "${modDirVersion}-mptcp_v${mptcpVersion}";
|
|
# autoModules= true;
|
|
|
|
extraMeta = {
|
|
branch = "4.4";
|
|
maintainers = with stdenv.lib.maintainers; [ teto layus ];
|
|
};
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "multipath-tcp";
|
|
repo = "mptcp";
|
|
rev = "v${mptcpVersion}";
|
|
sha256 = "01y3jf5awdxcv6vfpr30n0vaa8w1wgip0whiv88d610550299hkv";
|
|
};
|
|
|
|
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
|
|
DEFAULT_MPTCP_PM default
|
|
|
|
# MPTCP scheduler selection.
|
|
MPTCP_SCHED_ADVANCED y
|
|
DEFAULT_MPTCP_SCHED default
|
|
|
|
# Smarter TCP congestion controllers
|
|
TCP_CONG_LIA m
|
|
TCP_CONG_OLIA m
|
|
TCP_CONG_WVEGAS m
|
|
TCP_CONG_BALIA m
|
|
|
|
'' + (args.extraConfig or "");
|
|
} // args)
|