]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd-network/dhcp6-internal.h
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)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 29 Sep 2021 06:18:59 +0000 (15:18 +0900)
commitb89a3758e92894162e3c2dcb594a55acff3274d5
treee5e3bf102089e286e58f9728ac0901f192f6df04
parentdc95e21d33708e807d3e5872af428383aac3f9b7
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.
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