]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd-network/sd-lldp.c
lldp: add public function to export LLDP TLV packets
authorBeniamino Galvani <bgalvani@redhat.com>
Tue, 30 Jun 2015 08:46:01 +0000 (10:46 +0200)
committerBeniamino Galvani <bgalvani@redhat.com>
Fri, 2 Oct 2015 15:39:22 +0000 (17:39 +0200)
commit7434883c40f3623372044f88cdde3eda49ba9758
tree5ad2215e01c083ce937470cdf12618da928931f8
parentb57003ecc3fe92c8074cbc72ee2b7d9cda742271
lldp: add public function to export LLDP TLV packets

Add a public function to get a list of current LLDP neighbours' TLV
packets. The function populates an array of pointers to the opaque
type sd_lldp_packet and returns the number of elements found. Callers
must take care of freeing the array and decreasing the refcount of
elements when done.
src/libsystemd-network/sd-lldp.c
src/systemd/sd-lldp.h