summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-setlink.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-06-12 22:12:03 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-06-14 13:42:54 +0200
commitd05c332c8d9cbbde6504b6635dc3598a60ab189f (patch)
tree1a43cc29453da332589b32d4edef697c4ec329d5 /src/network/networkd-setlink.h
parentnetwork: check the size of hardware address before setting MAC address (diff)
downloadsystemd-d05c332c8d9cbbde6504b6635dc3598a60ab189f.tar.xz
systemd-d05c332c8d9cbbde6504b6635dc3598a60ab189f.zip
network: try to bring down before setting MAC address
Most real network devices refuse to set MAC address when its operstate is not down. So, setting MAC address once failed, then let's bring down the interface and retry to set. Closes #6696.
Diffstat (limited to 'src/network/networkd-setlink.h')
-rw-r--r--src/network/networkd-setlink.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-setlink.h b/src/network/networkd-setlink.h
index 0dc7415257..87aa26e46f 100644
--- a/src/network/networkd-setlink.h
+++ b/src/network/networkd-setlink.h
@@ -28,7 +28,7 @@ int link_request_to_set_bridge_vlan(Link *link);
int link_request_to_set_can(Link *link);
int link_request_to_set_flags(Link *link);
int link_request_to_set_group(Link *link);
-int link_request_to_set_mac(Link *link);
+int link_request_to_set_mac(Link *link, bool allow_retry);
int link_request_to_set_master(Link *link);
int link_request_to_set_mtu(Link *link, uint32_t mtu);