interface: warn if ip6hint is truncated
authorUwe Kleine-König <uwe@kleine-koenig.org>
Wed, 20 Nov 2019 18:11:31 +0000 (19:11 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Fri, 29 Nov 2019 17:39:31 +0000 (18:39 +0100)
commite45b1408284c05984b38a910a1f0a07d6c761397
tree0e139fb4950259f0e79e2700812e6747f2b52bd7
parente15147c272201eb17320c10ec95919e641bd03c5
interface: warn if ip6hint is truncated

When for example a /60 is assigned to a network the last 4 bits of the
ip6hint are unused. Emit a warning if any of these unused bits is set as
it indicates that someone didn't understand how the hint is used. (As I
did earlier today resulting in spending some time understanding the
code.)

Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
interface.c