]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: also stop LLDP client in link_stop_engines()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 14 Oct 2020 22:57:33 +0000 (07:57 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 14 Oct 2020 22:57:33 +0000 (07:57 +0900)
src/network/networkd-link.c

index d0cc3aafbd2b5763f87e4aec107a72ee5b4b5296..08b453f0e18e3d28c424dd483ed92de49eba7282 100644 (file)
@@ -631,6 +631,10 @@ int link_stop_engines(Link *link, bool may_keep_dhcp) {
         if (k < 0)
                 r = log_link_warning_errno(link, k, "Could not stop DHCPv4 server: %m");
 
+        k = sd_lldp_stop(link->lldp);
+        if (k < 0)
+                r = log_link_warning_errno(link, k, "Could not stop LLDP: %m");
+
         k = sd_ipv4ll_stop(link->ipv4ll);
         if (k < 0)
                 r = log_link_warning_errno(link, k, "Could not stop IPv4 link-local: %m");