diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-09-23 19:08:16 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-09-23 19:08:16 +0200 |
commit | 4a92a8f6b2502750a69e87d398ffb2f069103bf4 (patch) | |
tree | 3d75c677030a31fb35ef9c8bbbbb4a8c1482f24d | |
parent | 259ce5e3de215c1354c1f74924336adc83312850 (diff) |
devip: fix default parameter calculation for router life-time
router life time is in seconds, while max ra interval is
in milliseconds!
-rw-r--r-- | sys/src/9/ip/ip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/ip/ip.c b/sys/src/9/ip/ip.c index f1cd74c10..5be4bb5eb 100644 --- a/sys/src/9/ip/ip.c +++ b/sys/src/9/ip/ip.c @@ -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 */ |