odhcpd: add option for setting preferred lifetime
authorNick Hainke <vincent@systemli.org>
Sat, 2 Jan 2021 22:27:03 +0000 (23:27 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Sun, 3 Jan 2021 14:42:49 +0000 (15:42 +0100)
commit3bda90079ec5574ef469e2a7804808302f17769d
treea3a7e8ce9f1f25d211838631b31d587f9f293205
parentb75bcad7bd5fd03f64011a532b9960d78e4aac22
odhcpd: add option for setting preferred lifetime

"valid_lft" and "preferred_lft" are different. If the "preferred_lft"
is expired the prefix should be avoided in source prefix selection.
However, the interface is allowed to still receive downstream traffic.

preferred_lfetime:
  Limit for preferred lifetime of a prefix

If you want the old behavior, you have to set preferred_lifetime to
the same value as leasetime.

Signed-off-by: Nick Hainke <vincent@systemli.org>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
README
src/config.c
src/dhcpv6-ia.c
src/odhcpd.h
src/router.c