]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-link.c
networkd: stop managing per-interface IP forwarding settings 1879/head
authorLennart Poettering <lennart@poettering.net>
Fri, 13 Nov 2015 11:49:15 +0000 (12:49 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 13 Nov 2015 12:02:50 +0000 (13:02 +0100)
commit765afd5c4dbc71940d6dd6007ecc3eaa5a0b2aa1
treef3572c54479d2c8cfa15b1fdded1b48225b12f13
parentd68e2e59b3103a2dd197401357dc619efa6e26db
networkd: stop managing per-interface IP forwarding settings

As it turns out the kernel does not support per-interface IPv6 packet
forwarding controls (unlike as it does for IPv4), but only supports a
global option (#1597). Also, the current per-interface management of the
setting isn't really useful, as you want it to propagate to at least one
more interface than the one you configure it on. This created much grief
(#1411, #1808).

Hence, let's roll this logic back and simplify this again, so that we
can expose the same behaviour on IPv4 and IPv6 and things start to work
automatically again for most folks: if a network with this setting set
is set up we propagate the setting into the global setting, but this is
strictly one-way: we never reset it again, and we do nothing for network
interfaces where this setting is not enabled.

Fixes: #1808, #1597.
man/systemd.network.xml
src/network/networkd-link.c
src/network/networkd-util.c