From 84b93c8b1c03379dcf3f76ddd29db4dcbb7cffcd Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 31 May 2024 00:22:43 +0200 Subject: nanopi: optimise routing --- system/nanopi.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/system/nanopi.nix b/system/nanopi.nix index cc8ba062..18e9a647 100755 --- a/system/nanopi.nix +++ b/system/nanopi.nix @@ -347,6 +347,7 @@ in }; dhcpV4Config = { UseDNS = false; + UseRoutes = false; SendHostname = false; SendRelease = false; UseHostname = false; @@ -362,6 +363,7 @@ in }; ipv6AcceptRAConfig = { UseDNS = false; + UseGateway = false; }; addresses = [ { @@ -373,6 +375,24 @@ in }; } ]; + routes = [ + { + routeConfig = { + Gateway = "_dhcp4"; + QuickAck = true; + InitialCongestionWindow = 30; + InitialAdvertisedReceiveWindow = 30; + }; + } + { + routeConfig = { + Gateway = "_ipv6ra"; + QuickAck = true; + InitialCongestionWindow = 30; + InitialAdvertisedReceiveWindow = 30; + }; + } + ]; cakeConfig = { Bandwidth = "24M"; OverheadBytes = 18; -- cgit 1.4.1