SNMP Agent MIB registration. More...
Data Structures | |
| struct | MIB |
| struct | MIBTAB |
| struct | MIBVAR |
| struct | OID |
Variables | |
| int(* | MIB::index )(int varix, int tabix) |
| void(* | MIB::init )(uint16_t type) |
| uint16_t | MIBTAB::ix [MAXKEY] |
| uint16_t | MIBTAB::len |
| int16_t | MIBVAR::len |
| const MIBTAB * | MIB::mtp |
| const MIBVAR * | MIB::mvp |
| uint8_t | OID::name [MAXOID] |
| uint8_t | MIBTAB::nix |
| uint8_t | OID::nlen |
| int(* | MIB::numtabs )(void) |
| int(* | MIB::numvars )(void) |
| OID | MIBTAB::oid |
| OID | MIBVAR::oid |
| uint8_t | MIBVAR::opt |
| void * | MIBVAR::ptr |
| int(* | MIB::set )(int varix, int tabix) |
| uint8_t | MIBVAR::type |
Return Values. | |
These defines are the return values that can be returned by the various MIB handler callback functions. | |
| enum | SnmpOperationType |
Maximums | |
This define specifies the maximum number of keys. For example, the standard MIB-II includes the tcpConnTable which has four values in its INDEX clause. When encoded in the identifier, two of those index values may be 8 bytes each and the other two may be 3 bytes each for a total of 22 bytes. These values cannot be changed by the SDK. | |
| #define | MAXOID 32 |
MIB variable characteristics. | |
These defines are options used to define the charactistics for a MIB variable. | |
| #define | MIBOPT_IMMED 0x01 |
| #define | MIBOPT_IMMED2 0x02 |
| #define | MIBOPT_BASE1 0x03 |
| #define | MIBOPT_SCALAR 0x04 |
| #define | MIBOPT_W 0x08 |
| #define | MIBOPT_SX 0x10 |
| #define | MIBOPT_NWORDER 0x20 |
| #define | MIBOPT_CAR 0x40 |
| #define | MIBOPT_CAW 0x80 |
MIB variable types. | |
These defines are the MIB variable types. | |
| #define | SNMP_OctetString 0x14 |
SNMP Agent MIB registration.
This module is used to register MIB handlers for custom MIB implementations.
| #define MAXOID 32 |
This define specifies the maximum length of an OID in encoded format. This value cannot be changed by the SDK.
| #define MIBOPT_BASE1 0x03 |
base 0 in data space, base 1 in MIB
| #define MIBOPT_CAR 0x40 |
call application cbk for read
| #define MIBOPT_CAW 0x80 |
call application cbk for write
| #define MIBOPT_IMMED 0x01 |
immediate value located in (MIBVAR->len)
| #define MIBOPT_IMMED2 0x02 |
immediate value (MIBVAR->type + MIBVAR->len)
| #define MIBOPT_NWORDER 0x20 |
network byte ordering for basic type
| #define MIBOPT_SCALAR 0x04 |
table not indexed directly (no offset)
| #define MIBOPT_SX 0x10 |
sequential table index inferred
| #define MIBOPT_W 0x08 |
writes are allowed
| #define SNMP_OctetString 0x14 |
Uses length, not zero termination. Externally seen as 0x04.
| enum SnmpOperationType |
This enum defines the SNMP Operation of the request.
| int(* MIB::index) (int varix, int tabix) |
index cbk
| void(* MIB::init) (uint16_t type) |
init cbk
| uint16_t MIBTAB::ix[MAXKEY] |
Index values (offsets)
| uint16_t MIBTAB::len |
length of the table where the data lives
| int16_t MIBVAR::len |
length/size of the data pointed to by 'ptr'
| uint8_t MIBTAB::nix |
number of indices for the table
| uint8_t OID::nlen |
number of elements in the OID
| int(* MIB::numtabs) (void) |
function to return the number of tables
| int(* MIB::numvars) (void) |
function to return the number of variables
| uint8_t MIBVAR::opt |
options (see defines above)
| void* MIBVAR::ptr |
pointer to the (possible) variable data
| int(* MIB::set) (int varix, int tabix) |
set cbk
| uint8_t MIBVAR::type |
variable SNMP SMI type (see defines above)