summaryrefslogtreecommitdiff
path: root/src/network/networkd-lldp-tx.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-05-06 21:27:36 +0200
committerLennart Poettering <lennart@poettering.net>2016-05-09 15:45:31 +0200
commit7272b25e163d1c7395ff0da1397511c7946c0873 (patch)
tree71e0ed754449c7131589b50e340ce2be7f867599 /src/network/networkd-lldp-tx.h
parentd31645adefb3462d168b44bb950f92654c395021 (diff)
networkd: reworkd LLDP emission to allow control of propagation level
This allows selecting the propagation level of emitted LLDP packets (specifically: the destination MAC address of the packets). This is useful because it allows generating LLDP packets that optionally cross certain types of bridges. See 802.11ab-2009, Table 7-1 for details.
Diffstat (limited to 'src/network/networkd-lldp-tx.h')
-rw-r--r--src/network/networkd-lldp-tx.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/network/networkd-lldp-tx.h b/src/network/networkd-lldp-tx.h
index 8c7f403005..4680c9d950 100644
--- a/src/network/networkd-lldp-tx.h
+++ b/src/network/networkd-lldp-tx.h
@@ -21,5 +21,15 @@
#include "networkd-link.h"
-int link_lldp_tx_start(Link *link);
-void link_lldp_tx_stop(Link *link);
+typedef enum LLDPEmit {
+ LLDP_EMIT_NO,
+ LLDP_EMIT_NEAREST_BRIDGE,
+ LLDP_EMIT_NON_TPMR_BRIDGE,
+ LLDP_EMIT_CUSTOMER_BRIDGE,
+ _LLDP_EMIT_MAX,
+} LLDPEmit;
+
+int link_lldp_emit_start(Link *link);
+void link_lldp_emit_stop(Link *link);
+
+int config_parse_lldp_emit(const char *unit, const char *filename, unsigned line, const char *section, unsigned section_line, const char *lvalue, int ltype, const char *rvalue, void *data, void *userdata);