Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[todo] packages: fix uradvd ip lifetime patch #101

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

s-2
Copy link
Contributor

@s-2 s-2 commented Oct 19, 2023

drop uradvd patch to fix nightly build

uradvd is now built from openwrt package feeds and somehow needs to be patched there
freifunk-gluon/packages@72efd36

fixes build since package is now built from
openwrt package feeds (and needs to be patched there)
@Kistelini
Copy link

Kistelini commented Jan 13, 2024

Here's a patch that applies

From: lemoer <[email protected]>
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 <[email protected]>
+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 <[email protected]>
++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
+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants