dhcpv6-ia: introduce DHCPv6 pd and ia assignments flags
authorHans Dedecker <dedeckeh@gmail.com>
Thu, 2 Jan 2020 17:26:51 +0000 (18:26 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Thu, 2 Jan 2020 19:51:56 +0000 (20:51 +0100)
commit2520c483781339f6c7feae617b7e5c0137e3534d
tree805f52277c9a8b46feceb179dcd2ddd8634f6a1a
parentb413d8a13ad8d8bdc2e5bc700e9bae9b31232779
dhcpv6-ia: introduce DHCPv6 pd and ia assignments flags

Simplify the code by using specific flags which identify the assignment
either as a DHCPv6 PD or NA assignment. This allows to remove implicit
checks for PD and NA assignments based on the value of the assignment
length parameter.

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