Linux cpanel.rrshost.in 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
Apache
: 109.123.238.221 | : 172.70.80.43
128 Domain
8.2.28
aev999
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
snmp /
mib2c-data /
[ HOME SHELL ]
Name
Size
Permission
Action
default-mfd-top.m2c
4.24
KB
-rw-r--r--
details-enums.m2i
2.59
KB
-rw-r--r--
details-node.m2i
3.35
KB
-rw-r--r--
details-table.m2i
999
B
-rw-r--r--
generic-ctx-copy.m2i
1007
B
-rw-r--r--
generic-ctx-get.m2i
3.47
KB
-rw-r--r--
generic-ctx-set.m2i
1007
B
-rw-r--r--
generic-data-allocate.m2i
1.59
KB
-rw-r--r--
generic-data-context.m2i
1.49
KB
-rw-r--r--
generic-get-U64.m2i
517
B
-rw-r--r--
generic-get-char.m2i
1.58
KB
-rw-r--r--
generic-get-decl-bot.m2i
760
B
-rw-r--r--
generic-get-decl.m2i
1.41
KB
-rw-r--r--
generic-get-long.m2i
519
B
-rw-r--r--
generic-get-oid.m2i
597
B
-rw-r--r--
generic-header-bottom.m2i
586
B
-rw-r--r--
generic-header-top.m2i
605
B
-rw-r--r--
generic-source-includes.m2i
794
B
-rw-r--r--
generic-table-constants.m2c
1.43
KB
-rw-r--r--
generic-table-enums.m2c
1.79
KB
-rw-r--r--
generic-table-indexes-from-oid...
2.14
KB
-rw-r--r--
generic-table-indexes-set.m2i
3.97
KB
-rw-r--r--
generic-table-indexes-to-oid.m...
1.61
KB
-rw-r--r--
generic-table-indexes-varbind-...
1.42
KB
-rw-r--r--
generic-table-indexes.m2i
2.17
KB
-rw-r--r--
generic-table-oids.m2c
3.43
KB
-rw-r--r--
generic-value-map-func.m2i
3.64
KB
-rw-r--r--
generic-value-map-reverse.m2i
1.49
KB
-rw-r--r--
generic-value-map.m2i
1.35
KB
-rw-r--r--
m2c-internal-warning.m2i
1.36
KB
-rw-r--r--
m2c_setup_enum.m2i
949
B
-rw-r--r--
m2c_setup_node.m2i
10.1
KB
-rw-r--r--
m2c_setup_table.m2i
1.62
KB
-rw-r--r--
m2c_table_save_defaults.m2i
4.37
KB
-rw-r--r--
mfd-access-container-cached-de...
17.68
KB
-rw-r--r--
mfd-access-unsorted-external-d...
40.09
KB
-rw-r--r--
mfd-data-access.m2c
10.31
KB
-rw-r--r--
mfd-data-get.m2c
4.87
KB
-rw-r--r--
mfd-data-set.m2c
4.72
KB
-rw-r--r--
mfd-doxygen.m2c
2.38
KB
-rw-r--r--
mfd-interactive-setup.m2c
11.79
KB
-rw-r--r--
mfd-interface.m2c
51.4
KB
-rw-r--r--
mfd-makefile.m2m
4.01
KB
-rw-r--r--
mfd-persistence.m2i
14.93
KB
-rw-r--r--
mfd-readme.m2c
29.72
KB
-rw-r--r--
mfd-top.m2c
16.95
KB
-rw-r--r--
node-get.m2i
3.6
KB
-rw-r--r--
node-set.m2i
7.52
KB
-rw-r--r--
node-storage.m2i
648
B
-rw-r--r--
node-validate.m2i
2.48
KB
-rw-r--r--
node-varbind-validate.m2i
2.02
KB
-rw-r--r--
parent-dependencies.m2i
1.89
KB
-rw-r--r--
parent-set.m2i
14.38
KB
-rw-r--r--
subagent.m2c
6.33
KB
-rw-r--r--
syntax-COUNTER64-get.m2i
1.13
KB
-rw-r--r--
syntax-DateAndTime-get.m2d
319
B
-rw-r--r--
syntax-DateAndTime-get.m2i
2.08
KB
-rw-r--r--
syntax-DateAndTime-readme.m2i
288
B
-rw-r--r--
syntax-InetAddress-get.m2i
2.89
KB
-rw-r--r--
syntax-InetAddress-set.m2i
852
B
-rw-r--r--
syntax-InetAddressType-get.m2i
980
B
-rw-r--r--
syntax-InetAddressType-set.m2i
938
B
-rw-r--r--
syntax-RowStatus-dependencies....
4.47
KB
-rw-r--r--
syntax-RowStatus-get.m2i
2.35
KB
-rw-r--r--
syntax-RowStatus-varbind-valid...
600
B
-rw-r--r--
syntax-StorageType-dependencie...
711
B
-rw-r--r--
syntax-TestAndIncr-get.m2i
753
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : m2c_setup_node.m2i
############################################################# -*- c -*- ## Defaults ######################################################################## @if "$m2c_node_name" ne "$node"@ ## if $node.accessible != 1, might be inaccessible index node @ eval $m2c_node_name = $node@ @ eval $m2c_node_skip_mapping = $m2c_table_skip_mapping@ @ eval $m2c_node_needlength = $node.needlength@ @ eval $m2c_node_get_comments = ""@ @ eval $m2c_node_set_comments = ""@ @ eval $m2c_node_skip_get = 0@ ##//how should a function handle a pointer to a buffer that is to small? @ eval $m2c_node_realloc = 0@ // 0=fail, 1=realloc, 2=malloc ######################################################################## ## fix some declarations ######################################################################## @ if $node.enums == 1@ ## @ if $m2c_node_skip_mapping == -1@ @ eval $m2c_node_skip_mapping = 0@ @ end@ ## ## validate some assumptions ## @ if ("$node.perltype" ne "INTEGER") && ("$node.perltype" ne "BITS")@ @ print "$node had enums, but isn't INTEGER or BITS! ($node.perltype)\n"@ @ exit@ @ end@ @ if $node.ranges == 1@ @ print "$node has enums and ranges!\n"@ @ exit@ @ end@ ## ## for a TC, prefix definition w/syntax to reduce collisions ## @ if $node.syntax ne $node.perltype@ @ eval $m2c_de_pfx = "${m2c_const_pfx}$node.syntax"@ @ else@ @ eval $m2c_de_pfx = "${m2c_const_pfx}$node"@ @ end@ @ if $m2c_const_lc == 0@ @ eval $m2c_de_pfx = uc($m2c_de_pfx)@ @ end@ @ if "$node.perltype" eq "BITS"@ @ eval $m2c_enum_sfx="_flag"@ @ eval $m2c_enum_mask="${m2c_de_pfx}_flag"@ @ if $m2c_const_lc == 0@ @ eval $m2c_enum_sfx = uc($m2c_enum_sfx)@ @ eval $m2c_enum_mask = uc($m2c_enum_mask)@ @ end@ @ else@ @ eval $m2c_enum_sfx=""@ @ end@ ## ## use longs for enums (w/out length) ## @ eval $m2c_decl = "u_long"@ @ eval $m2c_node_needlength = 0@ @ if "$node.perltype" eq "BITS"@ @ eval $m2c_node_skip_get = 1@ @ end@ @ else@ @ eval $m2c_decl = "$node.decl"@ @ end@ // enums ######################################################################## ## find max size ######################################################################## @ if $node.ranges == 1@ ## ## I do not *think* you can have both... ## @ if $node.enums == 1@ @ print "$node has enums and ranges!\n"@ @ exit@ @ end@ @ eval $m2c_node_maxlen = 0@ @ foreach $a $b range $node@ @ eval $m2c_node_maxlen = max($m2c_node_maxlen,$b)@ @ end@ @ elsif "$node.type" eq "ASN_OBJECT_ID"@ @ eval $m2c_node_maxlen = 128@ @ else@ #ranges @ eval $m2c_node_maxlen = 65535@ @ end@ #ranges ##/*#################################################################### ## set up extra params, based on if we need length ######################################################################## ## VAR_VAL : variable value. ## VAR_VAL_PTR : pointer to variable value. ## VAR_REF : variable reference. (pointer to pointer to variable value) ##*/ @ if "x$m2c_node_var_name" eq "x"@ @ eval $m2c_node_var_name="var->"@ @ end@ @ eval $m2c_node_var_val_ptr = "($m2c_decl *)${m2c_node_var_name}val.string"@ @ if $m2c_node_needlength == 1@ @ eval $m2c_XX = "($m2c_decl **)&${m2c_node_var_name}val.string,"@ @ eval $m2c_node_var_ref = "$m2c_XX &${m2c_node_var_name}val_len"@ @ eval $m2c_node_var_val = "$m2c_node_var_val_ptr, ${m2c_node_var_name}val_len"@ @ else@ @ eval $m2c_node_var_ref = "($m2c_decl *)${m2c_node_var_name}val.string"@ @ eval $m2c_node_var_val = "*($m2c_node_var_val_ptr)"@ @ end@ ## ## @ eval $m2c_node_param_val_name = "${node}_val"@ @ eval $m2c_node_param_val_lname = "${m2c_node_param_val_name}_len"@ @ eval $m2c_node_param_ref_name = "${m2c_node_param_val_name}_ptr"@ @ if $m2c_node_needlength == 1@ @ eval $m2c_node_param_val_name = "${m2c_node_param_val_name}_ptr"@ @ eval $m2c_node_param_val_lname = "${m2c_node_param_val_name}_len"@ @ eval $m2c_node_param_val_call = "${m2c_node_param_val_name}, ${m2c_node_param_val_lname}"@ @ eval $m2c_node_param_ref_name = "${m2c_node_param_ref_name}_ptr"@ @ eval $m2c_node_param_ref_lname = "${m2c_node_param_val_lname}_ptr"@ @ eval $m2c_XX = "$m2c_decl **$m2c_node_param_ref_name,"@ @ eval $m2c_node_param_ref = "$m2c_XX size_t *$m2c_node_param_ref_lname"@ @ eval $m2c_XX = "$m2c_decl *$m2c_node_param_val_name,"@ @ eval $m2c_node_param_val = "$m2c_XX size_t $m2c_node_param_val_lname"@ @ else@ @ eval $m2c_node_param_ref = "$m2c_decl * $m2c_node_param_ref_name"@ @ eval $m2c_node_param_val = "$m2c_decl $m2c_node_param_val_name"@ @ eval $m2c_node_param_val_call = "$m2c_node_param_val_name"@ ## @ end@ ## ######################################################################## ## include user overrides ######################################################################## @ include -ifexists ${m2c_defaults_dir}node-${node}.m2d@ ######################################################################## ## ######################################################################## @ if $m2c_get_use_temp == 1@ @ eval $m2c_node_lh = "temp_$node"@ @ eval $m2c_node_lhs = "temp_${node}_len"@ @ else@ @ eval $m2c_node_lh = "(* $m2c_node_param_ref_name )"@ @ eval $m2c_node_lhs = "(* $m2c_node_param_ref_lname )"@ @ end@ @ eval $m2c_ctx_lh="$m2c_node_lh"@ @ eval $m2c_ctx_lhs="$m2c_node_lhs"@ @ eval $m2c_ctx_lhu="bytes"@ @ eval $m2c_ctx_rh="${m2c_data_item}${node}"@ @ eval $m2c_ctx_rhs="${m2c_data_item}${node}_len"@ @ eval $m2c_ctx_rhu="elements"@ ######################################################################## ## ######################################################################## @ if $m2c_node_skip_mapping != 1@ @ if $m2c_node_needlength == 1@ @ eval $m2c_XX="$m2c_decl **mib_$m2c_node_param_ref_name,"@ @ eval $m2c_XX="$m2c_XX size_t *mib_$m2c_node_param_ref_lname,"@ @ eval $m2c_XX="$m2c_XX $m2c_decl *raw_$m2c_node_param_val_name,"@ @ eval $m2c_XX="$m2c_XX size_t raw_$m2c_node_param_val_lname,"@ @ eval $m2c_node_map_param="$m2c_XX int allow_realloc"@ @ else@ @ eval $m2c_XX="$m2c_decl *mib_$m2c_node_param_ref_name,"@ @ eval $m2c_node_map_param="$m2c_XX $m2c_decl raw_$m2c_node_param_val_name"@ @ end@ @ end@ ######################################################################## ## ######################################################################## @ eval $m2c_node_srh = "$m2c_node_param_val_name"@ @ eval $m2c_node_srhs = "$m2c_node_param_val_lname"@ @end@ ######################################################################## ## @eval $m2c_node_summary="$node($node.subid)/$node.syntax/$node.type/$node.decl($m2c_decl)/"@ @if $node.needlength == 0@ @ eval $m2c_node_summary="$m2c_node_summary/l"@ @else@ @ eval $m2c_node_summary="$m2c_node_summary/L"@ @end@ @if $node.noaccess == 0@ @ eval $m2c_node_summary="$m2c_node_summary/A"@ @else@ @ eval $m2c_node_summary="$m2c_node_summary/a"@ @end@ @if $node.settable == 0@ @ eval $m2c_node_summary="$m2c_node_summary/w"@ @else@ @ eval $m2c_node_summary="$m2c_node_summary/W"@ @end@ @if $node.enums == 0@ @ eval $m2c_node_summary="$m2c_node_summary/e"@ @else@ @ eval $m2c_node_summary="$m2c_node_summary/E"@ @end@ @if $node.ranges == 0@ @ eval $m2c_node_summary="$m2c_node_summary/r"@ @else@ @ eval $m2c_node_summary="$m2c_node_summary/R"@ @end@ @if $node.hasdefval == 0@ @ eval $m2c_node_summary="$m2c_node_summary/d"@ @else@ @ eval $m2c_node_summary="$m2c_node_summary/D"@ @end@ @if $node.hashint == 0@ @ eval $m2c_node_summary="$m2c_node_summary/h"@ @else@ @ eval $m2c_node_summary="$m2c_node_summary/H"@ @end@ ######################################################################## @ ifconf ${m2c_defaults_dir}node-${node}.m2d@ @ else@ @ push@ @ open ${m2c_defaults_dir}node-${node}.m2d@ @ eval $m2c_conf_comment = "##"@ @ eval $m2c_conf_comment_divider = "########################################################################"@ $m2c_conf_comment_divider $m2c_conf_comment $m2c_conf_comment mib2c node setting for $node $m2c_conf_comment $m2c_conf_comment Remove the '##' comment delimeter to change settings $m2c_conf_comment $m2c_conf_comment_divider $m2c_conf_comment Node declaration type? This is the C type to be used when $m2c_conf_comment declaring a variable to hold a value for this column. It $m2c_conf_comment is strongly recommended that you do not change this value. $m2c_conf_comment If you do, it is likely to break lots of generated code that $m2c_conf_comment you will have to fix. $m2c_conf_comment $m2c_conf_comment @eval $@m2c_decl = $m2c_decl@ $m2c_conf_comment $m2c_conf_comment_divider $m2c_conf_comment Generate/use mapping functions? Useful if the MIB defines $m2c_conf_comment a different format or enumerations than you data store uses. $m2c_conf_comment $m2c_conf_comment @eval $@m2c_node_skip_mapping = $m2c_node_skip_mapping@ $m2c_conf_comment $m2c_conf_comment_divider $m2c_conf_comment Need a length for the value? Most OCTET-STRING based values will $m2c_conf_comment need a length, most other types will not. Do not change this one $m2c_conf_comment unless you know what you are doing! You will almost certainly need $m2c_conf_comment to fix lots of generated code if you do. $m2c_conf_comment $m2c_conf_comment @eval $@m2c_node_needlength = $m2c_node_needlength@ $m2c_conf_comment $m2c_conf_comment_divider $m2c_conf_comment Skip get? Set this to 1 if you do not want to implement a value $m2c_conf_comment for this column. $m2c_conf_comment $m2c_conf_comment @eval $@m2c_node_skip_get = $m2c_node_skip_get@ $m2c_conf_comment @ if $m2c_node_needlength == 1@ $m2c_conf_comment_divider $m2c_conf_comment Allow realloc when data size exceeds length? If your data $m2c_conf_comment store for this node is a pointer allocated with one of the $m2c_conf_comment alloc family functions, you can set this to 1 to use realloc $m2c_conf_comment when a new value length exceeds the old lenght. If you are $m2c_conf_comment using a fixed size buffer, this value should be 0. $m2c_conf_comment $m2c_conf_comment @eval $@m2c_node_realloc = $m2c_node_realloc@ @ end@ @ close ${m2c_defaults_dir}node-${node}.m2d@ @ pop@ @ end@
Close