git: 9front

Download patch

ref: bf23953b6c591fccd872e7033abe3fd55cec7d8d
parent: 47bd30177d81deae58937e14c7507b63d2254f8a
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Sep 23 15:08:16 EDT 2018

devip: fix default parameter calculation for router life-time

router life time is in seconds, while max ra interval is
in milliseconds!

--- a/sys/src/9/ip/ip.c
+++ b/sys/src/9/ip/ip.c
@@ -59,7 +59,7 @@
 	v6p->rp.reachtime	= 0;
 	v6p->rp.rxmitra		= 0;
 	v6p->rp.ttl		= MAXTTL;
-	v6p->rp.routerlt	= 3 * v6p->rp.maxraint;
+	v6p->rp.routerlt	= (3 * v6p->rp.maxraint) / 1000;
 
 	v6p->hp.rxmithost	= 1000;		/* v6 RETRANS_TIMER */
 
--