📄 vmacsnmp.h
字号:
/*
* $Log:: /OEM Source Code/Spantree/vmacsnmp $
*
* 1 12/04/98 2:36p Release Engineer
* code cleanup, bug fixes, code style
* changes, linted, system level test
* STP v4.3.0
*
* 1 2/06/96 11:06p Ross
* Adding new version control
*/
/* $Modname: vmacsnmp.h$ $version: 1.2$ $date: 03/31/95$ */
/*
* $lgb$
1.0 06/15/94 ross
1.1 06/15/94 ross cosmetic changes and snmp access routines.
1.2 03/31/95 ross Changes for new rwutils library.
* $lge$
*/
/************************************************************************/
/* Copyright (C) 1994-1998 RouterWare, Inc. */
/* Unpublished - rights reserved under the Copyright Laws of the */
/* United States. Use, duplication, or disclosure by the */
/* Government is subject to restrictions as set forth in */
/* subparagraph (c)(1)(ii) of the Rights in Technical Data and */
/* Computer Software clause at 252.227-7013. */
/* RouterWare, Inc., 3961 MacArthur Blvd. Suite 212, Newport Beach Ca */
/************************************************************************/
SNMP_TABLE_ENTRY_PARAMETERS spanning_tree_snmp_table_parameters[] =
{
{(ULONG) NULL,
TRUE,
0x01,
{{
SNMP_SCALAR_TYPE,
sizeof (ULONG),
offsetof (STP_PORT_CLASS,dot1dBasePortIfIndex),
TRUE,
NULL,
FALSE,
&stp_class.number_of_spanning_tree_ports,
TRUE
}},
MIB_TABLE_AS_AN_ARRAY,
&stp_class.port[0],
sizeof (STP_PORT_CLASS),
NUMBER_OF_SPANNING_TREE_PORTS
},
{(ULONG) NULL,
TRUE,
0x01,
{{
SNMP_SCALAR_TYPE,
sizeof (ULONG),
offsetof (FILTERING_DATABASE_ENTRY,links),
FALSE
}},
MIB_TABLE_AS_A_LINKED_LIST,
&stp_class.filtering_entries_queue
},
{(ULONG) &stp_class,
FALSE
}
};
SNMP_TABLE_ENTRY spanning_tree_snmp_table[] =
{
{"dot1dBaseBridgeAddress",sizeof (MAC_ADDRESS),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_mac_address,
FALSE,
FALSE,
(ULONG) offsetof (STP_CLASS,this_bridge.bridge_id.address),
&spanning_tree_snmp_table_parameters[2]
},
{"dot1dBaseNumPorts",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ushort,
FALSE,
FALSE,
(ULONG) offsetof (STP_CLASS,number_of_spanning_tree_ports),
&spanning_tree_snmp_table_parameters[2]
},
{"dot1dBaseType",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_byte,
FALSE,
FALSE,
(ULONG) offsetof (STP_CLASS,dot1dBaseType),
&spanning_tree_snmp_table_parameters[2]
},
{"dot1dBasePort",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_port_number,
FALSE,
FALSE,
(ULONG) offsetof (STP_PORT_CLASS,dot1dBasePort),
&spanning_tree_snmp_table_parameters[0]
},
{"dot1dBasePortIfIndex",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_port_number,
TRUE,
FALSE,
(ULONG) offsetof (STP_PORT_CLASS,dot1dBasePortIfIndex),
&spanning_tree_snmp_table_parameters[0]
},
{"dot1dBasePortCircuit",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_port_number,
FALSE,
FALSE,
(ULONG) offsetof (STP_PORT_CLASS,dot1dBasePortCircuit),
&spanning_tree_snmp_table_parameters[0]
},
{"dot1dBasePortDelayExceededDiscards",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ulong,
FALSE,
FALSE,
(ULONG) offsetof (STP_PORT_CLASS,dot1dBasePortDelayExceededDiscards),
&spanning_tree_snmp_table_parameters[0]
},
{"dot1dBasePortMtuExceededDiscards",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ulong,
FALSE,
FALSE,
(ULONG) offsetof (STP_PORT_CLASS,dot1dBasePortMtuExceededDiscards),
&spanning_tree_snmp_table_parameters[0]
},
{"dot1dStpProtocolSpecification",sizeof (ULONG),(SNMP_ACCESS_FUNCTION)snmp_get_or_set_byte,
FALSE,
FALSE,
(ULONG) offsetof (STP_CLASS,dot1dStpProtocolSpecification),
&spanning_tree_snmp_table_parameters[2]
},
{"dot1dStpPriority",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ushort,
FALSE,
FALSE,
(ULONG) offsetof (STP_CLASS,this_bridge.bridge_id.priority),
&spanning_tree_snmp_table_parameters[2]
},
{"dot1dStpTimeSinceTopologyChange",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ulong,
FALSE,
FALSE,
(ULONG) offsetof (STP_CLASS,this_bridge.timer_topology_tick),
&spanning_tree_snmp_table_parameters[2]
},
{"dot1dStpTopChanges",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ulong,
FALSE,
FALSE,
(ULONG) offsetof (STP_CLASS,this_bridge.number_of_topology_changes),
&spanning_tree_snmp_table_parameters[2]
},
{"dot1dStpDesignatedRoot",sizeof (BRIDGE_IDENTIFIER),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_8_byte_object,
FALSE,
FALSE,
(ULONG) offsetof (STP_CLASS,this_bridge.root_id),
&spanning_tree_snmp_table_parameters[2]
},
{"dot1dStpRootCost",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ushort,
FALSE,
FALSE,
(ULONG) offsetof (STP_CLASS,this_bridge.root_path_cost),
&spanning_tree_snmp_table_parameters[2]
},
{"dot1dStpRootPort",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_2_byte_object,
FALSE,
FALSE,
(ULONG) offsetof (STP_CLASS,this_bridge.root_port_id),
&spanning_tree_snmp_table_parameters[2]
},
{"dot1dStpMaxAge",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ushort,
FALSE,
FALSE,
(ULONG) offsetof (STP_CLASS,this_bridge.max_age),
&spanning_tree_snmp_table_parameters[2]
},
{"dot1dStpHelloTime",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ushort,
FALSE,
FALSE,
(ULONG) offsetof (STP_CLASS,this_bridge.hello_time),
&spanning_tree_snmp_table_parameters[2]
},
{"dot1dStpHoldTime",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ushort,
FALSE,
FALSE,
(ULONG) offsetof (STP_CLASS,this_bridge.hold_time),
&spanning_tree_snmp_table_parameters[2]
},
{"dot1dStpForwardDelay",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ushort,
FALSE,
FALSE,
(ULONG) offsetof (STP_CLASS,this_bridge.forward_delay),
&spanning_tree_snmp_table_parameters[2]
},
{"dot1dStpBridgeMaxAge",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ushort,
FALSE,
FALSE,
(ULONG) offsetof (STP_CLASS,this_bridge.bridge_max_age),
&spanning_tree_snmp_table_parameters[2]
},
{"dot1dStpBridgeHelloTime",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ushort,
FALSE,
FALSE,
(ULONG) offsetof (STP_CLASS,this_bridge.bridge_hello_time),
&spanning_tree_snmp_table_parameters[2]
},
{"dot1dStpBridgeForwardDelay",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ushort,
FALSE,
FALSE,
(ULONG) offsetof (STP_CLASS,this_bridge.bridge_forward_delay),
&spanning_tree_snmp_table_parameters[2]
},
{"dot1dStpPort",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_byte,
FALSE,
FALSE,
(ULONG) offsetof (STP_PORT_CLASS,port_id.number),
&spanning_tree_snmp_table_parameters[0]
},
{"dot1dStpPortPriority",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_byte,
FALSE,
FALSE,
(ULONG) offsetof (STP_PORT_CLASS,port_id.priority),
&spanning_tree_snmp_table_parameters[0]
},
{"dot1dStpPortState",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_byte,
FALSE,
FALSE,
(ULONG) offsetof (STP_PORT_CLASS,state),
&spanning_tree_snmp_table_parameters[0]
},
{"dot1dStpPortEnable",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_byte,
FALSE,
FALSE,
(ULONG) offsetof (STP_PORT_CLASS,dot1dStpPortEnable),
&spanning_tree_snmp_table_parameters[0]
},
{"dot1dStpPortPathCost",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ushort,
FALSE,
FALSE,
(ULONG) offsetof (STP_PORT_CLASS,path_cost),
&spanning_tree_snmp_table_parameters[0]
},
{"dot1dStpPortDesignatedRoot",sizeof (BRIDGE_IDENTIFIER),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_8_byte_object,
FALSE,
FALSE,
(ULONG) offsetof (STP_PORT_CLASS,designated_root_id),
&spanning_tree_snmp_table_parameters[0]
},
{"dot1dStpPortDesignatedCost",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ulong,
FALSE,
FALSE,
(ULONG) offsetof (STP_PORT_CLASS,designated_root_path_cost),
&spanning_tree_snmp_table_parameters[0]
},
{"dot1dStpPortDesignatedBridge",sizeof (BRIDGE_IDENTIFIER),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_8_byte_object,
FALSE,
FALSE,
(ULONG) offsetof (STP_PORT_CLASS,designated_bridge_id),
&spanning_tree_snmp_table_parameters[0]
},
{"dot1dStpPortDesignatedPort",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ulong,
FALSE,
FALSE,
(ULONG) offsetof (STP_PORT_CLASS,designated_port_id),
&spanning_tree_snmp_table_parameters[0]
},
{"dot1dStpPortForwardTransitions",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ulong,
FALSE,
FALSE,
(ULONG) offsetof (STP_PORT_CLASS,number_of_forward_transitions),
&spanning_tree_snmp_table_parameters[0]
},
{"dot1dTpLearnedEntryDiscards",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ulong,
FALSE,
FALSE,
(ULONG) offsetof (STP_PORT_CLASS,number_of_frames_discarded),
&spanning_tree_snmp_table_parameters[0]
},
{"dot1dTpAgingTime",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ulong,
FALSE,
FALSE,
(ULONG) offsetof (STP_CLASS,this_bridge.aging_time_for_fd),
&spanning_tree_snmp_table_parameters[0]
},
{"dot1dTpFdbAddress",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_mac_address,
FALSE,
FALSE,
(ULONG) offsetof (FILTERING_DATABASE_ENTRY,source_address),
&spanning_tree_snmp_table_parameters[2]
},
{"dot1dTpFdbPort",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ulong,
FALSE,
FALSE,
(ULONG) offsetof (FILTERING_DATABASE_ENTRY,port_number),
&spanning_tree_snmp_table_parameters[2]
},
{"dot1dTpFdbStatus",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_byte,
FALSE,
FALSE,
(ULONG) offsetof (FILTERING_DATABASE_ENTRY,type),
&spanning_tree_snmp_table_parameters[2]
},
{"dot1dTpPort",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_port_number,
FALSE,
FALSE,
(ULONG) offsetof (STP_PORT_CLASS,dot1dTpPort),
&spanning_tree_snmp_table_parameters[0]
},
{"dot1dTpPortMaxInfo",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ulong,
FALSE,
FALSE,
(ULONG) offsetof (STP_PORT_CLASS,maximum_packet_size),
&spanning_tree_snmp_table_parameters[0]
},
{"dot1dTpPortInFrames",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ulong,
FALSE,
FALSE,
(ULONG) offsetof (STP_PORT_CLASS,dot1dTpPortInFrames),
&spanning_tree_snmp_table_parameters[0]
},
{"dot1dTpPortOutFrames",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ulong,
FALSE,
FALSE,
(ULONG) offsetof (STP_PORT_CLASS,number_of_frames_forwarded),
&spanning_tree_snmp_table_parameters[1]
},
{"dot1dTpPortInDiscards",sizeof (ULONG),(SNMP_ACCESS_FUNCTION) snmp_get_or_set_ulong,
FALSE,
FALSE,
(ULONG) offsetof (STP_PORT_CLASS,number_of_frames_discarded),
&spanning_tree_snmp_table_parameters[1]
},
{"",0x0000,NULL,
(ULONG) NULL,
(ULONG) NULL,
(ULONG) NULL}
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -