This file is indexed.

/usr/share/snmp/mib2c-data/generic-get-char.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
47
48
49
#############################################################  -*- c -*-
## generic include for XXX. Do not use directly.
##
## $Id: generic-get-char.m2i 12011 2005-03-18 23:01:44Z rstory $
########################################################################
@if $m2c_mark_boundary == 1@
/** START code generated by $RCSfile$ $Revision: 12011 $ */
@end@
########################################################################
##
##   enums first
@if $m2c_node_skip_mapping == -1@
@   eval $m2c_node_skip_mapping = 1@
@end@
@if ($node.enums == 1) && ("$node.perltype" eq "BITS")@
    /*
     * TODO:242:o: update or replace BITS tests (get).
     * If $node data is stored in SNMP BIT order, individual
     * bit tests are redundant, and you can do a straight copy. If not, then
     * update each if condition to test the correct bit.
     *
     * NOTE WELL: setting bit '0' for:
     *             C  0x0000001
     *          SNMP  0x8000000
     *
@     if $m2c_node_skip_mapping != 1@
     * define correct bit to test for all INTERNAL_* defines in the
     * ${context} enum or contants header file.
     */
$example_start
    $m2c_node_lh = 0;
@    foreach $e $v enum@
@        include m2c_setup_enum.m2i@
    if ($m2c_ctx_rh & INTERNAL_$context.uc_$m2c_iname) {
        $m2c_node_lh |= $m2c_ename;
    }
@    end@ # for each
$example_end
@  else@
     * assuming generated code keeps $node BITS in SNMP order.
     */
    $m2c_node_lh = @m2c_ctx_rh;
@  end@
@end@
##
########################################################################
@if $m2c_mark_boundary == 1@
/** END code generated by $RCSfile$ $Revision: 12011 $ */
@end@