Skip to content

Commit

Permalink
networkd: Correct documentation for LinkLocalAddressing
Browse files Browse the repository at this point in the history
LinkLocalAddressing accepts a boolean. This can be seen by looking at
`link_local_address_family_from_strong(cont char *s)` in
`src/network/netword-util.c#L102-108` which falls back to
`address_family_from_string`, defined two lines above (L100)
using `DEFINE_STRING_TABLE_LOOKUP_WITH_BOOLEAN`.
  • Loading branch information
Geod24 authored and bluca committed Apr 27, 2024
1 parent eb1ec9c commit 07b6924
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions man/systemd.network.xml
Original file line number Diff line number Diff line change
Expand Up @@ -444,13 +444,12 @@
<varlistentry>
<term><varname>LinkLocalAddressing=</varname></term>
<listitem>
<para>Enables link-local address autoconfiguration. Accepts <option>yes</option>,
<option>no</option>, <option>ipv4</option>, and <option>ipv6</option>. An IPv6 link-local
address is configured when <option>yes</option> or <option>ipv6</option>. An IPv4 link-local
address is configured when <option>yes</option> or <option>ipv4</option> and when DHCPv4
autoconfiguration has been unsuccessful for some time. (IPv4 link-local address
autoconfiguration will usually happen in parallel with repeated attempts to acquire a DHCPv4
lease).</para>
<para>Enables link-local address autoconfiguration. Accepts a boolean, <option>ipv4</option>,
and <option>ipv6</option>. An IPv6 link-local address is configured when <option>yes</option>
or <option>ipv6</option>. An IPv4 link-local address is configured when <option>yes</option>
or <option>ipv4</option> and when DHCPv4 autoconfiguration has been unsuccessful for some time.
(IPv4 link-local address autoconfiguration will usually happen in parallel with repeated attempts
to acquire a DHCPv4 lease).</para>

<para>Defaults to <option>no</option> when <varname>KeepMaster=</varname> or
<varname>Bridge=</varname> is set or when the specified
Expand Down

0 comments on commit 07b6924

Please sign in to comment.