PATCH: More appropriate vltime for IPv6 temp addrs (rfc4941bis)

Fernando Gont fernando at gont.com.ar
Fri Mar 27 11:37:59 UTC 2020


Folks,

This changes the default Valid Lifetime of IPv6 temporary addresses, as 
per draft-ietf-6man-rfc4941bis:

---- cut here ----
diff --git nd6.h nd6.h
index 857657f6e20..5254224afc0 100644
--- nd6.h
+++ nd6.h
@@ -185,7 +185,7 @@ struct	in6_ndifreq {
  #define RETRANS_TIMER			1000	/* msec */
  #define MIN_RANDOM_FACTOR		512	/* 1024 * 0.5 */
  #define MAX_RANDOM_FACTOR		1536	/* 1024 * 1.5 */
-#define DEF_TEMP_VALID_LIFETIME		604800	/* 1 week */
+#define DEF_TEMP_VALID_LIFETIME		172800	/* 2 days 
(draft-ietf-6man-rfc4941bis) */
  #define DEF_TEMP_PREFERRED_LIFETIME	86400	/* 1 day */
  #define TEMPADDR_REGEN_ADVANCE		5	/* sec */
  #define MAX_TEMP_DESYNC_FACTOR		600	/* 10 min */
---- cut here ----

P.S.: Patch also available at: 
https://www.gont.com.ar/code/patch-freebsd-ipv6-tempaddr-vltime.txt

Thanks,
-- 
Fernando Gont
e-mail: fernando at gont.com.ar || fgont at si6networks.com
PGP Fingerprint: 7809 84F5 322E 45C7 F1C9 3945 96EE A9EF D076 FFF1





More information about the freebsd-net mailing list