summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2025-11-30 17:44:48 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2025-11-30 17:44:48 +0100
commitc5fec3c9a36d69e85f5a04bdeb17775f746d49de (patch)
tree3328922e2f8e3bcf81d5536af4ccc2cef14c8bd1 /hosts
parent79f8998177079cafe66365e2a13fdd50f1fa9a0d (diff)
downloadnixos-c5fec3c9a36d69e85f5a04bdeb17775f746d49de.tar
nixos-c5fec3c9a36d69e85f5a04bdeb17775f746d49de.tar.gz
nixos-c5fec3c9a36d69e85f5a04bdeb17775f746d49de.tar.bz2
nixos-c5fec3c9a36d69e85f5a04bdeb17775f746d49de.tar.xz
nixos-c5fec3c9a36d69e85f5a04bdeb17775f746d49de.zip
Diffstat (limited to 'hosts')
-rw-r--r--hosts/vidhar/network/no-double-timeout.patch13
-rw-r--r--hosts/vidhar/network/pppoe.nix5
2 files changed, 18 insertions, 0 deletions
diff --git a/hosts/vidhar/network/no-double-timeout.patch b/hosts/vidhar/network/no-double-timeout.patch
new file mode 100644
index 00000000..53f41ae1
--- /dev/null
+++ b/hosts/vidhar/network/no-double-timeout.patch
@@ -0,0 +1,13 @@
1diff --git i/pppd/plugins/pppoe/discovery.c w/pppd/plugins/pppoe/discovery.c
2index 86bda61..8060558 100644
3--- i/pppd/plugins/pppoe/discovery.c
4+++ w/pppd/plugins/pppoe/discovery.c
5@@ -686,7 +686,7 @@ discovery1(PPPoEConnection *conn, int waitWholeTimeoutForPADO)
6 conn->discoveryState = STATE_SENT_PADI;
7 waitForPADO(conn, timeout, waitWholeTimeoutForPADO);
8
9- timeout *= 2;
10+ // timeout *= 2;
11 } while (conn->discoveryState == STATE_SENT_PADI);
12 }
13
diff --git a/hosts/vidhar/network/pppoe.nix b/hosts/vidhar/network/pppoe.nix
index d95922aa..6b4942a6 100644
--- a/hosts/vidhar/network/pppoe.nix
+++ b/hosts/vidhar/network/pppoe.nix
@@ -22,6 +22,11 @@ in {
22 22
23 services.pppd = { 23 services.pppd = {
24 enable = true; 24 enable = true;
25 package = pkgs.ppp.overrideAttrs (oldAttrs: {
26 patches = (oldAttrs.patches or []) ++ [
27 ./no-double-timeout.patch
28 ];
29 });
25 peers.telekom.config = '' 30 peers.telekom.config = ''
26 nodefaultroute 31 nodefaultroute
27 ifname ${pppInterface} 32 ifname ${pppInterface}