This file is indexed.

/usr/share/snmp/mib2c-data/generic-table-indexes-varbind-setup.m2i is in libsnmp-base 5.4.3~dfsg-2.8+deb7u1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#############################################################  -*- 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@