mikroSDK Reference Manual
lldp_mib_module.h
Go to the documentation of this file.
1
31#ifndef _LLDP_MIB_MODULE_H
32#define _LLDP_MIB_MODULE_H
33
34//Dependencies
35#include "mibs/mib_common.h"
36#include "lldp/lldp.h"
37
38//LLDP MIB module support
39#ifndef LLDP_MIB_SUPPORT
40 #define LLDP_MIB_SUPPORT DISABLED
41#elif (LLDP_MIB_SUPPORT != ENABLED && LLDP_MIB_SUPPORT != DISABLED)
42 #error LLDP_MIB_SUPPORT parameter is not valid
43#endif
44
45//Support for SET operations
46#ifndef LLDP_MIB_SET_SUPPORT
47 #define LLDP_MIB_SET_SUPPORT DISABLED
48#elif (LLDP_MIB_SET_SUPPORT != ENABLED && LLDP_MIB_SET_SUPPORT != DISABLED)
49 #error LLDP_MIB_SET_SUPPORT parameter is not valid
50#endif
51
52//C++ guard
53#ifdef __cplusplus
54extern "C" {
55#endif
56
57
62typedef enum
63{
64 LLDP_MIB_ADMIN_STATUS_INVALID = 0,
65 LLDP_MIB_ADMIN_STATUS_ENABLED_TX_ONLY = 1,
66 LLDP_MIB_ADMIN_STATUS_ENABLED_RX_ONLY = 2,
67 LLDP_MIB_ADMIN_STATUS_ENABLED_TX_RX = 3,
68 LLDP_MIB_ADMIN_STATUS_DISABLED = 4
70
71
82
83
88typedef struct
89{
90 LldpAgentContext *lldpAgentContext;
92
93
94//LLDP MIB related constants
95extern LldpMibBase lldpMibBase;
96extern const MibObject lldpMibObjects[];
97extern const MibModule lldpMibModule;
98
99//C++ guard
100#ifdef __cplusplus
101}
102#endif
103
104#endif
LLDP (Link Layer Discovery Protocol)
LldpMibAdminStatus
Administrative status.
Definition lldp_mib_module.h:63
LldpMibManAddrIfSubtype
Type of interface associated with a management address.
Definition lldp_mib_module.h:77
@ LLDP_MIB_MAN_ADDR_IF_SUBTYPE_IF_INDEX
Interface index.
Definition lldp_mib_module.h:79
@ LLDP_MIB_MAN_ADDR_IF_SUBTYPE_UNKNOWN
Unknown.
Definition lldp_mib_module.h:78
@ LLDP_MIB_MAN_ADDR_IF_SUBTYPE_SYS_PORT_NUM
System port number.
Definition lldp_mib_module.h:80
Common definitions for MIB modules.
LLDP MIB base.
Definition lldp_mib_module.h:89
MIB module.
Definition mib_common.h:288