summaryrefslogtreecommitdiffhomepage
path: root/src/router.h
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2015-07-15 08:56:53 +0200
committerSteven Barth <steven@midlink.org>2015-07-15 08:56:53 +0200
commit9f96f988e2c3a0519bef59535e15ad9c176aa254 (patch)
tree1a801107124e810509b93658efcc9f4177a82693 /src/router.h
parentd0ca3022a4041e7232587b024ebfaadbe2c095cc (diff)
router: fixup RA lifetime calculation
Diffstat (limited to 'src/router.h')
-rw-r--r--src/router.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/router.h b/src/router.h
index db8ab9d..720490d 100644
--- a/src/router.h
+++ b/src/router.h
@@ -30,8 +30,8 @@ struct icmpv6_opt {
(void*)(opt + opt->len) <= (void*)(end); opt += opt->len)
-#define MaxRtrAdvInterval 1800
#define MaxValidTime 65535
+#define MaxRtrAdvInterval (MaxValidTime / 3)
#define ND_RA_FLAG_PROXY 0x4
#define ND_RA_PREF_HIGH (1 << 3)