]> git.ipfire.org Git - thirdparty/systemd.git/commit
lldp: add proper ref counting to sd_lldp object and a separate call for setting the...
authorLennart Poettering <lennart@poettering.net>
Thu, 2 Jun 2016 15:45:08 +0000 (17:45 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 6 Jun 2016 17:59:07 +0000 (19:59 +0200)
commitfc6a313b5b836a8642a47348272d7883e1b9349d
tree45de1fba29d09750b420789735adcc8f97b8f188
parent5f94b4e62e9439b3580653e30082981e33128b8a
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.
src/libsystemd-network/lldp-internal.h
src/libsystemd-network/sd-lldp.c
src/libsystemd-network/test-lldp.c
src/network/networkd-link.c
src/systemd/sd-lldp.h