Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
share
/
snmp
/
mib2c-data
/
Upload File :
New :
File
Dir
//usr/share/snmp/mib2c-data/generic-table-indexes-varbind-setup.m2i
############################################################# -*- c -*- ## generic include for XXX. Do not use directly. ## ## $Id: generic-table-indexes-varbind-setup.m2i 10286 2004-05-18 17:35:47Z rstory $ ######################################################################## @if $m2c_mark_boundary == 1@ /** START code generated by $RCSfile$ $Revision: 10286 $ */ @end@ ######################################################################## ## int err = SNMP_ERR_NOERROR; /* * temp storage for parsing indexes */ @ eval $m2c_dii_first = ""@ @ foreach $node index@ @ include m2c_setup_node.m2i@ @ if "x$m2c_dii_first" eq "x"@ @ eval $m2c_dii_first = $node@ @ eval $m2c_dii_tmp = "var_${node}.next_variable = "@ @ else@ @ eval $m2c_dii_tmp = "$m2c_dii_tmp &var_${node}; var_${node}.next_variable = "@ @ end@ /* * $m2c_node_summary */ netsnmp_variable_list var_$node; @ end@ @ eval $m2c_dii_tmp = "$m2c_dii_tmp NULL;"@ /* * set up varbinds */ @ eval $mfd_temp = "idx_vars"@ @ foreach $node index@ @ include m2c_setup_node.m2i@ memset( &var_$node, 0x00, sizeof(var_$node) ); var_${node}.type = $node.type; @ end@ /* * chain temp index varbinds together */ $m2c_dii_tmp ## ######################################################################## @if $m2c_mark_boundary == 1@ /** END code generated by $RCSfile$ $Revision: 10286 $ */ @end@