1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
5 #include "sd-lldp-rx.h"
8 #include "network-common.h"
19 int64_t event_priority
;
20 sd_event_source
*io_event_source
;
21 sd_event_source
*timer_event_source
;
23 Prioq
*neighbor_by_expiry
;
24 Hashmap
*neighbor_by_id
;
26 uint64_t neighbors_max
;
28 sd_lldp_rx_callback_t callback
;
31 uint16_t capability_mask
;
33 struct ether_addr filter_address
;
36 const char* lldp_rx_event_to_string(sd_lldp_rx_event_t e
) _const_
;
37 sd_lldp_rx_event_t
lldp_rx_event_from_string(const char *s
) _pure_
;
39 #define log_lldp_rx_errno(lldp_rx, error, fmt, ...) \
40 log_interface_prefix_full_errno( \
42 sd_lldp_rx, lldp_rx, \
43 error, fmt, ##__VA_ARGS__)
44 #define log_lldp_rx(lldp_rx, fmt, ...) \
45 log_interface_prefix_full_errno_zerook( \
47 sd_lldp_rx, lldp_rx, \
48 0, fmt, ##__VA_ARGS__)