This file is indexed.

/usr/share/snmp/mib2c-data/generic-value-map.m2i is in libsnmp-base 5.4.3~dfsg-2.4ubuntu1.3.

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
#############################################################  -*- c -*-
## generic include for XXX. Do not use directly.
##
## $Id: generic-value-map.m2i 11593 2004-12-10 14:46:09Z rstory $
########################################################################
@if $m2c_mark_boundary == 1@
/** START code generated by $RCSfile$ $Revision: 11593 $ */
@end@
########################################################################
## }
@if $m2c_node_skip_mapping == 1@
    /** no mapping */
@   include generic-ctx-get.m2i@
@else@ // mapping
    /*
     * TODO:246:r: |-> Define $node mapping.
     * Map values between raw/native values and MIB values
     *
@   if $m2c_node_needlength == 1@
     * if(MFD_SUCCESS !=
     *    ${node}_map(&$m2c_ctx_lh, &$m2c_ctx_lhs,
     *                $m2c_ctx_rh, $m2c_ctx_rhs, $m2c_node_realloc)) {
     *    return MFD_ERROR;
     * }
     */
@      include generic-ctx-get.m2i@
##
@   elsif ($node.enums == 1) && ("$node.perltype" eq "INTEGER")@
##
    * enums usually need mapping.
    */
    if(MFD_SUCCESS !=
       ${node}_map(&${m2c_ctx_lh}, ${m2c_ctx_rh} )) {
        return MFD_ERROR;
    }
@   else@ // enums
     * Integer based value can usually just do a direct copy.
     */
@   include generic-ctx-get.m2i@
@   end@ 
@end@ // mapping
##
########################################################################
@if $m2c_mark_boundary == 1@
/** END code generated by $RCSfile$ $Revision: 11593 $ */
@end@