4.8.0.0R6
Software Development Kit
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
MIBVAR Struct Reference

Data Fields

int16_t len
 
OID oid
 
uint8_t opt
 
void * ptr
 
uint8_t type
 

Detailed Description

This struct is used to define a MIB variable. Every MIB variable, whether it's in a table or not, must be defined by a MIBVAR struct. For example the sysContact variable can be defined as:

char sysContact[255];
sysContactMibVar = {{8,{0x2b,6,1,2,1,1,4,0}}, MIBOPT_W + MIBOPT_CAW,
SNMP_String, sizeof(sysContact), sysContact}

Field Documentation

int16_t MIBVAR::len

length/size of the data pointed to by 'ptr'

OID MIBVAR::oid

OID for the variable

uint8_t MIBVAR::opt

options (see defines above)

void* MIBVAR::ptr

pointer to the (possible) variable data

uint8_t MIBVAR::type

variable SNMP SMI type (see defines above)


The documentation for this struct was generated from the following file: