diff options
author | Tom Gundersen <teg@jklm.no> | 2014-12-19 22:42:03 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-12-19 22:42:03 +0100 |
commit | 7a6f1457462840ed52f2a332e2bd56ca210cff2d (patch) | |
tree | 6b5edb9a071082233c0ed042e2a6f44cdd07d96c /src/libsystemd-network/lldp-internal.h | |
parent | 2cd3aa24820e5d82375c8cc3e4446d884ee4fee0 (diff) |
sd-lldp: minor header cleanup
* (potentially) public headers must reside in src/systemd/ (not in
src/libsystemd*)
* some private (not prefixed with sd_) functions moved from sd-lldp.h to
lldp-internal.h
* introduce lldp-util.h for the cleanup macro, as these should not be public
* rename the cleanup macro, we always name them _cleanup_foo_, never
_cleanup_sd_foo_
* mark some function arguments as 'const'
Diffstat (limited to 'src/libsystemd-network/lldp-internal.h')
-rw-r--r-- | src/libsystemd-network/lldp-internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd-network/lldp-internal.h b/src/libsystemd-network/lldp-internal.h index 028a35ffdd..c7235c11ee 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_statitics lldp_agent_statitics; struct lldp_neighbour_port { uint8_t type; @@ -94,4 +95,5 @@ 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__) |