206 lines
7.2 KiB
C
206 lines
7.2 KiB
C
/******************************************************************************
|
|
******************************************************************************
|
|
**** This file was automatically generated by Wind River's
|
|
**** MIB Compiler, version 10.2.
|
|
**** This file was generated using the -mib.c switch.
|
|
****
|
|
**** This file contains a representation of a MIB tree suitable
|
|
**** for use by an SNMP agent running Wind River's WindManage SNMP package.
|
|
****
|
|
**** DO NOT EDIT THIS FILE BY HAND.
|
|
****
|
|
**** Last build date: Wed Jun 11 13:30:11 2008
|
|
**** from files:
|
|
****
|
|
**** /home/cdinstall/MSP0708Cd/vxworks-6.7/target/src/wrn/wm/snmp/std-mibs/rfc1213.mib,
|
|
**** /home/cdinstall/MSP0708Cd/vxworks-6.7/target/src/wrn/wm/snmp/std-mibs/rfc2571.mib,
|
|
**** /home/cdinstall/MSP0708Cd/vxworks-6.7/target/src/wrn/wm/snmp/std-mibs/rfc2575.mib,
|
|
**** /home/cdinstall/MSP0708Cd/vxworks-6.7/target/src/wrn/wm/snmp/std-mibs/rfc1907.mib,
|
|
**** /home/cdinstall/MSP0708Cd/vxworks-6.7/target/src/wrn/wm/snmp/std-mibs/iftype.mib,
|
|
**** /home/cdinstall/MSP0708Cd/vxworks-6.7/target/src/wrn/wm/snmp/std-mibs/rfc2233.mib,
|
|
**** rfc2233.ctl, snmpmib2.mib
|
|
**** starting from node: interfaces
|
|
******************************************************************************
|
|
******************************************************************************
|
|
*/
|
|
|
|
#define _MIB 1
|
|
#include <wrn/wm/snmp/engine/mib.h>
|
|
#include <wrn/wm/snmp/engine/snmpdefs.h>
|
|
#include <wrn/wm/snmp/engine/snmpstat.h>
|
|
#include <wrn/wm/snmp/vxagent/mibhand.h>
|
|
#ifndef STATIC
|
|
#define STATIC static
|
|
#endif
|
|
|
|
/**
|
|
** Subtree Object Identifier for Add_Node_From_Root
|
|
** interfaces OBJECT IDENTIFIER ::= { mib-2 2 }
|
|
**/
|
|
STATIC OIDC_T oid_if1213_root_node[] = { 1, 3, 6, 1, 2, 1, 2 };
|
|
OBJ_ID_T objid_if1213_root_node = {
|
|
sizeof(oid_if1213_root_node)/sizeof(OIDC_T),
|
|
oid_if1213_root_node
|
|
};
|
|
|
|
LEAF_NT_ASYS( l_ifNumber, REPLACEABLE, "ifNumber", VT_NUMBER,
|
|
READ_ACCESS, SCALAR, null_test_async,
|
|
interfacesGet, null_set_async, std_next_async,
|
|
(char*) 0,
|
|
0x0000, 0xFF, 0xFF);
|
|
LEAF_NT_ASYS( l_ifIndex, REPLACEABLE, "ifIndex", VT_NUMBER,
|
|
READ_ACCESS, TABULAR, null_test_async,
|
|
ifEntryGet, null_set_async, ifEntryNext,
|
|
(char*) 0,
|
|
0x0000, 0xFF, 0xFF);
|
|
LEAF_NT_ASYS( l_ifDescr, REPLACEABLE, "ifDescr", VT_STRING,
|
|
READ_ACCESS, TABULAR, null_test_async,
|
|
ifEntryGet, null_set_async, ifEntryNext,
|
|
(char*) 0,
|
|
0x0000, 0xFF, 0xFF);
|
|
LEAF_NT_ASYS( l_ifType, REPLACEABLE, "ifType", VT_NUMBER,
|
|
READ_ACCESS, TABULAR, null_test_async,
|
|
ifEntryGet, null_set_async, ifEntryNext,
|
|
(char*) 0,
|
|
0x0000, 0xFF, 0xFF);
|
|
LEAF_NT_ASYS( l_ifMtu, REPLACEABLE, "ifMtu", VT_NUMBER,
|
|
READ_ACCESS, TABULAR, null_test_async,
|
|
ifEntryGet, null_set_async, ifEntryNext,
|
|
(char*) 0,
|
|
0x0000, 0xFF, 0xFF);
|
|
LEAF_NT_ASYS( l_ifSpeed, REPLACEABLE, "ifSpeed", VT_GAUGE,
|
|
READ_ACCESS, TABULAR, null_test_async,
|
|
ifEntryGet, null_set_async, ifEntryNext,
|
|
(char*) 0,
|
|
0x0000, 0xFF, 0xFF);
|
|
LEAF_NT_ASYS( l_ifPhysAddress, REPLACEABLE, "ifPhysAddress", VT_STRING,
|
|
READ_ACCESS, TABULAR, null_test_async,
|
|
ifEntryGet, null_set_async, ifEntryNext,
|
|
(char*) 0,
|
|
0x0000, 0xFF, 0xFF);
|
|
LEAF_NT_ASYS( l_ifAdminStatus, REPLACEABLE, "ifAdminStatus", VT_NUMBER,
|
|
READ_WRITE_ACCESS, TABULAR, ifEntryTest,
|
|
ifEntryGet, ifEntrySet, ifEntryNext,
|
|
(char*) 0,
|
|
0x0000, 0xFF, 0xFF);
|
|
LEAF_NT_ASYS( l_ifOperStatus, REPLACEABLE, "ifOperStatus", VT_NUMBER,
|
|
READ_ACCESS, TABULAR, null_test_async,
|
|
ifEntryGet, null_set_async, ifEntryNext,
|
|
(char*) 0,
|
|
0x0000, 0xFF, 0xFF);
|
|
LEAF_NT_ASYS( l_ifLastChange, REPLACEABLE, "ifLastChange", VT_TIMETICKS,
|
|
READ_ACCESS, TABULAR, null_test_async,
|
|
ifEntryGet, null_set_async, ifEntryNext,
|
|
(char*) 0,
|
|
0x0000, 0xFF, 0xFF);
|
|
LEAF_NT_ASYS( l_ifInOctets, REPLACEABLE, "ifInOctets", VT_COUNTER,
|
|
READ_ACCESS, TABULAR, null_test_async,
|
|
ifEntryGet, null_set_async, ifEntryNext,
|
|
(char*) 0,
|
|
0x0000, 0xFF, 0xFF);
|
|
LEAF_NT_ASYS( l_ifInUcastPkts, REPLACEABLE, "ifInUcastPkts", VT_COUNTER,
|
|
READ_ACCESS, TABULAR, null_test_async,
|
|
ifEntryGet, null_set_async, ifEntryNext,
|
|
(char*) 0,
|
|
0x0000, 0xFF, 0xFF);
|
|
LEAF_NT_ASYS( l_ifInNUcastPkts, REPLACEABLE, "ifInNUcastPkts", VT_COUNTER,
|
|
READ_ACCESS, TABULAR, null_test_async,
|
|
ifEntryGet, null_set_async, ifEntryNext,
|
|
(char*) 0,
|
|
0x0000, 0xFF, 0xFF);
|
|
LEAF_NT_ASYS( l_ifInDiscards, REPLACEABLE, "ifInDiscards", VT_COUNTER,
|
|
READ_ACCESS, TABULAR, null_test_async,
|
|
ifEntryGet, null_set_async, ifEntryNext,
|
|
(char*) 0,
|
|
0x0000, 0xFF, 0xFF);
|
|
LEAF_NT_ASYS( l_ifInErrors, REPLACEABLE, "ifInErrors", VT_COUNTER,
|
|
READ_ACCESS, TABULAR, null_test_async,
|
|
ifEntryGet, null_set_async, ifEntryNext,
|
|
(char*) 0,
|
|
0x0000, 0xFF, 0xFF);
|
|
LEAF_NT_ASYS( l_ifInUnknownProtos, REPLACEABLE, "ifInUnknownProtos", VT_COUNTER,
|
|
READ_ACCESS, TABULAR, null_test_async,
|
|
ifEntryGet, null_set_async, ifEntryNext,
|
|
(char*) 0,
|
|
0x0000, 0xFF, 0xFF);
|
|
LEAF_NT_ASYS( l_ifOutOctets, REPLACEABLE, "ifOutOctets", VT_COUNTER,
|
|
READ_ACCESS, TABULAR, null_test_async,
|
|
ifEntryGet, null_set_async, ifEntryNext,
|
|
(char*) 0,
|
|
0x0000, 0xFF, 0xFF);
|
|
LEAF_NT_ASYS( l_ifOutUcastPkts, REPLACEABLE, "ifOutUcastPkts", VT_COUNTER,
|
|
READ_ACCESS, TABULAR, null_test_async,
|
|
ifEntryGet, null_set_async, ifEntryNext,
|
|
(char*) 0,
|
|
0x0000, 0xFF, 0xFF);
|
|
LEAF_NT_ASYS( l_ifOutNUcastPkts, REPLACEABLE, "ifOutNUcastPkts", VT_COUNTER,
|
|
READ_ACCESS, TABULAR, null_test_async,
|
|
ifEntryGet, null_set_async, ifEntryNext,
|
|
(char*) 0,
|
|
0x0000, 0xFF, 0xFF);
|
|
LEAF_NT_ASYS( l_ifOutDiscards, REPLACEABLE, "ifOutDiscards", VT_COUNTER,
|
|
READ_ACCESS, TABULAR, null_test_async,
|
|
ifEntryGet, null_set_async, ifEntryNext,
|
|
(char*) 0,
|
|
0x0000, 0xFF, 0xFF);
|
|
LEAF_NT_ASYS( l_ifOutErrors, REPLACEABLE, "ifOutErrors", VT_COUNTER,
|
|
READ_ACCESS, TABULAR, null_test_async,
|
|
ifEntryGet, null_set_async, ifEntryNext,
|
|
(char*) 0,
|
|
0x0000, 0xFF, 0xFF);
|
|
LEAF_NT_ASYS( l_ifOutQLen, REPLACEABLE, "ifOutQLen", VT_GAUGE,
|
|
READ_ACCESS, TABULAR, null_test_async,
|
|
ifEntryGet, null_set_async, ifEntryNext,
|
|
(char*) 0,
|
|
0x0000, 0xFF, 0xFF);
|
|
LEAF_NT_ASYS( l_ifSpecific, REPLACEABLE, "ifSpecific", VT_OBJECT,
|
|
READ_ACCESS, TABULAR, null_test_async,
|
|
ifEntryGet, null_set_async, ifEntryNext,
|
|
(char*) 0,
|
|
0x0000, 0xFF, 0xFF);
|
|
STATIC
|
|
MIBARC_T a_ifEntry[] = {
|
|
ARC(1, l_ifIndex),
|
|
ARC(2, l_ifDescr),
|
|
ARC(3, l_ifType),
|
|
ARC(4, l_ifMtu),
|
|
ARC(5, l_ifSpeed),
|
|
ARC(6, l_ifPhysAddress),
|
|
ARC(7, l_ifAdminStatus),
|
|
ARC(8, l_ifOperStatus),
|
|
ARC(9, l_ifLastChange),
|
|
ARC(10, l_ifInOctets),
|
|
ARC(11, l_ifInUcastPkts),
|
|
ARC(12, l_ifInNUcastPkts),
|
|
ARC(13, l_ifInDiscards),
|
|
ARC(14, l_ifInErrors),
|
|
ARC(15, l_ifInUnknownProtos),
|
|
ARC(16, l_ifOutOctets),
|
|
ARC(17, l_ifOutUcastPkts),
|
|
ARC(18, l_ifOutNUcastPkts),
|
|
ARC(19, l_ifOutDiscards),
|
|
ARC(20, l_ifOutErrors),
|
|
ARC(21, l_ifOutQLen),
|
|
ARC(22, l_ifSpecific),
|
|
END_OF_ARC_LIST };
|
|
STATIC
|
|
MIBNODE_T n_ifEntry = NODE_NT("ifEntry",
|
|
REPLACEABLE, a_ifEntry);
|
|
|
|
STATIC
|
|
MIBARC_T a_ifTable[] = {
|
|
ARC(1, n_ifEntry),
|
|
END_OF_ARC_LIST };
|
|
STATIC
|
|
MIBNODE_T n_ifTable = NODE_NT("ifTable",
|
|
REPLACEABLE, a_ifTable);
|
|
|
|
STATIC
|
|
MIBARC_T a_interfaces[] = {
|
|
ARC(1, l_ifNumber),
|
|
ARC(2, n_ifTable),
|
|
END_OF_ARC_LIST };
|
|
MIBNODE_T if1213_root_node = NODE_NT("interfaces",
|
|
REPLACEABLE, a_interfaces);
|
|
|