]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-network.c
networkd: various fixes for the IPv6 privacy extensions support 496/head
authorLennart Poettering <lennart@poettering.net>
Mon, 6 Jul 2015 18:29:33 +0000 (20:29 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 6 Jul 2015 18:37:22 +0000 (20:37 +0200)
commit1f0d9695125bf8e66d0e53e37d454755a84899bb
tree4139a1be4c0b6c4612db785225f52640026e427c
parentf767522a65a03b164f30d6b9f089000ce5bcb730
networkd: various fixes for the IPv6 privacy extensions support

- Make sure that the IPv6PrivacyExtensions=yes results in
  prefer-temporary, not prefer-public.

- Introduce special enum value "kernel" to leave setting unset, similar
  how we have it for the IP forwarding settings.

- Bring the enum values in sync with the the strings we parse for them,
  to the level this makes sense (specifically, rename "disabled" to
  "no", and "prefer-temporary" to "yes").

- Make sure we really set the value to to "no" by default, the way it is
  already documented in the man page.

- Fix whitespace error.

- Make sure link_ipv6_privacy_extensions() actually returns the correct
  enum type, rather than implicitly casting it to "bool".

- properly size formatting buffer for ipv6 sysctl value

- Don't complain if /proc/sys isn't writable

- Document that the enum follows the kernel's own values (0 = off, 1 =
  prefer-public, 2 = prefer-temporary)

- Drop redundant negating of error code passed to log_syntax()

- Manpage fixes

This fixes a number of issues from PR #417
man/systemd.network.xml
src/network/networkd-link.c
src/network/networkd-network.c
src/network/networkd.h