router: move pref64 calculations to the config stage
authorDavid Härdeman <david@hardeman.nu>
Sat, 10 Feb 2024 02:35:04 +0000 (03:35 +0100)
committerdedeckeh <dedeckeh@gmail.com>
Mon, 30 Dec 2024 19:44:26 +0000 (20:44 +0100)
commit5585b969c18f84bd3bb7d02a0034c19ebae79e79
treec9d7ec430d93e337b242763b172d01c258784530
parent171140e90b6a6a8e0c9e8e12dc5cbd4cbe972bef
router: move pref64 calculations to the config stage

If pref64 is misconfigured, it'll print a LOG_WARNING message every time a RA
is generated, which seems a bit excessive.

When fixing that, I noticed that all work is done for every RA, so I ended up
moving the gist over to the config stage where it is done once.

Signed-off-by: David Härdeman <david@hardeman.nu>
src/config.c
src/odhcpd.h
src/router.c