sd-dhcp6-client: modernize dhcp6_option_parse()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 23 Sep 2021 05:58:28 +0000 (14:58 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 11 Jan 2022 17:17:52 +0000 (18:17 +0100)
commit1cc074167fd29c6c8c9dc5d7fd6c38e4dd91ca71
treef3bc2cb066a4f24b5ea8207a9fe351df55b70c67
parentd3f99205f84172f6f9e41061a5aa9414eccf3571
sd-dhcp6-client: modernize dhcp6_option_parse()

- merge dhcp6_option_parse() with option_parse_hdr().
- do not assign/update any values on error.
- use assert() instead of assert_return(), as the assertions cannot
  be triggered by a library user.

(cherry picked from commit b89a3758e92894162e3c2dcb594a55acff3274d5)
src/libsystemd-network/dhcp6-internal.h
src/libsystemd-network/dhcp6-option.c
src/libsystemd-network/sd-dhcp6-lease.c
src/libsystemd-network/test-dhcp6-client.c