diff options
author | Tom Gundersen <teg@jklm.no> | 2015-11-13 14:18:32 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-11-13 14:18:32 +0100 |
commit | cf0f970fe1c6101b45cae8277c221c10398b8e1e (patch) | |
tree | 37f8ac193821e520a3c271be7685c06d79300e07 /src/network/networkd-util.c | |
parent | 7152869f0a4a4612022244064cc2b3905b1e3fc7 (diff) | |
parent | 765afd5c4dbc71940d6dd6007ecc3eaa5a0b2aa1 (diff) |
Merge pull request #1879 from poettering/networkd-forward
stop managing per-interface IP forwarding settings
Diffstat (limited to 'src/network/networkd-util.c')
-rw-r--r-- | src/network/networkd-util.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/network/networkd-util.c b/src/network/networkd-util.c index df091393f6..2545621a93 100644 --- a/src/network/networkd-util.c +++ b/src/network/networkd-util.c @@ -79,10 +79,18 @@ int config_parse_address_family_boolean_with_kernel( assert(rvalue); assert(data); + /* This function is mostly obsolete now. It simply redirects + * "kernel" to "no". In older networkd versions we used to + * distuingish IPForward=off from IPForward=kernel, where the + * former would explicitly turn off forwarding while the + * latter would simply not touch the setting. But that logic + * is gone, hence silently accept the old setting, but turn it + * to "no". */ + s = address_family_boolean_from_string(rvalue); if (s < 0) { if (streq(rvalue, "kernel")) - s = _ADDRESS_FAMILY_BOOLEAN_INVALID; + s = ADDRESS_FAMILY_NO; else { log_syntax(unit, LOG_ERR, filename, line, 0, "Failed to parse IPForward= option, ignoring: %s", rvalue); return 0; |