summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/lldp-internal.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-02-21 14:11:34 +0100
committerLennart Poettering <lennart@poettering.net>2016-02-21 20:40:58 +0100
commitb553a6b13c68cb72addde48281abe3f3b46e16a4 (patch)
treed8f8548603e1bd3a2812257eae233fba546e2e24 /src/libsystemd-network/lldp-internal.h
parent33859a6bf5fd2b62a562a751a509708617e19776 (diff)
downloadsystemd-b553a6b13c68cb72addde48281abe3f3b46e16a4.tar.gz
sd-lldp: filter out LLDP messages coming from our own MAC address
Let's not get confused should we be connected to some bridge that mirrors back our packets.
Diffstat (limited to 'src/libsystemd-network/lldp-internal.h')
-rw-r--r--src/libsystemd-network/lldp-internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd-network/lldp-internal.h b/src/libsystemd-network/lldp-internal.h
index 279975b5c2..7592bc4305 100644
--- a/src/libsystemd-network/lldp-internal.h
+++ b/src/libsystemd-network/lldp-internal.h
@@ -45,6 +45,8 @@ struct sd_lldp {
void *userdata;
uint16_t capability_mask;
+
+ struct ether_addr filter_address;
};
#define log_lldp_errno(error, fmt, ...) log_internal(LOG_DEBUG, error, __FILE__, __LINE__, __func__, "LLDP: " fmt, ##__VA_ARGS__)