network: use scope link for direct unicast routes by default
Strictly speaking, this breaks the backward compatibility, but I guess in most cases people already sets Scope=link for such routes. This behavior matches with how 'ip route' command adds such route by default. Prompted by https://twitter.com/jplitza/status/1480500562391179270.
This commit is contained in:
committed by
Luca Boccassi
parent
fad7ad2b8b
commit
902bbdc4b6
@@ -1547,9 +1547,9 @@ Table=1234</programlisting></para>
|
||||
|
||||
<para>For IPv4 route, defaults to <literal>host</literal> if <varname>Type=</varname> is
|
||||
<literal>local</literal> or <literal>nat</literal>, and <literal>link</literal> if
|
||||
<varname>Type=</varname> is <literal>broadcast</literal>, <literal>multicast</literal>, or
|
||||
<literal>anycast</literal>. In other cases, defaults to <literal>global</literal>. The value
|
||||
is not used for IPv6.</para>
|
||||
<varname>Type=</varname> is <literal>broadcast</literal>, <literal>multicast</literal>,
|
||||
<literal>anycast</literal>, or direct <literal>unicast</literal> routes. In other cases,
|
||||
defaults to <literal>global</literal>. The value is not used for IPv6.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user