diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-08-08 13:21:07 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-08-13 08:23:31 +0200 |
commit | 72c2500b2ade34d02ee5d2701e954d40ca6b0837 (patch) | |
tree | 30c19f24def22ae5fa1d993423e56ca13aec4e2e | |
parent | resolved: do not keep dns_server to dns_stream ref if tls connection failed (... (diff) | |
download | systemd-72c2500b2ade34d02ee5d2701e954d40ca6b0837.tar.xz systemd-72c2500b2ade34d02ee5d2701e954d40ca6b0837.zip |
network: drop redundant lines
Follow-up for 44b598a1c9d11c23420a5ef45ff11bcb0ed195eb.
-rw-r--r-- | src/network/networkd-link.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 4c534e685d..52b6eb3b99 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -1312,23 +1312,19 @@ int link_set_mtu(Link *link, uint32_t mtu) { return log_link_error_errno(link, r, "Could not allocate RTM_SETLINK message: %m"); /* If IPv6 not configured (no static IPv6 address and IPv6LL autoconfiguration is disabled) - for this interface, or if it is a bridge slave, then disable IPv6 else enable it. */ + * for this interface, or if it is a bridge slave, then disable IPv6 else enable it. */ (void) link_enable_ipv6(link); /* IPv6 protocol requires a minimum MTU of IPV6_MTU_MIN(1280) bytes - on the interface. Bump up MTU bytes to IPV6_MTU_MIN. */ - if (link_ipv6_enabled(link) && link->network->mtu < IPV6_MIN_MTU) { + * on the interface. Bump up MTU bytes to IPV6_MTU_MIN. */ + if (link_ipv6_enabled(link) && mtu < IPV6_MIN_MTU) { log_link_warning(link, "Bumping MTU to " STRINGIFY(IPV6_MIN_MTU) ", as " "IPv6 is requested and requires a minimum MTU of " STRINGIFY(IPV6_MIN_MTU) " bytes: %m"); - link->network->mtu = IPV6_MIN_MTU; + mtu = IPV6_MIN_MTU; } - r = sd_netlink_message_append_u32(req, IFLA_MTU, link->network->mtu); - if (r < 0) - return log_link_error_errno(link, r, "Could not set MTU: %m"); - r = sd_netlink_message_append_u32(req, IFLA_MTU, mtu); if (r < 0) return log_link_error_errno(link, r, "Could not append MTU: %m"); |