dhcpv6: rework option passthrough logic
authorHans Dedecker <dedeckeh@gmail.com>
Tue, 16 Jan 2018 12:16:09 +0000 (13:16 +0100)
committerHans Dedecker <dedeckeh@gmail.com>
Tue, 16 Jan 2018 14:17:01 +0000 (15:17 +0100)
commit1f93bd4c6d267813d1bbe803358499050c47bdeb
treec8e816a2a60df14bb7a6907490c90cdb8e3059e4
parenta477e955b41d2e18ad402e91603bdf0d108490e7
dhcpv6: rework option passthrough logic

Options are not added to the passthru state depending on the option code
check. Rework this logic by defining the flag OPT_NO_PASSTHRU which is set
for options in the opts table; when constructing the passthru state the
option is added if the flag is not set.

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