X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flibsystemd-network%2Flldp-internal.h;h=8e09ee8f3a9e657601381071d0a540f50358d587;hb=5569b33a8ce1968200db801ef28585347103239c;hp=dbaf3897923eb223124f548381815c8b5bc50da5;hpb=ad1ad5c8e36ea795034fcdac660b15d7c141d55b;p=elogind.git diff --git a/src/libsystemd-network/lldp-internal.h b/src/libsystemd-network/lldp-internal.h index dbaf38979..8e09ee8f3 100644 --- a/src/libsystemd-network/lldp-internal.h +++ b/src/libsystemd-network/lldp-internal.h @@ -31,6 +31,7 @@ typedef struct lldp_neighbour_port lldp_neighbour_port; typedef struct lldp_chassis lldp_chassis; typedef struct lldp_chassis_id lldp_chassis_id; +typedef struct lldp_agent_statistics lldp_agent_statistics; struct lldp_neighbour_port { uint8_t type; @@ -89,5 +90,10 @@ int lldp_mib_remove_objects(lldp_chassis *c, tlv_packet *tlv); int lldp_read_chassis_id(tlv_packet *tlv, uint8_t *type, uint16_t *length, uint8_t **data); int lldp_read_port_id(tlv_packet *tlv, uint8_t *type, uint16_t *length, uint8_t **data); int lldp_read_ttl(tlv_packet *tlv, uint16_t *ttl); +int lldp_read_system_name(tlv_packet *tlv, uint16_t *length, char **data); +int lldp_read_system_description(tlv_packet *tlv, uint16_t *length, char **data); +int lldp_read_system_capability(tlv_packet *tlv, uint16_t *data); +int lldp_read_port_description(tlv_packet *tlv, uint16_t *length, char **data); +int lldp_handle_packet(tlv_packet *m, uint16_t length); #define log_lldp(fmt, ...) log_internal(LOG_DEBUG, 0, __FILE__, __LINE__, __func__, "LLDP: " fmt, ##__VA_ARGS__)