/usr/share/snmp/mib2c-data/default-mfd-top.m2c is in libsnmp-base 5.7.3+dfsg-1.8ubuntu3.
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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | ########################################################################
##
## DEFAULTS (no blank lines allowed)
##
########################################################################
## mark boundarys
@if "x$m2c_mark_boundary" eq "x"@
@ eval $m2c_mark_boundary = 0@
@end@
##
@if "x$mfd_readme_verbose" eq "x"@
@ eval $mfd_readme_verbose = 1@
@end@
@if "x$m2c_create_fewer_files" eq "x"@
@ eval $m2c_create_fewer_files = 0@
@end@
@if "x$mfd_processing_types" eq "x"@
@ eval $mfd_processing_types = "#"@
@end@
@if "x$m2c_code_verbose" eq "x"@
@ eval $m2c_code_verbose = 0@
@end@
@if "x$m2c_defaults_dir" eq "x"@
@ eval $m2c_defaults_dir = "defaults/"@
@end@
########################################################################
## enum constants upper or lower case? (NODE_NAME vs node_name)
@if "x$m2c_const_lc" eq "x"@
@ eval $m2c_const_lc = 0@
@end@
##
########################################################################
## prefix for all enums (NODE_NAME vs XYZ_NODE_NAME)
@if "x$m2c_const_pfx" eq "x"@
@ eval $m2c_const_pfx = ""@ # or "XYZ_"
@end@
##
########################################################################
## use temporary values in get routines, or direct pointers?
@if "x$m2c_get_use_temp" eq "x"@
@ eval $m2c_get_use_temp = 0@
@end@
##
########################################################################
########################################################################
##
## CODING STYLE
##
########################################################################
########################################################################
## allow for different style enums (#define vs const)
@if "x$m2c_const_dcl" eq "x"@
@ eval $m2c_const_dcl = "#define"@ # or "const int"
@end@
@if "m2c_const_del" eq "x"@
@ eval $m2c_const_del = ""@ # or "="
@end@
@if "x$m2c_const_sfx" eq "x"@
@ eval $m2c_const_sfx = ""@ # or ";"
@end@
##
## set defaults for mfd
##
@if "x$user_mfd_default_table_access" eq "x" @
@ eval $mfd_default_table_access = "container-cached"@
@else@
@ eval $mfd_default_table_access = "$user_mfd_default_table_access"@
@end@
##
@if "x$user_mfd_default_table_skip_mapping" eq "x" @
@ eval $mfd_default_table_skip_mapping = 1@
@else@
@ eval $mfd_default_table_skip_mapping = $user_mfd_default_table_skip_mapping@
@end@
##
@if "x$user_mfd_default_data_context" eq "x" @
@ eval $mfd_default_data_context = "generated"@
@else@
@ eval $mfd_default_data_context = "$user_mfd_default_data_context"@
@end@
##
@if "x$user_mfd_default_context_reg" eq "x" @
@ eval $mfd_default_context_reg = "netsnmp_data_list"@
@else@
@ eval $mfd_default_context_reg = "$user_mfd_default_context_reg"@
@end@
##
@if "x$user_mfd_default_data_allocate" eq "x" @
@ eval $mfd_default_data_allocate = 0@
@else@
@ eval $mfd_default_data_allocate = $user_mfd_default_data_allocate@
@end@
##
@if "x$user_mfd_default_data_cache" eq "x" @
@ eval $mfd_default_data_cache = 1@
@else@
@ eval $mfd_default_data_cache = $user_mfd_default_data_cache@
@end@
##
@if "x$user_mfd_default_data_sparse" eq "x" @
@ eval $mfd_default_data_sparse = 0@
@else@
@ eval $mfd_default_data_sparse = $user_mfd_default_data_sparse@
@end@
@if "x$user_mfd_default_undo_embed" eq "x" @
@ eval $mfd_default_undo_embed = 0@
@else@
@ eval $mfd_default_undo_embed = $user_mfd_default_undo_embed@
@end@
##
@if "x$user_mfd_default_data_init" eq "x" @
@ eval $mfd_default_data_init = 1@
@else@
@ eval $mfd_default_data_init = $user_mfd_default_data_init@
@end@
##
@if "x$user_mfd_default_data_transient" eq "x" @
@ eval $mfd_default_data_transient = 2@ # TRANSIENT
@else@
@ eval $mfd_default_data_transient = $user_mfd_default_data_transient@
@end@
##
@if "x$user_mfd_default_include_examples" eq "x" @
@ eval $mfd_default_include_examples = 1@
@else@
@ eval $mfd_default_include_examples = $user_mfd_default_include_examples@
@end@
@if "x$m2c_data_cache" eq "x"@
@ eval $m2c_data_cache = 0@
@end@
##
@if "x$user_mfd_default_generate_makefile" eq "x" @
@ eval $mfd_default_generate_makefile = 0@
@else@
@ eval $mfd_default_generate_makefile = $user_mfd_default_generate_makefile@
@end@
@if "x$user_mfd_default_generate_subagent" eq "x" @
@ eval $mfd_default_generate_subagent = 0@
@else@
@ eval $mfd_default_generate_subagent = $user_mfd_default_generate_subagent@
@end@
|