AM243x MCU+ SDK  09.00.00
ieee802-dot1ab-lldp_access.h File Reference

Go to the source code of this file.

Data Structures

struct  remote_statistic_t
 
struct  local_system_data_t
 yang_lldp local_system_data More...
 
struct  management_address_tx_port_t
 
struct  tx_statistic_t
 tx statistic base on 1 port More...
 
struct  rx_statistic_t
 rx statistic base on 1 port More...
 
struct  management_address_t
 Remote management address info needed. More...
 
struct  remote_unknown_tlv_t
 Unknown tlv info (the tlv type is not listed in spec) More...
 
struct  remote_org_defined_info_t
 Remote organization defined info. More...
 
struct  remote_systems_data_t
 Remote system data per port. More...
 
struct  lldp_port_t
 
struct  yang_lldp_t
 yang_lldp_t corresponding to yangdb but in mem At the init time of lldp, lldpd should load db in to this struct More...
 

Macros

#define LLDP_MAX_LOCAL_INTERFACES   (8)
 
#define LLDP_STRING_MAX_LEN   (256)
 
#define MAX_ADDRESS_LEN   (64)
 Local manament address of a port. 1 port can have IPV4, IPV6, ... More...
 
#define MAX_PORT_MANAGEMENT_ADDRESS   (4)
 
#define MAX_UNKNOW_TLV_LEN   (8)
 
#define MAX_TLV_INFO_LEN   (512)
 
#define MAX_REMOTE_ORG_DEFINE_LEN   (8)
 
#define MAX_REMOTE_INFO_LEN   (508)
 
#define MAX_REMOTE_SYSTEM_DATA_LEN   (8)
 
#define PORT_MAX_NAME_LEN   (16)
 Represent an interface with interface name and MAC address as keys 1 lldpd system consists of multiple ports. More...
 

Typedefs

typedef uint32_t timestamp_t
 yang_lldp remote_statistics More...
 
typedef uint32_t timeticks
 

Enumerations

enum  chassis_id_type_t {
  C_CHASSIS_COMPONENT, C_INTERFACE_ALIAS, C_PORT_COMPONENT, C_MAC_ADDRESS,
  C_NETWORK_ADDRESS, C_INTERFACE_NAME, C_LOCAL
}
 yang_lldp ieee:chassis_id_subtype_type More...
 
enum  port_id_type_t {
  P_INTERFACE_ALIAS, P_PORT_COMPONENT, P_MAC_ADDRESS, P_NETWORK_ADDRESS,
  P_INTERFACE_NAME, P_AGENT_CIRCUIT_ID, P_LOCAL
}
 yang_lldp ieee:port_id_subtype_type More...
 
enum  tlvs_tx_enable_bits_t { port_desc = 0, sys_name = 1, sys_desc, sys_cap }
 TX enable bit position. Once the position is set to 1, lldpd will send the corresponding tlv info. More...
 
enum  address_subtype_t { ipv4 = 1, ipv6, nsap }
 Address subtype. More...
 
enum  man_addr_if_subtype_t { unknown = 1, port_ref = 2, system_port_number = 3 }
 If subtype. More...
 
enum  admin_status_t { tx_only = 1, rx_only, tx_and_rx, disabled }
 We can enable/disable tx/rx of one interface. More...
 

Functions

int ydbi_get_item_abk1vk0 (yang_db_item_access_t *ydbia, void **rval, uint8_t k1, bool status)
 
int ydbi_get_item_abk2vk0 (yang_db_item_access_t *ydbia, void **rval, uint8_t k1, uint8_t k2, bool status)
 
int ydbi_load_lldp_db (yang_db_item_access_t *ydbia, yang_lldp_t *lldp)
 

Macro Definition Documentation

◆ LLDP_MAX_LOCAL_INTERFACES

#define LLDP_MAX_LOCAL_INTERFACES   (8)

◆ LLDP_STRING_MAX_LEN

#define LLDP_STRING_MAX_LEN   (256)

◆ MAX_ADDRESS_LEN

#define MAX_ADDRESS_LEN   (64)

Local manament address of a port. 1 port can have IPV4, IPV6, ...

◆ MAX_PORT_MANAGEMENT_ADDRESS

#define MAX_PORT_MANAGEMENT_ADDRESS   (4)

◆ MAX_UNKNOW_TLV_LEN

#define MAX_UNKNOW_TLV_LEN   (8)

◆ MAX_TLV_INFO_LEN

#define MAX_TLV_INFO_LEN   (512)

◆ MAX_REMOTE_ORG_DEFINE_LEN

#define MAX_REMOTE_ORG_DEFINE_LEN   (8)

◆ MAX_REMOTE_INFO_LEN

#define MAX_REMOTE_INFO_LEN   (508)

◆ MAX_REMOTE_SYSTEM_DATA_LEN

#define MAX_REMOTE_SYSTEM_DATA_LEN   (8)

◆ PORT_MAX_NAME_LEN

#define PORT_MAX_NAME_LEN   (16)

Represent an interface with interface name and MAC address as keys 1 lldpd system consists of multiple ports.

Typedef Documentation

◆ timestamp_t

typedef uint32_t timestamp_t

yang_lldp remote_statistics

◆ timeticks

typedef uint32_t timeticks

Enumeration Type Documentation

◆ chassis_id_type_t

yang_lldp ieee:chassis_id_subtype_type

Enumerator
C_CHASSIS_COMPONENT 
C_INTERFACE_ALIAS 
C_PORT_COMPONENT 
C_MAC_ADDRESS 
C_NETWORK_ADDRESS 
C_INTERFACE_NAME 
C_LOCAL 

◆ port_id_type_t

yang_lldp ieee:port_id_subtype_type

Enumerator
P_INTERFACE_ALIAS 
P_PORT_COMPONENT 
P_MAC_ADDRESS 
P_NETWORK_ADDRESS 
P_INTERFACE_NAME 
P_AGENT_CIRCUIT_ID 
P_LOCAL 

◆ tlvs_tx_enable_bits_t

TX enable bit position. Once the position is set to 1, lldpd will send the corresponding tlv info.

Enumerator
port_desc 
sys_name 
sys_desc 
sys_cap 

◆ address_subtype_t

Address subtype.

Enumerator
ipv4 
ipv6 
nsap 

◆ man_addr_if_subtype_t

If subtype.

Enumerator
unknown 
port_ref 
system_port_number 

◆ admin_status_t

We can enable/disable tx/rx of one interface.

Enumerator
tx_only 
rx_only 
tx_and_rx 
disabled 

Function Documentation

◆ ydbi_get_item_abk1vk0()

int ydbi_get_item_abk1vk0 ( yang_db_item_access_t *  ydbia,
void **  rval,
uint8_t  k1,
bool  status 
)

◆ ydbi_get_item_abk2vk0()

int ydbi_get_item_abk2vk0 ( yang_db_item_access_t *  ydbia,
void **  rval,
uint8_t  k1,
uint8_t  k2,
bool  status 
)

◆ ydbi_load_lldp_db()

int ydbi_load_lldp_db ( yang_db_item_access_t *  ydbia,
yang_lldp_t lldp 
)