/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
#ifndef _LLDP_H
#define _LLDP_H
/*
* WARNING
*
* The interfaces defined in this file are private to the implementation
* of Solaris and are subject to change at any time without notice.
* Applications using these interfaces may fail to run on future releases.
*/
#ifdef __cplusplus
extern "C" {
#endif
/*
* Multicast addresses used by LLDP agents. These MAC addresses define the
* transmission scope of the LLDPDU packets sent.
*/
#define LLDP_NEAREST_NONTPMR_BRIDGE_MCAST_ADDR \
{ 0x01, 0x80, 0xc2, 0x00, 0x00, 0x03 }
#define LLDP_CUSTOMER_BRIDGE_MCAST_ADDR \
{ 0x01, 0x80, 0xc2, 0x00, 0x00, 0x00 }
/* LLDP Agent operation modes */
typedef enum lldp_admin_status_e {
typedef enum {
/* types 9-126 are reserved */
typedef enum {
typedef enum {
/* IEEE 802.1 Organizationally Specific TLV Subtypes */
/* Subtype TBA by IEEE */
/* IEEE 802.3 Organizationally Specific TLV Subtypes */
/* Oracle OUI subtype */
#define LLDP_MAX_MSAPLEN \
/* variaous ianaAddressFamilyNumbers from (www.iana.org) */
typedef struct lldp_tlv_s {
} lldp_tlv_t;
typedef struct lldp_chassid_s {
typedef struct lldp_portid_s {
typedef struct lldp_syscapab_s {
typedef struct lldp_vlan_info_s {
typedef struct lldp_vnic_info_s {
typedef struct lldp_aggr_s {
} lldp_aggr_t;
typedef struct lldp_pfc_s {
} lldp_pfc_t;
typedef struct lldp_appln_s {
} lldp_appln_t;
typedef struct lldp_evb_s {
} lldp_evb_t;
#define LLDP_EVB_UNKNOWN 0
typedef struct lldp_ets_s {
} lldp_ets_t;
/* ETS configuration/recommendation TLV information string length */
/* ETS Transmission selection algorithm */
typedef struct lldp_mgmtaddr_s {
/* DCBX Types */
typedef enum dcbx_protocol_type_s {
/* DCB Application TLV Selector Field types */
#ifdef __cplusplus
}
#endif
#endif /* _LLDP_H */