64
64
.RI "int \fBsprint_realloc_timeticks\fP (u_char **buf, size_t *buf_len, size_t *out_len, int allow_realloc, const \fBnetsnmp_variable_list\fP *var, const struct \fBenum_list\fP *enums, const char *hint, const char *units)"
66
.RI "\fIPrints a timetick variable into a buffer. \fP"
66
.RI "\fIPrints a timetick \fBvariable\fP into a buffer. \fP"
68
68
.RI "int \fBsprint_realloc_hinted_integer\fP (u_char **buf, size_t *buf_len, size_t *out_len, int allow_realloc, long val, const char decimaltype, const char *hint, const char *units)"
111
111
.RI "int \fBsprint_realloc_by_type\fP (u_char **buf, size_t *buf_len, size_t *out_len, int allow_realloc, const \fBnetsnmp_variable_list\fP *var, const struct \fBenum_list\fP *enums, const char *hint, const char *units)"
113
.RI "\fIUniversal print routine, prints a variable into a buffer according to the variable type. \fP"
113
.RI "\fIUniversal print routine, prints a \fBvariable\fP into a buffer according to the \fBvariable\fP type. \fP"
115
.RI "\fBtree\fP * \fBget_tree_head\fP (void)"
115
.RI "struct \fBtree\fP * \fBget_tree_head\fP (void)"
117
.RI "\fIRetrieves the tree head. \fP"
117
.RI "\fIRetrieves the \fBtree\fP head. \fP"
119
119
.RI "char * \fBsnmp_out_toggle_options\fP (char *options)"
173
173
.RI "void \fBnetsnmp_sprint_realloc_objid\fP (u_char **buf, size_t *buf_len, size_t *out_len, int allow_realloc, int *buf_overflow, const oid *objid, size_t objidlen)"
176
.RI "\fBtree\fP * \fBnetsnmp_sprint_realloc_objid_tree\fP (u_char **buf, size_t *buf_len, size_t *out_len, int allow_realloc, int *buf_overflow, const oid *objid, size_t objidlen)"
176
.RI "struct \fBtree\fP * \fBnetsnmp_sprint_realloc_objid_tree\fP (u_char **buf, size_t *buf_len, size_t *out_len, int allow_realloc, int *buf_overflow, const oid *objid, size_t objidlen)"
179
179
.RI "int \fBsprint_realloc_objid\fP (u_char **buf, size_t *buf_len, size_t *out_len, int allow_realloc, const oid *objid, size_t objidlen)"
199
199
.RI "void \fBprint_variable\fP (const oid *objid, size_t objidlen, const \fBnetsnmp_variable_list\fP *\fBvariable\fP)"
201
.RI "\fIPrints a variable to stdout. \fP"
201
.RI "\fIPrints a \fBvariable\fP to stdout. \fP"
203
203
.RI "void \fBfprint_variable\fP (FILE *f, const oid *objid, size_t objidlen, const \fBnetsnmp_variable_list\fP *\fBvariable\fP)"
205
.RI "\fIPrints a variable to a file descriptor. \fP"
205
.RI "\fIPrints a \fBvariable\fP to a file descriptor. \fP"
207
207
.RI "int \fBsprint_realloc_value\fP (u_char **buf, size_t *buf_len, size_t *out_len, int allow_realloc, const oid *objid, size_t objidlen, const \fBnetsnmp_variable_list\fP *\fBvariable\fP)"
238
238
.RI "int \fBdump_realloc_oid_to_string\fP (const oid *objid, size_t objidlen, u_char **buf, size_t *buf_len, size_t *out_len, int allow_realloc, char quotechar)"
241
.RI "\fBtree\fP * \fBget_tree\fP (const oid *objid, size_t objidlen, struct \fBtree\fP *subtree)"
241
.RI "struct \fBtree\fP * \fBget_tree\fP (const oid *objid, size_t objidlen, struct \fBtree\fP *subtree)"
244
244
.RI "void \fBprint_description\fP (oid *objid, size_t objidlen, int width)"
428
420
Definition at line 271 of file mib.c.
430
References netsnmp_ds_get_boolean(), and snmp_realloc().
432
Referenced by sprint_realloc_hexstring().
433
421
.SS "int build_oid (oid ** out, size_t * out_len, oid * prefix, size_t prefix_len, \fBnetsnmp_variable_list\fP * indexes)"
435
Definition at line 3578 of file mib.c.
437
References build_oid_noalloc(), tree::indexes, and snmp_clone_mem().
439
Referenced by _netsnmp_tdata_generate_index_oid(), netsnmp_table_build_oid(), and netsnmp_table_data_generate_index_oid().
423
xxx-rks: should free previous value?
425
Definition at line 3581 of file mib.c.
440
426
.SS "int build_oid_segment (\fBnetsnmp_variable_list\fP * var)"
442
Takes the value in VAR and turns it into an OID segment in var->name.
428
Takes the value in VAR and turns it into an OID segment in var->name. \fBParameters:\fP
446
\fIvar\fP The variable.
430
\fIvar\fP The \fBvariable\fP.
456
Definition at line 3442 of file mib.c.
458
References netsnmp_vardata::integer, variable_list::name, variable_list::name_length, variable_list::name_loc, NULL, netsnmp_vardata::objid, SNMP_FREE, netsnmp_vardata::string, variable_list::type, variable_list::val, and variable_list::val_len.
460
Referenced by build_oid_noalloc().
440
Definition at line 3445 of file mib.c.
461
441
.SS "void fprint_description (FILE * f, oid * objid, size_t objidlen, int width)"
463
Prints on oid description into a file descriptor.
443
Prints on oid description into a file descriptor. \fBParameters:\fP
467
445
\fIf\fP The file descriptor to print to.
478
Definition at line 4437 of file mib.c.
480
References NULL, SNMP_FREE, and sprint_realloc_description().
482
Referenced by print_description().
456
Definition at line 4451 of file mib.c.
483
457
.SS "void fprint_objid (FILE * f, const oid * objid, size_t objidlen)"
485
Prints an oid to a file descriptor.
459
Prints an oid to a file descriptor. \fBParameters:\fP
489
461
\fIf\fP The file descriptor to print to.
498
Definition at line 3163 of file mib.c.
500
References netsnmp_sprint_realloc_objid_tree(), NULL, and SNMP_FREE.
502
Referenced by print_objid().
470
Definition at line 3164 of file mib.c.
503
471
.SS "void fprint_variable (FILE * f, const oid * objid, size_t objidlen, const \fBnetsnmp_variable_list\fP * variable)"
505
Prints a variable to a file descriptor.
473
Prints a \fBvariable\fP to a file descriptor. \fBParameters:\fP
509
475
\fIf\fP The file descriptor to print to.
513
479
\fIobjidlen\fP The length of teh object id.
515
\fIvariable\fP The variable to print.
481
\fI\fBvariable\fP\fP The \fBvariable\fP to print.
520
Definition at line 3317 of file mib.c.
522
References NULL, SNMP_FREE, and sprint_realloc_variable().
524
Referenced by print_variable().
525
.SS "struct \fBtree\fP* get_tree_head (void)"
527
Retrieves the tree head.
486
Definition at line 3318 of file mib.c.
487
.SS "struct \fBtree\fP* get_tree_head (void)\fC [read]\fP"
489
Retrieves the \fBtree\fP head. \fBReturns:\fP
536
496
Definition at line 2017 of file mib.c.
538
References tree_head.
540
Referenced by netsnmp_config_parse_table_set(), and snmp_add_var().
541
.SS "int get_wild_node (const char * name, oid * objid, size_t * objidlen)"
497
.SS "int get_wild_node (const char * name, oid * objid, size_t * objidlen)"\fBSee also:\fP
545
499
comments on find_best_tree_node for usage after first time.
550
Definition at line 5457 of file mib.c.
552
References get_node(), tree::label, NULL, and tree_head.
554
Referenced by snmp_parse_oid().
504
Definition at line 5490 of file mib.c.
555
505
.SS "void netsnmp_fixup_mib_directory (void)"
557
Definition at line 2479 of file mib.c.
559
References netsnmp_get_mib_directory(), netsnmp_getenv(), netsnmp_set_mib_directory(), NULL, and SNMP_FREE.
561
Referenced by netsnmp_init_mib().
507
swap in the new value and repeat
509
Definition at line 2480 of file mib.c.
562
510
.SS "char* netsnmp_get_mib_directory (void)"
564
Definition at line 2432 of file mib.c.
566
References netsnmp_ds_get_string(), netsnmp_getenv(), netsnmp_set_mib_directory(), and NULL.
568
Referenced by netsnmp_fixup_mib_directory(), and netsnmp_init_mib().
512
Check if the environment \fBvariable\fP is set
514
Not set use hard coded path
516
Definition at line 2433 of file mib.c.
569
517
.SS "void netsnmp_init_mib (void)"
571
Initialises the mib reader.
573
Reads in all settings from the environment.
575
Definition at line 2526 of file mib.c.
577
References tree::child_list, tree::label, _PrefixList::len, Mib, mib_prefixes, netsnmp_fixup_mib_directory(), netsnmp_get_mib_directory(), netsnmp_getenv(), NULL, SNMP_FREE, _PrefixList::str, and tree_head.
579
Referenced by init_mib(), and init_snmp().
519
Initialises the mib reader. Reads in all settings from the environment.
521
Definition at line 2527 of file mib.c.
580
522
.SS "int netsnmp_oid2chars (char * C, int L, const oid * O)"
582
Converts an OID to its character form.
584
in example 5 . 1 . 2 . 3 . 4 . 5 = 12345
524
Converts an OID to its character form. in example 5 . 1 . 2 . 3 . 4 . 5 = 12345
586
526
\fBParameters:\fP
629
Definition at line 6272 of file mib.c.
631
References netsnmp_oid2chars().
565
Definition at line 6305 of file mib.c.
632
566
.SS "void netsnmp_set_mib_directory (const char * dir)"
634
Definition at line 2377 of file mib.c.
636
References netsnmp_ds_get_string(), netsnmp_ds_set_string(), NULL, and SNMP_FREE.
638
Referenced by netsnmp_fixup_mib_directory(), and netsnmp_get_mib_directory().
568
New dir starts with '+', thus we add it.
570
If dir starts with '+' skip '+' it.
572
set_string calls strdup, so if we allocated memory, free it
574
Definition at line 2378 of file mib.c.
639
575
.SS "int netsnmp_str2oid (const char * S, oid * O, int L)"
641
Converts a string to its OID form.
643
in example 'hello' = 5 . 'h' . 'e' . 'l' . 'l' . 'o'
577
Converts a string to its OID form. in example 'hello' = 5 . 'h' . 'e' . 'l' . 'l' . 'o'
645
579
\fBParameters:\fP
661
Definition at line 6209 of file mib.c.
595
Definition at line 6242 of file mib.c.
662
596
.SS "void print_description (oid * objid, size_t objidlen, int width)"
664
Prints on oid description on stdout.
598
Prints on oid description on stdout. \fBSee also:\fP
668
600
\fBfprint_description\fP
673
Definition at line 4421 of file mib.c.
675
References fprint_description().
605
Definition at line 4435 of file mib.c.
676
606
.SS "void print_mib (FILE * fp)"
678
Prints the MIBs to the file fp.
608
Prints the MIBs to the file fp. \fBParameters:\fP
682
610
\fIfp\fP The file descriptor to print to.
687
Definition at line 2741 of file mib.c.
689
References tree_head.
615
Definition at line 2742 of file mib.c.
690
616
.SS "void print_objid (const oid * objid, size_t objidlen)"
692
Prints an oid to stdout.
618
Prints an oid to stdout. \fBParameters:\fP
696
620
\fIobjid\fP The oid to print
703
Definition at line 3149 of file mib.c.
705
References fprint_objid().
627
Definition at line 3150 of file mib.c.
706
628
.SS "void print_variable (const oid * objid, size_t objidlen, const \fBnetsnmp_variable_list\fP * variable)"
708
Prints a variable to stdout.
630
Prints a \fBvariable\fP to stdout. \fBParameters:\fP
712
632
\fIobjid\fP The object id.
714
634
\fIobjidlen\fP The length of teh object id.
716
\fIvariable\fP The variable to print.
636
\fI\fBvariable\fP\fP The \fBvariable\fP to print.
721
Definition at line 3301 of file mib.c.
723
References fprint_variable().
641
Definition at line 3302 of file mib.c.
724
642
.SS "int read_objid (const char * input, oid * output, size_t * out_len)"
726
Reads an object identifier from an input string into internal OID form.
728
When called, out_len must hold the maximum length of the output array.
644
Reads an object identifier from an input string into internal OID form. When called, out_len must hold the maximum length of the output array.
730
646
\fBParameters:\fP
744
660
If an error occurs, this function returns 0 and MAY set snmp_errno. snmp_errno is NOT set if SET_SNMP_ERROR evaluates to nothing. This can make multi-threaded use a tiny bit more robust.
746
Definition at line 2839 of file mib.c.
748
References get_node(), netsnmp_ds_get_boolean(), NULL, SNMP_FREE, and tree_head.
750
Referenced by read_config_read_objid(), and snmp_parse_oid().
662
Definition at line 2840 of file mib.c.
751
663
.SS "void set_function (struct \fBtree\fP * subtree)"
753
Set's the printing function printomat in a subtree according it's type.
665
Set's the printing function printomat in a subtree according it's type. \fBParameters:\fP
757
667
\fIsubtree\fP The subtree to set.
762
Definition at line 2762 of file mib.c.
764
References NULL, tree::printer, tree::printomat, sprint_realloc_bitstring(), sprint_realloc_by_type(), sprint_realloc_counter(), sprint_realloc_counter64(), sprint_realloc_gauge(), sprint_realloc_integer(), sprint_realloc_ipaddress(), sprint_realloc_networkaddress(), sprint_realloc_nsapaddress(), sprint_realloc_null(), sprint_realloc_object_identifier(), sprint_realloc_octet_string(), sprint_realloc_opaque(), sprint_realloc_timeticks(), sprint_realloc_uinteger(), and tree::type.
672
Definition at line 2763 of file mib.c.
765
673
.SS "void shutdown_mib (void)"
767
675
Unloads all mibs.
769
Definition at line 2716 of file mib.c.
771
References tree::label, Mib, NULL, SNMP_FREE, and tree_head.
773
Referenced by snmp_shutdown().
677
Definition at line 2717 of file mib.c.
774
678
.SS "void snmp_in_toggle_options_usage (const char * lead, FILE * outf)"
776
Prints out a help usage for the in* toggle options.
680
Prints out a help usage for the in* toggle options. \fBParameters:\fP
780
682
\fIlead\fP The lead to print for every line.
787
Definition at line 2289 of file mib.c.
689
Definition at line 2290 of file mib.c.
788
690
.SS "oid* snmp_parse_oid (const char * argv, oid * root, size_t * rootlen)"
790
Given a string, parses an oid out of it (if possible).
792
It will try to parse it based on predetermined configuration if present or by every method possible otherwise. If a suffix has been registered using NETSNMP_DS_LIB_OIDSUFFIX, it will be appended to the input string before processing.
692
Given a string, parses an oid out of it (if possible). It will try to parse it based on predetermined configuration if present or by every method possible otherwise. If a suffix has been registered using NETSNMP_DS_LIB_OIDSUFFIX, it will be appended to the input string before processing.
794
694
\fBParameters:\fP
810
Definition at line 5815 of file mib.c.
812
References clear_tree_flags(), get_node(), get_wild_node(), netsnmp_ds_get_boolean(), netsnmp_ds_get_string(), NULL, read_objid(), and tree_head.
814
Referenced by netsnmp_config_parse_table_set(), and snmp_add_var().
710
Definition at line 5848 of file mib.c.
815
711
.SS "int sprint_realloc_asciistring (u_char ** buf, size_t * buf_len, size_t * out_len, int allow_realloc, const u_char * cp, size_t len)"
817
Prints an ascii string into a buffer.
819
The characters pointed by *cp are encoded as an ascii string.
713
Prints an ascii string into a buffer. The characters pointed by *cp are encoded as an ascii string.
821
715
If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
845
739
Definition at line 367 of file mib.c.
847
References snmp_realloc().
849
Referenced by asn_build_string(), asn_parse_string(), snprint_asciistring(), and sprint_realloc_octet_string().
850
740
.SS "int sprint_realloc_badtype (u_char ** buf, size_t * buf_len, size_t * out_len, int allow_realloc, const \fBnetsnmp_variable_list\fP * var, const struct \fBenum_list\fP * enums, const char * hint, const char * units)"
852
Fallback routine for a bad type, prints 'Variable has bad type' into a buffer.
854
If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
742
Fallback routine for a bad type, prints 'Variable has bad type' into a buffer. If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
856
744
\fBParameters:\fP
882
770
Definition at line 1902 of file mib.c.
884
References snmp_strcat().
886
Referenced by snprint_badtype(), and sprint_realloc_by_type().
887
771
.SS "int sprint_realloc_bitstring (u_char ** buf, size_t * buf_len, size_t * out_len, int allow_realloc, const \fBnetsnmp_variable_list\fP * var, const struct \fBenum_list\fP * enums, const char * hint, const char * units)"
889
Prints a bit string into a buffer.
891
If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
773
Prints a bit string into a buffer. If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
893
775
\fBParameters:\fP
919
801
Definition at line 1763 of file mib.c.
921
References netsnmp_vardata::bitstring, enum_list::label, netsnmp_ds_get_boolean(), enum_list::next, NULL, snmp_strcat(), sprint_realloc_by_type(), sprint_realloc_hexstring(), variable_list::type, variable_list::val, variable_list::val_len, and enum_list::value.
923
Referenced by set_function(), snprint_bitstring(), and sprint_realloc_by_type().
924
802
.SS "int sprint_realloc_by_type (u_char ** buf, size_t * buf_len, size_t * out_len, int allow_realloc, const \fBnetsnmp_variable_list\fP * var, const struct \fBenum_list\fP * enums, const char * hint, const char * units)"
926
Universal print routine, prints a variable into a buffer according to the variable type.
928
If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
804
Universal print routine, prints a \fBvariable\fP into a buffer according to the \fBvariable\fP type. If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
930
806
\fBParameters:\fP
956
832
Definition at line 1937 of file mib.c.
958
References sprint_realloc_badtype(), sprint_realloc_bitstring(), sprint_realloc_counter(), sprint_realloc_counter64(), sprint_realloc_gauge(), sprint_realloc_integer(), sprint_realloc_ipaddress(), sprint_realloc_null(), sprint_realloc_object_identifier(), sprint_realloc_octet_string(), sprint_realloc_opaque(), sprint_realloc_timeticks(), sprint_realloc_uinteger(), and variable_list::type.
960
Referenced by set_function(), snprint_by_type(), sprint_realloc_bitstring(), sprint_realloc_counter(), sprint_realloc_counter64(), sprint_realloc_gauge(), sprint_realloc_integer(), sprint_realloc_ipaddress(), sprint_realloc_networkaddress(), sprint_realloc_nsapaddress(), sprint_realloc_null(), sprint_realloc_object_identifier(), sprint_realloc_octet_string(), sprint_realloc_opaque(), sprint_realloc_timeticks(), sprint_realloc_uinteger(), sprint_realloc_value(), sprint_realloc_variable(), and table_helper_handler().
961
833
.SS "int sprint_realloc_counter (u_char ** buf, size_t * buf_len, size_t * out_len, int allow_realloc, const \fBnetsnmp_variable_list\fP * var, const struct \fBenum_list\fP * enums, const char * hint, const char * units)"
963
Prints a counter value into a buffer.
965
If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
835
Prints a counter value into a buffer. If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
967
837
\fBParameters:\fP
993
863
Definition at line 1530 of file mib.c.
995
References netsnmp_vardata::integer, netsnmp_ds_get_boolean(), NULL, snmp_strcat(), sprint_realloc_by_type(), variable_list::type, and variable_list::val.
997
Referenced by set_function(), snprint_counter(), and sprint_realloc_by_type().
998
864
.SS "int sprint_realloc_counter64 (u_char ** buf, size_t * buf_len, size_t * out_len, int allow_realloc, const \fBnetsnmp_variable_list\fP * var, const struct \fBenum_list\fP * enums, const char * hint, const char * units)"
1000
Prints a counter into a buffer.
1002
The variable var is encoded as a counter value.
866
Prints a counter into a buffer. The \fBvariable\fP var is encoded as a counter value.
1004
868
If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
1032
896
Definition at line 846 of file mib.c.
1034
References netsnmp_vardata::counter64, netsnmp_ds_get_boolean(), NULL, snmp_cstrcat, sprint_realloc_by_type(), variable_list::type, and variable_list::val.
1036
Referenced by set_function(), snprint_counter64(), sprint_realloc_by_type(), and sprint_realloc_opaque().
1037
897
.SS "int sprint_realloc_gauge (u_char ** buf, size_t * buf_len, size_t * out_len, int allow_realloc, const \fBnetsnmp_variable_list\fP * var, const struct \fBenum_list\fP * enums, const char * hint, const char * units)"
1039
Prints a gauge value into a buffer.
1041
If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
899
Prints a gauge value into a buffer. If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
1043
901
\fBParameters:\fP
1069
927
Definition at line 1457 of file mib.c.
1071
References netsnmp_vardata::integer, netsnmp_ds_get_boolean(), NULL, snmp_strcat(), sprint_realloc_by_type(), sprint_realloc_hinted_integer(), variable_list::type, and variable_list::val.
1073
Referenced by set_function(), snprint_gauge(), and sprint_realloc_by_type().
1074
928
.SS "int sprint_realloc_hinted_integer (u_char ** buf, size_t * buf_len, size_t * out_len, int allow_realloc, long val, const char decimaltype, const char * hint, const char * units)"
1076
Prints an integer according to the hint into a buffer.
1078
If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
930
Prints an integer according to the hint into a buffer. If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
1080
932
\fBParameters:\fP
1106
958
Definition at line 1183 of file mib.c.
1108
References snmp_strcat().
1110
Referenced by snprint_hinted_integer(), and sprint_realloc_gauge().
1111
959
.SS "int sprint_realloc_integer (u_char ** buf, size_t * buf_len, size_t * out_len, int allow_realloc, const \fBnetsnmp_variable_list\fP * var, const struct \fBenum_list\fP * enums, const char * hint, const char * units)"
1113
Prints an integer into a buffer.
1115
If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
961
Prints an integer into a buffer. If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
1117
963
\fBParameters:\fP
1143
989
Definition at line 1257 of file mib.c.
1145
References netsnmp_vardata::integer, enum_list::label, netsnmp_ds_get_boolean(), enum_list::next, NULL, snmp_strcat(), sprint_realloc_by_type(), variable_list::type, variable_list::val, and enum_list::value.
1147
Referenced by set_function(), snprint_integer(), and sprint_realloc_by_type().
1148
990
.SS "int sprint_realloc_ipaddress (u_char ** buf, size_t * buf_len, size_t * out_len, int allow_realloc, const \fBnetsnmp_variable_list\fP * var, const struct \fBenum_list\fP * enums, const char * hint, const char * units)"
1150
Prints an ip-address into a buffer.
1152
If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
992
Prints an ip-address into a buffer. If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
1154
994
\fBParameters:\fP
1180
1020
Definition at line 1659 of file mib.c.
1182
References netsnmp_ds_get_boolean(), NULL, snmp_realloc(), snmp_strcat(), sprint_realloc_by_type(), netsnmp_vardata::string, variable_list::type, and variable_list::val.
1184
Referenced by set_function(), snprint_ipaddress(), and sprint_realloc_by_type().
1185
1021
.SS "int sprint_realloc_networkaddress (u_char ** buf, size_t * buf_len, size_t * out_len, int allow_realloc, const \fBnetsnmp_variable_list\fP * var, const struct \fBenum_list\fP * enums, const char * hint, const char * units)"
1187
Prints a network address into a buffer.
1189
If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
1023
Prints a network address into a buffer. If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
1191
1025
\fBParameters:\fP
1217
1051
Definition at line 1593 of file mib.c.
1219
References netsnmp_ds_get_boolean(), NULL, snmp_realloc(), snmp_strcat(), sprint_realloc_by_type(), netsnmp_vardata::string, variable_list::type, variable_list::val, and variable_list::val_len.
1221
Referenced by set_function(), and snprint_networkaddress().
1222
1052
.SS "int sprint_realloc_null (u_char ** buf, size_t * buf_len, size_t * out_len, int allow_realloc, const \fBnetsnmp_variable_list\fP * var, const struct \fBenum_list\fP * enums, const char * hint, const char * units)"
1224
Prints a null value into a buffer.
1226
If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
1054
Prints a null value into a buffer. If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
1228
1056
\fBParameters:\fP
1254
1082
Definition at line 1719 of file mib.c.
1256
References netsnmp_ds_get_boolean(), NULL, snmp_strcat(), sprint_realloc_by_type(), and variable_list::type.
1258
Referenced by set_function(), snprint_null(), and sprint_realloc_by_type().
1259
1083
.SS "int sprint_realloc_object_identifier (u_char ** buf, size_t * buf_len, size_t * out_len, int allow_realloc, const \fBnetsnmp_variable_list\fP * var, const struct \fBenum_list\fP * enums, const char * hint, const char * units)"
1261
Prints an object identifier into a buffer.
1263
If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
1085
Prints an object identifier into a buffer. If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
1265
1087
\fBParameters:\fP
1291
1113
Definition at line 1039 of file mib.c.
1293
References netsnmp_ds_get_boolean(), netsnmp_sprint_realloc_objid_tree(), NULL, netsnmp_vardata::objid, snmp_strcat(), sprint_realloc_by_type(), variable_list::type, variable_list::val, and variable_list::val_len.
1295
Referenced by set_function(), snprint_object_identifier(), and sprint_realloc_by_type().
1296
1114
.SS "int sprint_realloc_octet_string (u_char ** buf, size_t * buf_len, size_t * out_len, int allow_realloc, const \fBnetsnmp_variable_list\fP * var, const struct \fBenum_list\fP * enums, const char * hint, const char * units)"
1298
Prints an octet string into a buffer.
1300
The variable var is encoded as octet string.
1116
Prints an octet string into a buffer. The \fBvariable\fP var is encoded as octet string.
1302
1118
If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
1330
1146
Definition at line 427 of file mib.c.
1332
References netsnmp_ds_get_boolean(), netsnmp_ds_get_int(), NULL, snmp_cstrcat, SNMP_MIN, snmp_realloc(), sprint_realloc_asciistring(), sprint_realloc_by_type(), sprint_realloc_hexstring(), sprint_realloc_octet_string(), netsnmp_vardata::string, variable_list::type, variable_list::val, and variable_list::val_len.
1334
Referenced by set_function(), snprint_octet_string(), sprint_realloc_by_type(), and sprint_realloc_octet_string().
1335
1147
.SS "int sprint_realloc_opaque (u_char ** buf, size_t * buf_len, size_t * out_len, int allow_realloc, const \fBnetsnmp_variable_list\fP * var, const struct \fBenum_list\fP * enums, const char * hint, const char * units)"
1337
Prints an object identifier into a buffer.
1339
If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
1149
Prints an object identifier into a buffer. If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
1341
1151
\fBParameters:\fP
1367
1177
Definition at line 949 of file mib.c.
1369
References netsnmp_ds_get_boolean(), NULL, snmp_cstrcat, snmp_strcat(), sprint_realloc_by_type(), sprint_realloc_counter64(), sprint_realloc_hexstring(), netsnmp_vardata::string, variable_list::type, variable_list::val, and variable_list::val_len.
1371
Referenced by set_function(), snprint_opaque(), and sprint_realloc_by_type().
1372
1178
.SS "int sprint_realloc_timeticks (u_char ** buf, size_t * buf_len, size_t * out_len, int allow_realloc, const \fBnetsnmp_variable_list\fP * var, const struct \fBenum_list\fP * enums, const char * hint, const char * units)"
1374
Prints a timetick variable into a buffer.
1376
If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
1180
Prints a timetick \fBvariable\fP into a buffer. If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
1378
1182
\fBParameters:\fP
1404
1208
Definition at line 1109 of file mib.c.
1406
References netsnmp_vardata::integer, netsnmp_ds_get_boolean(), NULL, snmp_strcat(), sprint_realloc_by_type(), variable_list::type, and variable_list::val.
1408
Referenced by set_function(), snprint_timeticks(), and sprint_realloc_by_type().
1409
1209
.SS "int sprint_realloc_uinteger (u_char ** buf, size_t * buf_len, size_t * out_len, int allow_realloc, const \fBnetsnmp_variable_list\fP * var, const struct \fBenum_list\fP * enums, const char * hint, const char * units)"
1411
Prints an unsigned integer into a buffer.
1413
If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
1211
Prints an unsigned integer into a buffer. If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
1415
1213
\fBParameters:\fP
1441
1239
Definition at line 1360 of file mib.c.
1443
References netsnmp_vardata::integer, enum_list::label, netsnmp_ds_get_boolean(), enum_list::next, NULL, snmp_strcat(), sprint_realloc_by_type(), variable_list::type, variable_list::val, and enum_list::value.
1445
Referenced by set_function(), snprint_uinteger(), and sprint_realloc_by_type().
1446
1240
.SS "char* uptime_string (u_long timeticks, char * buf)"
1448
Converts timeticks to hours, minutes, seconds string.
1450
CMU compatible does not show centiseconds.
1242
Converts timeticks to hours, minutes, seconds string. CMU compatible does not show centiseconds.
1452
1244
\fBParameters:\fP