Skip to contentSkip to conversation

ipv6: addrconf: reduce default temp_valid_lft to 2 days

PATCH Superseded Fernando Fernandez Mancera 4 participants 8 messages Feb 11 – Feb 15

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipv6: addrconf: reduce default temp_valid_lft to 2 days

This is a recommendation from RFC 8981 and it was intended to be changed by commit 969c54646af0 ("ipv6: Implement draft-ietf-6man-rfc4941bis") but it only changed the sysctl documentation.

Fixes 969c54646af0 ("ipv6: Implement draft-ietf-6man-rfc4941bis")
---
 include/net/addrconf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/net/addrconf.h +1 -1
index 78e8b877fb25..e9511df721c6 100644
@@ -8,7 +8,7 @@
 
 #define MIN_VALID_LIFETIME		(2*3600)	/* 2 hours */
 
-#define TEMP_VALID_LIFETIME		(7*86400)       /* 1 week */
+#define TEMP_VALID_LIFETIME		(2*86400)       /* 2 days */
 #define TEMP_PREFERRED_LIFETIME		(86400)         /* 24 hours */
 #define REGEN_MIN_ADVANCE		(2)             /* 2 seconds */
 #define REGEN_MAX_RETRY			(3)
Signature · 1 line
2.52.0
#2 lore raw
Quoted 10 lines · Simon Horman
Quoted 6 lines · Fernando Fernandez Mancera

This is a recommendation from RFC 8981 and it was intended to be changed by commit 969c54646af0 ("ipv6: Implement draft-ietf-6man-rfc4941bis") but it only changed the sysctl documentation.

Fixes 969c54646af0 ("ipv6: Implement draft-ietf-6man-rfc4941bis")

I would recommend adding a comment, because final RFC states "TEMP_VALID_LIFETIME -- Default value: 1 week. Users should be able to override the default value.

https://datatracker.ietf.org/doc/html/rfc4941#section-5

So... do we still need a different value in linux, and why ?

#3 lore raw
Quoted 13 lines · Eric Dumazet
Quoted 10 lines · Simon Horman
Quoted 6 lines · Fernando Fernandez Mancera

This is a recommendation from RFC 8981 and it was intended to be changed by commit 969c54646af0 ("ipv6: Implement draft-ietf-6man-rfc4941bis") but it only changed the sysctl documentation.

Fixes 969c54646af0 ("ipv6: Implement draft-ietf-6man-rfc4941bis")
Quoted 8 lines

I would recommend adding a comment, because final RFC states "TEMP_VALID_LIFETIME -- Default value: 1 week. Users should be able to override the default value.

https://datatracker.ietf.org/doc/html/rfc4941#section-5

So... do we still need a different value in linux, and why ?

RFC 8981 obsoletes RFC 4941, the new RFC states
"TEMP_VALID_LIFETIME -- Default value: 2 days. Users should be able to override the default value."

https://datatracker.ietf.org/doc/html/rfc8981#section-3.8

I didn't include the reasoning because it was already on the blamed commit which comes from the RFC 8981 too.

https://datatracker.ietf.org/doc/html/rfc8981#section-4

Anyway, I am fine adding a comment or mentioning it on the commit message if needed.

Thanks,
Fernando.

#4 lore raw
Quoted 26 lines · Fernando Fernandez Mancera
Quoted 13 lines · Eric Dumazet
Quoted 10 lines · Simon Horman
Quoted 6 lines · Fernando Fernandez Mancera

This is a recommendation from RFC 8981 and it was intended to be changed by commit 969c54646af0 ("ipv6: Implement draft-ietf-6man-rfc4941bis") but it only changed the sysctl documentation.

Fixes 969c54646af0 ("ipv6: Implement draft-ietf-6man-rfc4941bis")
Quoted 8 lines

I would recommend adding a comment, because final RFC states "TEMP_VALID_LIFETIME -- Default value: 1 week. Users should be able to override the default value.

https://datatracker.ietf.org/doc/html/rfc4941#section-5

So... do we still need a different value in linux, and why ?

RFC 8981 obsoletes RFC 4941, the new RFC states
"TEMP_VALID_LIFETIME -- Default value: 2 days. Users should be able to override the default value."

Quoted 8 lines

https://datatracker.ietf.org/doc/html/rfc8981#section-3.8

I didn't include the reasoning because it was already on the blamed commit which comes from the RFC 8981 too.

https://datatracker.ietf.org/doc/html/rfc8981#section-4

Anyway, I am fine adding a comment or mentioning it on the commit message if needed.

I noticed the patch is marked as "Changes Requested", is there some action pending from me?

Thanks,
Fernando.

#5 lore raw
Quoted 2 lines · Fernando Fernandez Mancera

I noticed the patch is marked as "Changes Requested", is there some action pending from me?

Quite confusing. The blamed commit mentioned RFC 4941

commit 969c54646af0d7d94a5f0f37adbbfe024e85466e

Author: Fernando Gont <[email protected]>
Date:   Fri May 1 00:51:47 2020 -0300

ipv6: Implement draft-ietf-6man-rfc4941bis

So please add a comment like this one ?

/* TEMP_VALID_LIFETIME default value as specified in RFC 8981 3.8 */

Thank you.

#6 lore raw
Quoted 9 lines · Eric Dumazet
Quoted 2 lines · Fernando Fernandez Mancera

I noticed the patch is marked as "Changes Requested", is there some action pending from me?

Quite confusing. The blamed commit mentioned RFC 4941

commit 969c54646af0d7d94a5f0f37adbbfe024e85466e

Quoted 9 lines
Author: Fernando Gont <[email protected]>
Date:   Fri May 1 00:51:47 2020 -0300

ipv6: Implement draft-ietf-6man-rfc4941bis

So please add a comment like this one ?

/* TEMP_VALID_LIFETIME default value as specified in RFC 8981 3.8 */

Sure, I will. FWIW, the blamed commit mentioned the draft revision for RFC 4941, but at that time, being a draft, it did not have an appropriate RFC number assigned to it.

Thanks Eric.

#7 lore raw
Quoted 13 lines · Fernando Fernandez Mancera
Quoted 12 lines · Eric Dumazet
Quoted 2 lines · Fernando Fernandez Mancera

I noticed the patch is marked as "Changes Requested", is there some action pending from me?

Quite confusing. The blamed commit mentioned RFC 4941

commit 969c54646af0d7d94a5f0f37adbbfe024e85466e
Author: Fernando Gont <[email protected]>
Date:   Fri May 1 00:51:47 2020 -0300

Quoted 8 lines
Quoted 6 lines

     ipv6: Implement draft-ietf-6man-rfc4941bis

So please add a comment like this one ?

/* TEMP_VALID_LIFETIME default value as specified in RFC 8981 3.8 */

Sure, I will. FWIW, the blamed commit mentioned the draft revision for RFC 4941, but at that time, being a draft, it did not have an appropriate RFC number assigned to it.

Note: the commit referenced the right filename: IETF draft draft-ietf-6man-rfc4941bis. -- IETF drafts that are meant to revise an existing RFC codify such RFC number in the filename (e.g., this draft had "rfc4941bis" in the filename because, when published as an RFC, it would formally revise RFC4941).

Thanks,

Signature · 4 lines
Fernando Gont
SI6 Networks
e-mail: [email protected]
PGP Fingerprint: F242 FF0E A804 AF81 EB10 2F07 7CA1 321D 663B B494