lldp-internal.h revision 07630cea1f3a845c09309f197ac7c4f11edd3b62
0b87790df72dd730ef361a1ce1a8d40ed4d15e10vboxsync/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
0b87790df72dd730ef361a1ce1a8d40ed4d15e10vboxsync This file is part of systemd.
772269936494ffaddd0750ba9e28e805ba81398cvboxsync Copyright (C) 2014 Tom Gundersen
0b87790df72dd730ef361a1ce1a8d40ed4d15e10vboxsync Copyright (C) 2014 Susant Sahani
0b87790df72dd730ef361a1ce1a8d40ed4d15e10vboxsync systemd is free software; you can redistribute it and/or modify it
0b87790df72dd730ef361a1ce1a8d40ed4d15e10vboxsync under the terms of the GNU Lesser General Public License as published by
0b87790df72dd730ef361a1ce1a8d40ed4d15e10vboxsync the Free Software Foundation; either version 2.1 of the License, or
0b87790df72dd730ef361a1ce1a8d40ed4d15e10vboxsync (at your option) any later version.
0b87790df72dd730ef361a1ce1a8d40ed4d15e10vboxsync systemd is distributed in the hope that it will be useful, but
0b87790df72dd730ef361a1ce1a8d40ed4d15e10vboxsync WITHOUT ANY WARRANTY; without even the implied warranty of
0b87790df72dd730ef361a1ce1a8d40ed4d15e10vboxsync MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
d1a00c93378091ef28db9d959b2d692cc8143a07vboxsync Lesser General Public License for more details.
d1a00c93378091ef28db9d959b2d692cc8143a07vboxsync You should have received a copy of the GNU Lesser General Public License
d1a00c93378091ef28db9d959b2d692cc8143a07vboxsync along with systemd; If not, see <http://www.gnu.org/licenses/>.
d1a00c93378091ef28db9d959b2d692cc8143a07vboxsynctypedef struct lldp_neighbour_port lldp_neighbour_port;
d1a00c93378091ef28db9d959b2d692cc8143a07vboxsynctypedef struct lldp_agent_statistics lldp_agent_statistics;
d1a00c93378091ef28db9d959b2d692cc8143a07vboxsyncint lldp_neighbour_port_new(lldp_chassis *c, tlv_packet *tlv, lldp_neighbour_port **ret);
d1a00c93378091ef28db9d959b2d692cc8143a07vboxsyncvoid lldp_neighbour_port_free(lldp_neighbour_port *p);
d1a00c93378091ef28db9d959b2d692cc8143a07vboxsyncvoid lldp_neighbour_port_remove_and_free(lldp_neighbour_port *p);
d1a00c93378091ef28db9d959b2d692cc8143a07vboxsyncDEFINE_TRIVIAL_CLEANUP_FUNC(lldp_neighbour_port *, lldp_neighbour_port_free);
d1a00c93378091ef28db9d959b2d692cc8143a07vboxsync#define _cleanup_lldp_neighbour_port_free_ _cleanup_(lldp_neighbour_port_freep)
struct lldp_chassis_id {
struct lldp_chassis {
unsigned n_ref;
#define log_lldp(fmt, ...) log_internal(LOG_DEBUG, 0, __FILE__, __LINE__, __func__, "LLDP: " fmt, ##__VA_ARGS__)