devip: fix default parameter calculation for router life-time

router life time is in seconds, while max ra interval is
in milliseconds!
This commit is contained in:
cinap_lenrek 2018-09-23 19:08:16 +02:00
parent 259ce5e3de
commit 4a92a8f6b2

View file

@ -59,7 +59,7 @@ ip_init_6(Fs *f)
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 */