dhcpv6-ia: fix logic to include IA_PD prefix with lifetimes set to 0
authorHans Dedecker <dedeckeh@gmail.com>
Thu, 24 Dec 2020 15:08:58 +0000 (16:08 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Thu, 24 Dec 2020 15:25:59 +0000 (16:25 +0100)
commitd1ae052e5b2c928648002906546a9652b6dfd9b4
tree2f85745a943d3b6cc1fb5560a08a0c9df49c0ac5
parent9d5e37912820443492f87f07fb68edeed206c044
dhcpv6-ia: fix logic to include IA_PD prefix with lifetimes set to 0

Make sure IA_PD prefixes for which no preferred and valid lifetimes
can be returned are included in the reply with a preferred and valid
lifetime to 0.
Therefore exclude IPv6 prefixes with an invalid prefix length as
well so IA_PD prefixes for which not a preferred/valid lifetime is
returned are included with a preferred and valid lifetime set to 0

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