mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-07 17:17:44 +03:00
networkd: vxlan require Remote= to be a non multicast address (#8117)
Remote= must be a non multicast address. ip-link(8) says: > remote IPADDR - specifies the unicast destination IP address to > use in outgoing packets when the destination link layer address > is not known in the VXLAN device forwarding database. Closes #8088. (cherry picked from commitbf443be995
) (cherry picked from commit064feb8260
)
This commit is contained in:
parent
0493b46ef0
commit
7ab1c7435a
@ -507,7 +507,7 @@
|
||||
<varlistentry>
|
||||
<term><varname>Remote=</varname></term>
|
||||
<listitem>
|
||||
<para>Configures destination multicast group IP address.</para>
|
||||
<para>Configures destination IP address.</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
<varlistentry>
|
||||
|
@ -197,7 +197,7 @@ int config_parse_vxlan_address(const char *unit,
|
||||
|
||||
r = in_addr_is_multicast(f, &buffer);
|
||||
|
||||
if (STR_IN_SET(lvalue, "Group", "Remote")) {
|
||||
if (streq(lvalue, "Group")) {
|
||||
if (r <= 0) {
|
||||
log_syntax(unit, LOG_ERR, filename, line, 0, "vxlan invalid multicast '%s' address, ignoring assignment: %s", lvalue, rvalue);
|
||||
return 0;
|
||||
@ -210,7 +210,10 @@ int config_parse_vxlan_address(const char *unit,
|
||||
return 0;
|
||||
}
|
||||
|
||||
v->local_family = f;
|
||||
if (streq(lvalue, "Remote"))
|
||||
v->remote_family = f;
|
||||
else
|
||||
v->local_family = f;
|
||||
}
|
||||
|
||||
*addr = buffer;
|
||||
|
Loading…
Reference in New Issue
Block a user