]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-util.c
network: warn when any positive boolean string is specified for IPMasquerade= 18646/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 17 Feb 2021 07:17:37 +0000 (16:17 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 19 Feb 2021 05:24:10 +0000 (14:24 +0900)
commit4c72d851cd007e945a85811f89376a2675daa1a5
treef4ee0529a5fad7a1d0352cd0d498a385fd97fb24
parentda0e2baea3145f1ec66182a503812ecefc263fc4
network: warn when any positive boolean string is specified for IPMasquerade=

Previously, any positive boolean string for IPMasquerade= enables only IPv4
masquerade. The commit 48ed276647c754bfb3ed5c6c5af9404e073ffe54 adds
IPv6 masquerade support. However, only "yes" is handled as "ipv4", and other
positive boolean strings are handled as "both".

This makes all positive boolean strings considered as "ipv4", warn that they
are deprecated, and suggest to use "ipv4" or "both".

Follow-up for 48ed276647c754bfb3ed5c6c5af9404e073ffe54.
man/systemd.network.xml
src/network/networkd-network-gperf.gperf
src/network/networkd-util.c
src/network/networkd-util.h