summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/lldp-internal.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-06-02 17:45:08 +0200
committerLennart Poettering <lennart@poettering.net>2016-06-06 19:59:07 +0200
commitfc6a313b5b836a8642a47348272d7883e1b9349d (patch)
tree45de1fba29d09750b420789735adcc8f97b8f188 /src/libsystemd-network/lldp-internal.h
parent5f94b4e62e9439b3580653e30082981e33128b8a (diff)
lldp: add proper ref counting to sd_lldp object and a separate call for setting the ifindex
Let's make sd-lldp a bit more like sd-ndisc ant the other APIs, and add proper ref counting and a separate call for setting the ifindex. This also adds a new lldp_reset() call we can use at various places to close all fds. This is also similar to how sd-ndisc already does it.
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 7592bc4305..becc162fab 100644
--- a/src/libsystemd-network/lldp-internal.h
+++ b/src/libsystemd-network/lldp-internal.h
@@ -28,6 +28,8 @@
#include "prioq.h"
struct sd_lldp {
+ unsigned n_ref;
+
int ifindex;
int fd;