summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-lldp-tx.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-04-23 15:18:18 +0200
committerLennart Poettering <lennart@poettering.net>2020-04-23 20:01:30 +0200
commitb2cdefad3a437a756f99f93344422f665f59ef45 (patch)
tree253409cf508c1864a5068fc2bed816d6b763e843 /src/network/networkd-lldp-tx.c
parentMerge pull request #15550 from DaanDeMeyer/sd-bus-open/close/enter/exit-conta... (diff)
downloadsystemd-b2cdefad3a437a756f99f93344422f665f59ef45.tar.xz
systemd-b2cdefad3a437a756f99f93344422f665f59ef45.zip
networkd: don't do lldp rx nor tx on bond devices
Fixes: #15146
Diffstat (limited to 'src/network/networkd-lldp-tx.c')
-rw-r--r--src/network/networkd-lldp-tx.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/network/networkd-lldp-tx.c b/src/network/networkd-lldp-tx.c
index 1fbf9d0dd9..f2d4e6f2bb 100644
--- a/src/network/networkd-lldp-tx.c
+++ b/src/network/networkd-lldp-tx.c
@@ -6,8 +6,8 @@
#include <net/if_arp.h>
#include "alloc-util.h"
-#include "escape.h"
#include "env-file.h"
+#include "escape.h"
#include "fd-util.h"
#include "hostname-util.h"
#include "missing_network.h"
@@ -18,6 +18,7 @@
#include "random-util.h"
#include "socket-util.h"
#include "string-util.h"
+#include "strv.h"
#include "unaligned.h"
#include "web-util.h"
@@ -54,6 +55,9 @@ bool link_lldp_emit_enabled(Link *link) {
if (!link->network)
return false;
+ if (link->kind && STR_IN_SET(link->kind, "bridge", "bond"))
+ return false;
+
return link->network->lldp_emit != LLDP_EMIT_NO;
}