Revert "network: fix max MTU check for IPv6 MTU adjustments"
This reverts commit 32417c1723.
IPv6 MTU cannot be larger than the current interface MTU.
The previous behavior is correct.
This commit is contained in:
@@ -545,11 +545,11 @@ int link_set_ipv6_mtu(Link *link, int log_level) {
|
||||
if (mtu == 0)
|
||||
return 0;
|
||||
|
||||
if (mtu > link->max_mtu) {
|
||||
if (mtu > link->mtu) {
|
||||
log_link_full(link, log_level,
|
||||
"Reducing requested IPv6 MTU %"PRIu32" to the interface's maximum MTU %"PRIu32".",
|
||||
mtu, link->max_mtu);
|
||||
mtu = link->max_mtu;
|
||||
mtu, link->mtu);
|
||||
mtu = link->mtu;
|
||||
}
|
||||
|
||||
r = sysctl_write_ip_property_uint32(AF_INET6, link->ifname, "mtu", mtu, manager_get_sysctl_shadow(link->manager));
|
||||
|
||||
Reference in New Issue
Block a user