]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-link.c
networkd: rearrange checks when to write something into sysctl a bit
authorLennart Poettering <lennart@poettering.net>
Fri, 13 Nov 2015 11:32:38 +0000 (12:32 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 13 Nov 2015 12:02:50 +0000 (13:02 +0100)
commitd68e2e59b3103a2dd197401357dc619efa6e26db
tree38c0536c8628dd61ac5ebff180bc3e43ca7433d2
parent66a6bd68976a20449bfcae0c55853d497a3f9b27
networkd: rearrange checks when to write something into sysctl a bit

Move check whether ipv6 is available into link_ipv6_privacy_extensions()
to keep it as internal and early as possible.

Always check if there's a network attached to a link before we apply
sysctls. We do this for most of the sysctl functions already, with this
change we do it for all.
src/network/networkd-link.c