summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2015-06-30 10:46:01 +0200
committerBeniamino Galvani <bgalvani@redhat.com>2015-10-02 17:39:22 +0200
commit7434883c40f3623372044f88cdde3eda49ba9758 (patch)
tree5ad2215e01c083ce937470cdf12618da928931f8 /src/systemd
parentb57003ecc3fe92c8074cbc72ee2b7d9cda742271 (diff)
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.
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/sd-lldp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/systemd/sd-lldp.h b/src/systemd/sd-lldp.h
index efa76dacf7..e472cbece9 100644
--- a/src/systemd/sd-lldp.h
+++ b/src/systemd/sd-lldp.h
@@ -55,3 +55,5 @@ int sd_lldp_packet_read_port_description(sd_lldp_packet *tlv, char **data, uint1
sd_lldp_packet *sd_lldp_packet_ref(sd_lldp_packet *tlv);
sd_lldp_packet *sd_lldp_packet_unref(sd_lldp_packet *tlv);
+
+int sd_lldp_get_packets(sd_lldp *lldp, sd_lldp_packet ***tlvs);