router: don't announce prefixes with valid lifetime equal to 0
authorHans Dedecker <dedeckeh@gmail.com>
Tue, 21 Feb 2017 08:54:36 +0000 (09:54 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Tue, 21 Feb 2017 09:58:56 +0000 (10:58 +0100)
commit1b630f8bc59978884c9caccebca3b6d8e9b045a1
tree68e85c4119636646406a3b7c8871e9d554fafe41
parentba0cac09cc22c911c1c20c2947dd23f795599627
router: don't announce prefixes with valid lifetime equal to 0

Don't set prefix valid lifetime to 0 in case the preferred lifetime
equals 0 and valid lifetime gets smaller than 7200.
In corner cases it leads to router lifetime being set although no
prefixes are announced with a valid lifetime different from 0.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/router.c