Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
LLDP definitions and handler. More...
Go to the source code of this file.
Data Structures | |
struct | net_lldp_chassis_tlv |
struct | net_lldp_port_tlv |
struct | net_lldp_time_to_live_tlv |
struct | net_lldpdu |
Macros | |
#define | net_lldp_set_lldpdu(iface) |
Set LLDP protocol data unit (LLDPDU) for the network interface. More... | |
#define | net_lldp_unset_lldpdu(iface) |
Unset LLDP protocol data unit (LLDPDU) for the network interface. More... | |
Typedefs | |
typedef enum net_verdict(* | net_lldp_recv_cb_t) (struct net_if *iface, struct net_pkt *pkt) |
LLDP Receive packet callback. More... | |
Enumerations | |
enum | net_lldp_tlv_type { LLDP_TLV_END_LLDPDU = 0 , LLDP_TLV_CHASSIS_ID = 1 , LLDP_TLV_PORT_ID = 2 , LLDP_TLV_TTL = 3 , LLDP_TLV_PORT_DESC = 4 , LLDP_TLV_SYSTEM_NAME = 5 , LLDP_TLV_SYSTEM_DESC = 6 , LLDP_TLV_SYSTEM_CAPABILITIES = 7 , LLDP_TLV_MANAGEMENT_ADDR = 8 , LLDP_TLV_ORG_SPECIFIC = 127 } |
Functions | |
int | net_lldp_config (struct net_if *iface, const struct net_lldpdu *lldpdu) |
Set the LLDP data unit for a network interface. More... | |
int | net_lldp_config_optional (struct net_if *iface, const uint8_t *tlv, size_t len) |
Set the Optional LLDP TLVs for a network interface. More... | |
void | net_lldp_init (void) |
Initialize LLDP engine. More... | |
int | net_lldp_register_callback (struct net_if *iface, net_lldp_recv_cb_t cb) |
Register LLDP Rx callback function. More... | |
enum net_verdict | net_lldp_recv (struct net_if *iface, struct net_pkt *pkt) |
Parse LLDP packet. More... | |
LLDP definitions and handler.
This is not to be included by the application.