dhcpv6-ia: fix onlink IA check (FS#2060)
authorHans Dedecker <dedeckeh@gmail.com>
Wed, 16 Jan 2019 10:03:14 +0000 (11:03 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Wed, 16 Jan 2019 12:34:36 +0000 (13:34 +0100)
commitc70d5cf09d6277da474615cac5e532897cc93384
tree1ca746b0b1e90c66e3ca4a3df3faaed8c7056697
parent96694abe8093b06daf5d503d19e7cdcd62de03a5
dhcpv6-ia: fix onlink IA check (FS#2060)

Some DHCPv6 clients start sending SOLICIT messages without including either
an IA_NA or IA_PD and only start including an IA_NA or IA_PD in the REQUEST
message without including an IA_PREFIX or IA_ADDR as suboption. As a result
the check to verify if an IA_ADDR and/or IA_PREFIX is onlink fails.
Fix this by returning notonlink if an IA_PREFIX or IA_ADDR suboption is
present having an address/prefix not matching any of the addresses

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