ref: 4a92a8f6b2502750a69e87d398ffb2f069103bf4
parent: 259ce5e3de215c1354c1f74924336adc83312850
author: cinap_lenrek <[email protected]>
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 */