diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-11-30 17:22:35 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-11-30 17:22:35 +0100 |
| commit | e0f22fde1b5243acefa7e16db83bf6feb3d8039e (patch) | |
| tree | bb863635b8ffb243fc5f06d07670e728b30c215d | |
| parent | 213af309ab7e03be502d59d71e26298e6008e5b4 (diff) | |
| download | nixos-e0f22fde1b5243acefa7e16db83bf6feb3d8039e.tar nixos-e0f22fde1b5243acefa7e16db83bf6feb3d8039e.tar.gz nixos-e0f22fde1b5243acefa7e16db83bf6feb3d8039e.tar.bz2 nixos-e0f22fde1b5243acefa7e16db83bf6feb3d8039e.tar.xz nixos-e0f22fde1b5243acefa7e16db83bf6feb3d8039e.zip | |
...flakes-bump
| -rw-r--r-- | hosts/vidhar/network/pppoe.nix | 2 | ||||
| -rw-r--r-- | overlays/pppd/default.nix | 8 | ||||
| -rw-r--r-- | overlays/pppd/no-double-timeout.patch | 13 |
3 files changed, 22 insertions, 1 deletions
diff --git a/hosts/vidhar/network/pppoe.nix b/hosts/vidhar/network/pppoe.nix index a891e269..d95922aa 100644 --- a/hosts/vidhar/network/pppoe.nix +++ b/hosts/vidhar/network/pppoe.nix | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | with lib; | 3 | with lib; |
| 4 | 4 | ||
| 5 | let | 5 | let |
| 6 | pppInterface = config.networking.pppInterface; | 6 | inherit (config.networking) pppInterface; |
| 7 | in { | 7 | in { |
| 8 | options = { | 8 | options = { |
| 9 | networking.pppInterface = mkOption { | 9 | networking.pppInterface = mkOption { |
diff --git a/overlays/pppd/default.nix b/overlays/pppd/default.nix new file mode 100644 index 00000000..3c84af4c --- /dev/null +++ b/overlays/pppd/default.nix | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | { final, prev, ... }: | ||
| 2 | { | ||
| 3 | pppd = prev.pppd.overrideAttrs (oldAttrs: { | ||
| 4 | patches = (oldAttrs.patches or []) ++ [ | ||
| 5 | ./no-double-timeout.patch | ||
| 6 | ]; | ||
| 7 | }); | ||
| 8 | } | ||
diff --git a/overlays/pppd/no-double-timeout.patch b/overlays/pppd/no-double-timeout.patch new file mode 100644 index 00000000..53f41ae1 --- /dev/null +++ b/overlays/pppd/no-double-timeout.patch | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | diff --git i/pppd/plugins/pppoe/discovery.c w/pppd/plugins/pppoe/discovery.c | ||
| 2 | index 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 | |||
