mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 14:41:17 +00:00
8525b78d05
`kernel.override { features = ... }` didn't work before, now it works as expected.
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{ stdenv, hostPlatform, fetchurl, perl, buildLinux, ... } @ args:
|
|
|
|
import ./generic.nix (args // rec {
|
|
mptcpVersion = "0.91.3";
|
|
modDirVersion = "4.1.38";
|
|
version = "${modDirVersion}-mptcp_v${mptcpVersion}";
|
|
|
|
extraMeta = {
|
|
branch = "4.1";
|
|
maintainers = [ stdenv.lib.maintainers.layus ];
|
|
};
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/multipath-tcp/mptcp/archive/v${mptcpVersion}.tar.gz";
|
|
sha256 = "0vqjnkzcbbvyq24w3cryfmw7hhws1xqkkxqcv71szkbqqs6mcr14";
|
|
};
|
|
|
|
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.
|
|
# Disabled as the only non-default is the useless round-robin.
|
|
MPTCP_SCHED_ADVANCED n
|
|
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.argsOverride or {}))
|