Compaq AAR04BCTE Network Card User Manual


 
eSNMP API Routines
o_integer
Example
#include <esnmp.h>
#include "ip_tbl.h" <-- for ipNetToMediaEntry_type definition
VARBIND *vb = method->varbind;
OBJECT *object = method->object;
ipNetToMediaEntry_type *data;
:
: assume buffer and structure member assignments occur here
:
switch(arg) {
case I_atIfIndex:
return o_integer(vb, object, data->ipNetToMediaIfIndex);
5–32 eSNMP API Routines