31#ifndef _LLDP_EXT_DOT1_H
32#define _LLDP_EXT_DOT1_H
39#define LLDP_DOT1_MIN_VLAN_NAME_LEN 1
41#define LLDP_DOT1_MAX_VLAN_NAME_LEN 31
44#define LLDP_DOT1_MIN_PROTOCOL_ID_LEN 1
46#define LLDP_DOT1_MAX_PROTOCOL_ID_LEN 255
81#if defined(__CWCC__) || defined(_WIN32)
93} LldpDot1PortVlanIdTlv;
104} LldpDot1PortProtoVlanIdTlv;
116} LldpDot1VlanNameTlv;
125 uint8_t protocolIdLen;
126 uint8_t protocolId[];
127} LldpDot1ProtocolIdTlv;
131#if defined(__CWCC__) || defined(_WIN32)
136error_t lldpDot1SetLocalPortVlanId(LldpAgentContext *context,
137 uint_t portIndex, uint16_t pvid);
139error_t lldpDot1SetLocalPortProtoVlanId(LldpAgentContext *context,
140 uint_t portIndex, uint8_t flags, uint16_t ppvid);
142error_t lldpDot1SetLocalVlanName(LldpAgentContext *context,
143 uint_t portIndex, uint16_t vlanId,
const char_t *vlanName);
145error_t lldpDot1SetLocalProtocolId(LldpAgentContext *context,
146 uint_t portIndex,
const uint8_t *protocolId,
size_t protocolIdLen);
148error_t lldpDot1DeleteLocalTlv(LldpAgentContext *context,
error_t
Error codes.
Definition error.h:43
LLDP (Link Layer Discovery Protocol)
LldpDot1PortProtoFlags
Port and protocol capability/status flags.
Definition lldp_ext_dot1.h:73
@ LLDP_DOT1_PORT_PROTO_FLAG_RESERVED
Reserved.
Definition lldp_ext_dot1.h:74
@ LLDP_DOT1_PORT_PROTO_FLAG_ENABLED
Port and protocol VLAN enabled.
Definition lldp_ext_dot1.h:76
@ LLDP_DOT1_PORT_PROTO_FLAG_SUPPORTED
Port and protocol VLAN supported.
Definition lldp_ext_dot1.h:75
LldpDot1Subtype
IEEE 802.1 subtypes.
Definition lldp_ext_dot1.h:59
@ LLDP_DOT1_SUBTYPE_PROTOCOL_ID
Protocol Identity.
Definition lldp_ext_dot1.h:64
@ LLDP_DOT1_SUBTYPE_VLAN_NAME
VLAN Name.
Definition lldp_ext_dot1.h:63
@ LLDP_DOT1_SUBTYPE_RESERVED
Reserved.
Definition lldp_ext_dot1.h:60
@ LLDP_DOT1_SUBTYPE_PORT_PROTO_VLAN_ID
Port And Protocol VLAN ID.
Definition lldp_ext_dot1.h:62
@ LLDP_DOT1_SUBTYPE_PORT_VLAN_ID
Port VLAN ID.
Definition lldp_ext_dot1.h:61
typedef __packed_struct
Port VLAN ID TLV.
Definition lldp_ext_dot1.h:91