[systemd-devel] [PATCH] man: typos in systemd-network.xml regarding DHCP

Lennart Poettering mztabzr at 0pointer.de
Mon Feb 2 03:26:27 PST 2015


On Sat, 31.01.15 16:16, Brian Redbeard (redbeard at dead-city.org) wrote:

> In the systemd documentation for systemd.network units the
> [Network] section notes that for the option DHCP=:
> 
> DHCP=
> Enables DHCPv4 and/or DHCPv6 support. Accepts "yes", "no", "ipv4"
> or "ipv6".
> 
> In testing the options ipv4 and ipv6 are actually implemented as
> v4 and v6.  Additionally on the same page in Example 2 the sample is
> give:
> 
> [Network]
> DHCP=both
> 
> which is not referenced in the above option.

This is due to a recent change:
cb9fc36a1211967e8c58b0502a26c42552ac8060

Basically, the intention here is that options like this work as
"per-address-family booleans". i.e. they primarily parse as booleans,
but you can also assign them the special value "ipv4" and "ipv6",
which turns them on only for one of the two address families.

The old names for the options are still accepted for compat, but we
only document the new names, to make people use only the new names.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list