summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-05-31 00:22:43 +0200
committerAlan Pearce2024-05-31 00:22:43 +0200
commit84b93c8b1c03379dcf3f76ddd29db4dcbb7cffcd (patch)
tree31b52d4967dfd89eb48bc45d962f8f056156e8be
parentc71113f92994c4174bfdb191e8a5123e1fa60e40 (diff)
downloadnixfiles-84b93c8b1c03379dcf3f76ddd29db4dcbb7cffcd.tar.lz
nixfiles-84b93c8b1c03379dcf3f76ddd29db4dcbb7cffcd.tar.zst
nixfiles-84b93c8b1c03379dcf3f76ddd29db4dcbb7cffcd.zip
nanopi: optimise routing
-rwxr-xr-xsystem/nanopi.nix20
1 files changed, 20 insertions, 0 deletions
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;