lldp.h
Go to the documentation of this file.
188 LLDP_ADMIN_STATUS_DISABLED = 0, ///<The local LLDP agent can neither transmit or receive LLDP frames
191 LLDP_ADMIN_STATUS_ENABLED_TX_RX = 3, ////The local LLDP agent can both transmit and receive LLDP frames
285 uint32_t mgmtAddrFilter; ///<Bit-map indicating the management addresses enabled for transmission
290 bool_t somethingChangedLocal; ///<Status/value of one or more objects in the LLDP local system MIB has changed
291 uint_t txTTL; ///<Time remaining before information in the outgoing LLDPDU will no longer be valid
302 uint32_t statsFramesInErrorsTotal; ///<Count of all LLDPDUs received with one or more detectable errors
304 uint32_t statsTLVsDiscardedTotal; ///<Count of all TLVs received and then discarded for any reason
305 uint32_t statsTLVsUnrecognizedTotal; ///<Count of all TLVs received on the port that are not recognized
306 uint32_t statsAgeoutsTotal; ///<Count of the times that a neighbor's information has been aged out
370 bool_t somethingChangedRemote; ///<Per-MSAP variable set after all the information has been updated
error_t lldpSetReinitDelay(LldpAgentContext *context, uint_t reinitDelay)
Set re-initialization delay.
Definition: lldp.c:515
bool_t rxChanges
The incoming LLDPDU has been received with different TLV values.
Definition: lldp.h:368
error_t lldpSetLocalSysDesc(LldpAgentContext *context, const char_t *sysDesc)
Set system description.
Definition: lldp.c:954
uint8_t basicTlvFilter
Bit-map indicating the basic TLVs enabled for transmission.
Definition: lldp.h:284
error_t lldpSetMsgTxInterval(LldpAgentContext *context, uint_t msgTxInterval)
Set transmit interval.
Definition: lldp.c:450
bool_t somethingChangedLocal
Status/value of one or more objects in the LLDP local system MIB has changed.
Definition: lldp.h:290
uint32_t lldpduLengthErrors
The number of LLDPDU length errors recorded for the port.
Definition: lldp.h:293
error_t lldpSetAdminStatus(LldpAgentContext *context, uint_t portIndex, LldpAdminStatus adminStatus)
Set administrative status.
Definition: lldp.c:581
@ LLDP_ADMIN_STATUS_DISABLED
The local LLDP agent can neither transmit or receive LLDP frames.
Definition: lldp.h:188
error_t lldpSetLocalPortDesc(LldpAgentContext *context, uint_t portIndex, const char_t *portDesc)
Set port description.
Definition: lldp.c:838
error_t lldpSetLocalSysName(LldpAgentContext *context, const char_t *sysName)
Set system name.
Definition: lldp.c:900
uint32_t statsTLVsUnrecognizedTotal
Count of all TLVs received on the port that are not recognized.
Definition: lldp.h:305
void(* LldpReceiveCallback)(LldpPortEntry *port, LldpDataUnit *lldpdu)
LLDP frame reception callback function.
Definition: lldp.h:220
uint32_t mgmtAddrMap
Bit-map indicating the management addresses that are configured.
Definition: lldp.h:360
LLDP receive state machine.
error_t lldpSetLocalMgmtAddr(LldpAgentContext *context, uint_t index, LldpMgmtAddrSubtype mgmtAddrSubtype, const void *mgmtAddr, size_t mgmtAddrLen, LldpIfNumSubtype ifNumSubtype, uint32_t ifNum, const uint8_t *oid, size_t oidLen)
Set management address.
Definition: lldp.c:1077
uint32_t statsRemTablesLastChangeTime
Definition: lldp.h:372
uint_t txTTL
Time remaining before information in the outgoing LLDPDU will no longer be valid.
Definition: lldp.h:291
error_t lldpSetTxDelay(LldpAgentContext *context, uint_t txDelay)
Set transmit delay.
Definition: lldp.c:547
error_t lldpDeleteLocalTlv(LldpAgentContext *context, LldpTlvType type)
Remove all TLVs with specified type.
Definition: lldp.c:1216
@ LLDP_ADMIN_STATUS_ENABLED_RX_ONLY
The local LLDP agent can only receive LLDP frames.
Definition: lldp.h:190
void(* LldpSendCallback)(LldpPortEntry *port, LldpDataUnit *lldpdu)
LLDP frame transmission callback function.
Definition: lldp.h:213
error_t lldpInit(LldpAgentContext *context, const LldpAgentSettings *settings)
LLDP agent initialization.
Definition: lldp.c:87
LLDP transmit state machine.
TLV parsing and formatting.
error_t lldpSetLocalPortId(LldpAgentContext *context, uint_t portIndex, LldpPortIdSubtype portIdSubtype, const void *portId, size_t portIdLen)
Set port ID.
Definition: lldp.c:766
error_t lldpSetMgmtAddrFilter(LldpAgentContext *context, uint_t portIndex, uint32_t mask)
Set the list of management addresses enabled for transmission.
Definition: lldp.c:650
error_t lldpSetPortAddr(LldpAgentContext *context, uint_t portIndex, const MacAddr *macAddr)
Set port address.
Definition: lldp.c:407
uint32_t mgmtAddrFilter
Bit-map indicating the management addresses enabled for transmission.
Definition: lldp.h:285
bool_t tooManyNeighbors
Insufficient space to store information from all neighbors.
Definition: lldp.h:371
void lldpGetDefaultSettings(LldpAgentSettings *settings)
Initialize settings with default values.
Definition: lldp.c:51
error_t lldpSetLocalChassisId(LldpAgentContext *context, LldpChassisIdSubtype chassisIdSubtype, const void *chassisId, size_t chassisIdLen)
Set chassis ID.
Definition: lldp.c:698
error_t lldpSetMsgTxHold(LldpAgentContext *context, uint_t msgTxHold)
Set transmit hold multiplier.
Definition: lldp.c:483
error_t lldpSetBasicTlvFilter(LldpAgentContext *context, uint_t portIndex, uint8_t mask)
Set the list of TLVs enabled for transmission.
Definition: lldp.c:615
bool_t somethingChangedRemote
Per-MSAP variable set after all the information has been updated.
Definition: lldp.h:370
uint_t txDelayWhile
Minimum delay between transmission of successive LLDP frames.
Definition: lldp.h:288
uint_t txShutdownWhile
Number of seconds remaining until LLDP re-initialization can occur.
Definition: lldp.h:287
uint32_t statsTLVsDiscardedTotal
Count of all TLVs received and then discarded for any reason.
Definition: lldp.h:304
uint32_t statsFramesInErrorsTotal
Count of all LLDPDUs received with one or more detectable errors.
Definition: lldp.h:302
uint32_t statsAgeoutsTotal
Count of the times that a neighbor's information has been aged out.
Definition: lldp.h:306
TCP/IP stack core.
uint32_t statsFramesDiscardedTotal
Count of all LLDPDUs received and then discarded.
Definition: lldp.h:301
error_t lldpSetLocalSysCap(LldpAgentContext *context, uint16_t supportedCap, uint16_t enabledCap)
Set system capabilities.
Definition: lldp.c:1009
@ LLDP_ADMIN_STATUS_ENABLED_TX_ONLY
The local LLDP agent can only transmit LLDP frames.
Definition: lldp.h:189