Open s-2 opened 10 months ago
Here's a patch that applies
From: lemoer <git@irrelefant.net>
Date: Sat, 13 Jan 2024 19:02:00 +0100
Subject: patches: uradvd: change ip lifetimes to 150/300 seconds
diff --git a/patches/packages/packages/0002-uradvd-change-ip-lifetimes-to-150-300-seconds.patch b/patches/packages/packages/0002-uradvd-change-ip-lifetimes-to-150-300-seconds.patch
new file mode 100644
index 0000000000000000000000000000000000000000..363c37c59f9e0a2e5312fb970d1c16e13b6404d4
--- /dev/null
+++ b/patches/packages/packages/0002-uradvd-change-ip-lifetimes-to-150-300-seconds.patch
@@ -0,0 +1,54 @@
+From be65907a271e13d24b0b8004a9a084e4a621c2ee Mon Sep 17 00:00:00 2001
+From: lemoer <git@irrelefant.net>
+Date: Sat, 13 Jan 2024 18:57:09 +0100
+Subject: [PATCH] uradvd: change ip lifetimes to 150/300 seconds
+
+---
+ ...ange-ip-lifetimes-to-150-300-seconds.patch | 35 +++++++++++++++++++
+ 1 file changed, 35 insertions(+)
+ create mode 100644 net/uradvd/patches/0001-change-ip-lifetimes-to-150-300-seconds.patch
+
+diff --git a/net/uradvd/patches/0001-change-ip-lifetimes-to-150-300-seconds.patch b/net/uradvd/patches/0001-change-ip-lifetimes-to-150-300-seconds.patch
+new file mode 100644
+index 000000000..a1553845a
+--- /dev/null
++++ b/net/uradvd/patches/0001-change-ip-lifetimes-to-150-300-seconds.patch
+@@ -0,0 +1,35 @@
++From 59633e950ffcc83ab1abcd9d8766a40c0fe274c5 Mon Sep 17 00:00:00 2001
++From: lemoer <git@irrelefant.net>
++Date: Sat, 13 Jan 2024 18:56:27 +0100
++Subject: [PATCH] change ip lifetimes to 150/300 seconds
++
++---
++ uradvd.c | 8 ++++----
++ 1 file changed, 4 insertions(+), 4 deletions(-)
++
++diff --git a/uradvd.c b/uradvd.c
++index 44e6139..96102a1 100644
++--- a/uradvd.c
+++++ b/uradvd.c
++@@ -42,14 +42,14 @@
++ #define MAX_RDNSS 3
++
++ /* These are in seconds */
++-#define AdvValidLifetime 86400u
++-#define AdvPreferredLifetime 14400u
+++#define AdvValidLifetime 300u
+++#define AdvPreferredLifetime 150u
++ #define AdvDefaultLifetime 0u
++ #define AdvCurHopLimit 64u
++ #define AdvRDNSSLifetime 1200u
++
++-#define MinRtrAdvInterval 200u
++-#define MaxRtrAdvInterval 600u
+++#define MinRtrAdvInterval 75u
+++#define MaxRtrAdvInterval 150u
++
++ /* And these in milliseconds */
++ #define MAX_RA_DELAY_TIME 500u
++--
++2.43.0
++
+--
+2.43.0
+
drop uradvd patch to fix nightly build
uradvd
is now built from openwrt package feeds and somehow needs to be patched there https://github.com/freifunk-gluon/packages/commit/72efd369ed3f05014656cc298e0cf3d93fff0b06