summaryrefslogtreecommitdiff
path: root/man/netsnmp_mib_utilities.3
blob: 56d443448283955f6df705a4e90938b39e76e130 (plain)
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
.TH "mib parsing and datatype manipulation routines." 3 "23 May 2010" "Version 5.4.3.pre1" "net-snmp" \" -*- nroff -*-
.ad l
.nh
.SH NAME
mib parsing and datatype manipulation routines. \- 
.SS "Data Structures"

.in +1c
.ti -1c
.RI "struct \fB_PrefixList\fP"
.br
.ti -1c
.RI "struct \fBparse_hints\fP"
.br
.in -1c
.SS "Typedefs"

.in +1c
.ti -1c
.RI "typedef struct \fB_PrefixList\fP * \fBPrefixListPtr\fP"
.br
.ti -1c
.RI "typedef struct \fB_PrefixList\fP \fBPrefixList\fP"
.br
.in -1c
.SS "Enumerations"

.in +1c
.ti -1c
.RI "enum \fBinet_address_type\fP { \fBIPV4\fP =  1, \fBIPV6\fP =  2, \fBIPV4Z\fP =  3, \fBIPV6Z\fP =  4, \fBDNS\fP =  16 }"
.br
.in -1c
.SS "Functions"

.in +1c
.ti -1c
.RI "int \fB_sprint_hexstring_line\fP (u_char **buf, size_t *buf_len, size_t *out_len, int allow_realloc, const u_char *cp, size_t line_len)"
.br
.RI "\fIPrints a hexadecimal string into a buffer. \fP"
.ti -1c
.RI "int \fBsprint_realloc_hexstring\fP (u_char **buf, size_t *buf_len, size_t *out_len, int allow_realloc, const u_char *cp, size_t len)"
.br
.ti -1c
.RI "int \fBsprint_realloc_asciistring\fP (u_char **buf, size_t *buf_len, size_t *out_len, int allow_realloc, const u_char *cp, size_t len)"
.br
.RI "\fIPrints an ascii string into a buffer. \fP"
.ti -1c
.RI "int \fBsprint_realloc_octet_string\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)"
.br
.RI "\fIPrints an octet string into a buffer. \fP"
.ti -1c
.RI "int \fBsprint_realloc_counter64\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)"
.br
.RI "\fIPrints a counter into a buffer. \fP"
.ti -1c
.RI "int \fBsprint_realloc_opaque\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)"
.br
.RI "\fIPrints an object identifier into a buffer. \fP"
.ti -1c
.RI "int \fBsprint_realloc_object_identifier\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)"
.br
.RI "\fIPrints an object identifier into a buffer. \fP"
.ti -1c
.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)"
.br
.RI "\fIPrints a timetick \fBvariable\fP into a buffer. \fP"
.ti -1c
.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)"
.br
.RI "\fIPrints an integer according to the hint into a buffer. \fP"
.ti -1c
.RI "int \fBsprint_realloc_integer\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)"
.br
.RI "\fIPrints an integer into a buffer. \fP"
.ti -1c
.RI "int \fBsprint_realloc_uinteger\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)"
.br
.RI "\fIPrints an unsigned integer into a buffer. \fP"
.ti -1c
.RI "int \fBsprint_realloc_gauge\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)"
.br
.RI "\fIPrints a gauge value into a buffer. \fP"
.ti -1c
.RI "int \fBsprint_realloc_counter\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)"
.br
.RI "\fIPrints a counter value into a buffer. \fP"
.ti -1c
.RI "int \fBsprint_realloc_networkaddress\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)"
.br
.RI "\fIPrints a network address into a buffer. \fP"
.ti -1c
.RI "int \fBsprint_realloc_ipaddress\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)"
.br
.RI "\fIPrints an ip-address into a buffer. \fP"
.ti -1c
.RI "int \fBsprint_realloc_null\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)"
.br
.RI "\fIPrints a null value into a buffer. \fP"
.ti -1c
.RI "int \fBsprint_realloc_bitstring\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)"
.br
.RI "\fIPrints a bit string into a buffer. \fP"
.ti -1c
.RI "int \fBsprint_realloc_nsapaddress\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)"
.br
.ti -1c
.RI "int \fBsprint_realloc_badtype\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)"
.br
.RI "\fIFallback routine for a bad type, prints 'Variable has bad type' into a buffer. \fP"
.ti -1c
.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)"
.br
.RI "\fIUniversal print routine, prints a \fBvariable\fP into a buffer according to the \fBvariable\fP type. \fP"
.ti -1c
.RI "struct \fBtree\fP * \fBget_tree_head\fP (void)"
.br
.RI "\fIRetrieves the \fBtree\fP head. \fP"
.ti -1c
.RI "char * \fBsnmp_out_toggle_options\fP (char *options)"
.br
.ti -1c
.RI "void \fBsnmp_out_toggle_options_usage\fP (const char *lead, FILE *outf)"
.br
.ti -1c
.RI "char * \fBsnmp_in_options\fP (char *optarg, int argc, char *const *argv)"
.br
.ti -1c
.RI "char * \fBsnmp_in_toggle_options\fP (char *options)"
.br
.ti -1c
.RI "void \fBsnmp_in_toggle_options_usage\fP (const char *lead, FILE *outf)"
.br
.RI "\fIPrints out a help usage for the in* toggle options. \fP"
.ti -1c
.RI "void \fBregister_mib_handlers\fP (void)"
.br
.ti -1c
.RI "void \fBnetsnmp_set_mib_directory\fP (const char *dir)"
.br
.ti -1c
.RI "char * \fBnetsnmp_get_mib_directory\fP (void)"
.br
.ti -1c
.RI "void \fBnetsnmp_fixup_mib_directory\fP (void)"
.br
.ti -1c
.RI "void \fBnetsnmp_init_mib\fP (void)"
.br
.RI "\fIInitialises the mib reader. \fP"
.ti -1c
.RI "void \fBinit_mib\fP (void)"
.br
.ti -1c
.RI "void \fBshutdown_mib\fP (void)"
.br
.RI "\fIUnloads all mibs. \fP"
.ti -1c
.RI "void \fBprint_mib\fP (FILE *fp)"
.br
.RI "\fIPrints the MIBs to the file fp. \fP"
.ti -1c
.RI "void \fBprint_ascii_dump\fP (FILE *fp)"
.br
.ti -1c
.RI "void \fBset_function\fP (struct \fBtree\fP *subtree)"
.br
.RI "\fISet's the printing function printomat in a subtree according it's type. \fP"
.ti -1c
.RI "int \fBread_objid\fP (const char *input, oid *output, size_t *out_len)"
.br
.RI "\fIReads an object identifier from an input string into internal OID form. \fP"
.ti -1c
.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)"
.br
.ti -1c
.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)"
.br
.ti -1c
.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)"
.br
.ti -1c
.RI "int \fBsnprint_objid\fP (char *buf, size_t buf_len, const oid *objid, size_t objidlen)"
.br
.ti -1c
.RI "void \fBprint_objid\fP (const oid *objid, size_t objidlen)"
.br
.RI "\fIPrints an oid to stdout. \fP"
.ti -1c
.RI "void \fBfprint_objid\fP (FILE *f, const oid *objid, size_t objidlen)"
.br
.RI "\fIPrints an oid to a file descriptor. \fP"
.ti -1c
.RI "int \fBsprint_realloc_variable\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)"
.br
.ti -1c
.RI "int \fBsnprint_variable\fP (char *buf, size_t buf_len, const oid *objid, size_t objidlen, const \fBnetsnmp_variable_list\fP *\fBvariable\fP)"
.br
.ti -1c
.RI "void \fBprint_variable\fP (const oid *objid, size_t objidlen, const \fBnetsnmp_variable_list\fP *\fBvariable\fP)"
.br
.RI "\fIPrints a \fBvariable\fP to stdout. \fP"
.ti -1c
.RI "void \fBfprint_variable\fP (FILE *f, const oid *objid, size_t objidlen, const \fBnetsnmp_variable_list\fP *\fBvariable\fP)"
.br
.RI "\fIPrints a \fBvariable\fP to a file descriptor. \fP"
.ti -1c
.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)"
.br
.ti -1c
.RI "int \fBsnprint_value\fP (char *buf, size_t buf_len, const oid *objid, size_t objidlen, const \fBnetsnmp_variable_list\fP *\fBvariable\fP)"
.br
.ti -1c
.RI "void \fBprint_value\fP (const oid *objid, size_t objidlen, const \fBnetsnmp_variable_list\fP *\fBvariable\fP)"
.br
.ti -1c
.RI "void \fBfprint_value\fP (FILE *f, const oid *objid, size_t objidlen, const \fBnetsnmp_variable_list\fP *\fBvariable\fP)"
.br
.ti -1c
.RI "int \fBbuild_oid_segment\fP (\fBnetsnmp_variable_list\fP *var)"
.br
.RI "\fITakes the value in VAR and turns it into an OID segment in var->name. \fP"
.ti -1c
.RI "int \fBbuild_oid_noalloc\fP (oid *in, size_t in_len, size_t *out_len, oid *prefix, size_t prefix_len, \fBnetsnmp_variable_list\fP *indexes)"
.br
.ti -1c
.RI "int \fBbuild_oid\fP (oid **out, size_t *out_len, oid *prefix, size_t prefix_len, \fBnetsnmp_variable_list\fP *indexes)"
.br
.ti -1c
.RI "int \fBparse_oid_indexes\fP (oid *oidIndex, size_t oidLen, \fBnetsnmp_variable_list\fP *data)"
.br
.ti -1c
.RI "int \fBparse_one_oid_index\fP (oid **oidStart, size_t *oidLen, \fBnetsnmp_variable_list\fP *data, int complete)"
.br
.ti -1c
.RI "int \fBdump_realloc_oid_to_inetaddress\fP (const int addr_type, const oid *objid, size_t objidlen, u_char **buf, size_t *buf_len, size_t *out_len, int allow_realloc, char quotechar)"
.br
.ti -1c
.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)"
.br
.ti -1c
.RI "struct \fBtree\fP * \fBget_tree\fP (const oid *objid, size_t objidlen, struct \fBtree\fP *subtree)"
.br
.ti -1c
.RI "void \fBprint_description\fP (oid *objid, size_t objidlen, int width)"
.br
.RI "\fIPrints on oid description on stdout. \fP"
.ti -1c
.RI "void \fBfprint_description\fP (FILE *f, oid *objid, size_t objidlen, int width)"
.br
.RI "\fIPrints on oid description into a file descriptor. \fP"
.ti -1c
.RI "int \fBsnprint_description\fP (char *buf, size_t buf_len, oid *objid, size_t objidlen, int width)"
.br
.ti -1c
.RI "int \fBsprint_realloc_description\fP (u_char **buf, size_t *buf_len, size_t *out_len, int allow_realloc, oid *objid, size_t objidlen, int width)"
.br
.ti -1c
.RI "int \fBget_module_node\fP (const char *fname, const char *\fBmodule\fP, oid *objid, size_t *objidlen)"
.br
.ti -1c
.RI "int \fBget_wild_node\fP (const char *name, oid *objid, size_t *objidlen)"
.br
.ti -1c
.RI "int \fBget_node\fP (const char *name, oid *objid, size_t *objidlen)"
.br
.ti -1c
.RI "void \fBclear_tree_flags\fP (register struct \fBtree\fP *tp)"
.br
.ti -1c
.RI "void \fBprint_oid_report\fP (FILE *fp)"
.br
.ti -1c
.RI "void \fBprint_oid_report_enable_labeledoid\fP (void)"
.br
.ti -1c
.RI "void \fBprint_oid_report_enable_oid\fP (void)"
.br
.ti -1c
.RI "void \fBprint_oid_report_enable_suffix\fP (void)"
.br
.ti -1c
.RI "void \fBprint_oid_report_enable_symbolic\fP (void)"
.br
.ti -1c
.RI "void \fBprint_oid_report_enable_mibchildoid\fP (void)"
.br
.ti -1c
.RI "char * \fBuptime_string\fP (u_long timeticks, char *buf)"
.br
.RI "\fIConverts timeticks to hours, minutes, seconds string. \fP"
.ti -1c
.RI "char * \fBuptime_string_n\fP (u_long timeticks, char *buf, size_t buflen)"
.br
.ti -1c
.RI "oid * \fBsnmp_parse_oid\fP (const char *argv, oid *root, size_t *rootlen)"
.br
.RI "\fIGiven a string, parses an oid out of it (if possible). \fP"
.ti -1c
.RI "const char * \fBparse_octet_hint\fP (const char *hint, const char *value, unsigned char **new_val, int *new_val_len)"
.br
.ti -1c
.RI "u_char \fBmib_to_asn_type\fP (int mib_type)"
.br
.ti -1c
.RI "int \fBnetsnmp_str2oid\fP (const char *S, oid *O, int L)"
.br
.RI "\fIConverts a string to its OID form. \fP"
.ti -1c
.RI "int \fBnetsnmp_oid2chars\fP (char *C, int L, const oid *O)"
.br
.RI "\fIConverts an OID to its character form. \fP"
.ti -1c
.RI "int \fBnetsnmp_oid2str\fP (char *S, int L, oid *O)"
.br
.RI "\fIConverts an OID to its string form. \fP"
.ti -1c
.RI "int \fBsnprint_by_type\fP (char *buf, size_t buf_len, \fBnetsnmp_variable_list\fP *var, const struct \fBenum_list\fP *enums, const char *hint, const char *units)"
.br
.ti -1c
.RI "int \fBsnprint_hexstring\fP (char *buf, size_t buf_len, const u_char *cp, size_t len)"
.br
.ti -1c
.RI "int \fBsnprint_asciistring\fP (char *buf, size_t buf_len, const u_char *cp, size_t len)"
.br
.ti -1c
.RI "int \fBsnprint_octet_string\fP (char *buf, size_t buf_len, const \fBnetsnmp_variable_list\fP *var, const struct \fBenum_list\fP *enums, const char *hint, const char *units)"
.br
.ti -1c
.RI "int \fBsnprint_opaque\fP (char *buf, size_t buf_len, const \fBnetsnmp_variable_list\fP *var, const struct \fBenum_list\fP *enums, const char *hint, const char *units)"
.br
.ti -1c
.RI "int \fBsnprint_object_identifier\fP (char *buf, size_t buf_len, const \fBnetsnmp_variable_list\fP *var, const struct \fBenum_list\fP *enums, const char *hint, const char *units)"
.br
.ti -1c
.RI "int \fBsnprint_timeticks\fP (char *buf, size_t buf_len, const \fBnetsnmp_variable_list\fP *var, const struct \fBenum_list\fP *enums, const char *hint, const char *units)"
.br
.ti -1c
.RI "int \fBsnprint_hinted_integer\fP (char *buf, size_t buf_len, long val, const char *hint, const char *units)"
.br
.ti -1c
.RI "int \fBsnprint_integer\fP (char *buf, size_t buf_len, const \fBnetsnmp_variable_list\fP *var, const struct \fBenum_list\fP *enums, const char *hint, const char *units)"
.br
.ti -1c
.RI "int \fBsnprint_uinteger\fP (char *buf, size_t buf_len, const \fBnetsnmp_variable_list\fP *var, const struct \fBenum_list\fP *enums, const char *hint, const char *units)"
.br
.ti -1c
.RI "int \fBsnprint_gauge\fP (char *buf, size_t buf_len, const \fBnetsnmp_variable_list\fP *var, const struct \fBenum_list\fP *enums, const char *hint, const char *units)"
.br
.ti -1c
.RI "int \fBsnprint_counter\fP (char *buf, size_t buf_len, const \fBnetsnmp_variable_list\fP *var, const struct \fBenum_list\fP *enums, const char *hint, const char *units)"
.br
.ti -1c
.RI "int \fBsnprint_networkaddress\fP (char *buf, size_t buf_len, const \fBnetsnmp_variable_list\fP *var, const struct \fBenum_list\fP *enums, const char *hint, const char *units)"
.br
.ti -1c
.RI "int \fBsnprint_ipaddress\fP (char *buf, size_t buf_len, const \fBnetsnmp_variable_list\fP *var, const struct \fBenum_list\fP *enums, const char *hint, const char *units)"
.br
.ti -1c
.RI "int \fBsnprint_null\fP (char *buf, size_t buf_len, const \fBnetsnmp_variable_list\fP *var, const struct \fBenum_list\fP *enums, const char *hint, const char *units)"
.br
.ti -1c
.RI "int \fBsnprint_bitstring\fP (char *buf, size_t buf_len, const \fBnetsnmp_variable_list\fP *var, const struct \fBenum_list\fP *enums, const char *hint, const char *units)"
.br
.ti -1c
.RI "int \fBsnprint_nsapaddress\fP (char *buf, size_t buf_len, const \fBnetsnmp_variable_list\fP *var, const struct \fBenum_list\fP *enums, const char *hint, const char *units)"
.br
.ti -1c
.RI "int \fBsnprint_counter64\fP (char *buf, size_t buf_len, const \fBnetsnmp_variable_list\fP *var, const struct \fBenum_list\fP *enums, const char *hint, const char *units)"
.br
.ti -1c
.RI "int \fBsnprint_badtype\fP (char *buf, size_t buf_len, const \fBnetsnmp_variable_list\fP *var, const struct \fBenum_list\fP *enums, const char *hint, const char *units)"
.br
.in -1c
.SS "Variables"

.in +1c
.ti -1c
.RI "struct \fBtree\fP * \fBtree_head\fP"
.br
.ti -1c
.RI "struct \fBtree\fP * \fBMib\fP"
.br
.ti -1c
.RI "oid \fBRFC1213_MIB\fP [] = { 1, 3, 6, 1, 2, 1 }"
.br
.ti -1c
.RI "\fBPrefixList\fP \fBmib_prefixes\fP []"
.br
.in -1c
.SH "Function Documentation"
.PP 
.SS "int _sprint_hexstring_line (u_char ** buf, size_t * buf_len, size_t * out_len, int allow_realloc, const u_char * cp, size_t line_len)"
.PP
Prints a hexadecimal string into a buffer. The characters pointed by *cp are encoded as hexadecimal string.
.PP
If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
.PP
\fBParameters:\fP
.RS 4
\fIbuf\fP address of the buffer to print to. 
.br
\fIbuf_len\fP address to an integer containing the size of buf. 
.br
\fIout_len\fP incremented by the number of characters printed. 
.br
\fIallow_realloc\fP if not zero reallocate the buffer to fit the needed size. 
.br
\fIcp\fP the array of characters to encode. 
.br
\fIline_len\fP the array length of cp.
.RE
.PP
\fBReturns:\fP
.RS 4
1 on success, or 0 on failure (out of memory, or buffer to small when not allowed to realloc.) 
.RE
.PP

.PP
Definition at line 271 of file mib.c.
.SS "int build_oid (oid ** out, size_t * out_len, oid * prefix, size_t prefix_len, \fBnetsnmp_variable_list\fP * indexes)"
.PP
xxx-rks: should free previous value? 
.PP
Definition at line 3581 of file mib.c.
.SS "int build_oid_segment (\fBnetsnmp_variable_list\fP * var)"
.PP
Takes the value in VAR and turns it into an OID segment in var->name. \fBParameters:\fP
.RS 4
\fIvar\fP The \fBvariable\fP.
.RE
.PP
\fBReturns:\fP
.RS 4
SNMPERR_SUCCESS or SNMPERR_GENERR 
.RE
.PP

.PP
Definition at line 3445 of file mib.c.
.SS "void fprint_description (FILE * f, oid * objid, size_t objidlen, int width)"
.PP
Prints on oid description into a file descriptor. \fBParameters:\fP
.RS 4
\fIf\fP The file descriptor to print to. 
.br
\fIobjid\fP The object identifier. 
.br
\fIobjidlen\fP The object id length. 
.br
\fIwidth\fP Number of subidentifiers. 
.RE
.PP

.PP
Definition at line 4451 of file mib.c.
.SS "void fprint_objid (FILE * f, const oid * objid, size_t objidlen)"
.PP
Prints an oid to a file descriptor. \fBParameters:\fP
.RS 4
\fIf\fP The file descriptor to print to. 
.br
\fIobjid\fP The oid to print 
.br
\fIobjidlen\fP The length of oidid. 
.RE
.PP

.PP
Definition at line 3164 of file mib.c.
.SS "void fprint_variable (FILE * f, const oid * objid, size_t objidlen, const \fBnetsnmp_variable_list\fP * variable)"
.PP
Prints a \fBvariable\fP to a file descriptor. \fBParameters:\fP
.RS 4
\fIf\fP The file descriptor to print to. 
.br
\fIobjid\fP The object id. 
.br
\fIobjidlen\fP The length of teh object id. 
.br
\fI\fBvariable\fP\fP The \fBvariable\fP to print. 
.RE
.PP

.PP
Definition at line 3318 of file mib.c.
.SS "struct \fBtree\fP* get_tree_head (void)\fC [read]\fP"
.PP
Retrieves the \fBtree\fP head. \fBReturns:\fP
.RS 4
the \fBtree\fP head. 
.RE
.PP

.PP
Definition at line 2017 of file mib.c.
.SS "int get_wild_node (const char * name, oid * objid, size_t * objidlen)"\fBSee also:\fP
.RS 4
comments on find_best_tree_node for usage after first time. 
.RE
.PP

.PP
Definition at line 5490 of file mib.c.
.SS "void netsnmp_fixup_mib_directory (void)"
.PP
swap in the new value and repeat 
.PP
Definition at line 2480 of file mib.c.
.SS "char* netsnmp_get_mib_directory (void)"
.PP
Check if the environment \fBvariable\fP is set
.PP
Not set use hard coded path 
.PP
Definition at line 2433 of file mib.c.
.SS "void netsnmp_init_mib (void)"
.PP
Initialises the mib reader. Reads in all settings from the environment. 
.PP
Definition at line 2527 of file mib.c.
.SS "int netsnmp_oid2chars (char * C, int L, const oid * O)"
.PP
Converts an OID to its character form. in example 5 . 1 . 2 . 3 . 4 . 5 = 12345
.PP
\fBParameters:\fP
.RS 4
\fIC\fP The character buffer. 
.br
\fIL\fP The length of the buffer. 
.br
\fIO\fP The oid.
.RE
.PP
\fBReturns:\fP
.RS 4
0 on Sucess, 1 on failure. 
.RE
.PP

.PP
length 
.PP
Definition at line 6277 of file mib.c.
.SS "int netsnmp_oid2str (char * S, int L, oid * O)"
.PP
Converts an OID to its string form. in example 5 . 'h' . 'e' . 'l' . 'l' . 'o' = 'hello\\0' (null terminated)
.PP
\fBParameters:\fP
.RS 4
\fIS\fP The character string buffer. 
.br
\fIL\fP The length of the string buffer. 
.br
\fIO\fP The oid.
.RE
.PP
\fBReturns:\fP
.RS 4
0 on Sucess, 1 on failure. 
.RE
.PP

.PP
Definition at line 6305 of file mib.c.
.SS "void netsnmp_set_mib_directory (const char * dir)"
.PP
New dir starts with '+', thus we add it.
.PP
If dir starts with '+' skip '+' it.
.PP
set_string calls strdup, so if we allocated memory, free it 
.PP
Definition at line 2378 of file mib.c.
.SS "int netsnmp_str2oid (const char * S, oid * O, int L)"
.PP
Converts a string to its OID form. in example 'hello' = 5 . 'h' . 'e' . 'l' . 'l' . 'o'
.PP
\fBParameters:\fP
.RS 4
\fIS\fP The string. 
.br
\fIO\fP The oid. 
.br
\fIL\fP The length of the oid.
.RE
.PP
\fBReturns:\fP
.RS 4
0 on Sucess, 1 on failure. 
.RE
.PP

.PP
Definition at line 6242 of file mib.c.
.SS "void print_description (oid * objid, size_t objidlen, int width)"
.PP
Prints on oid description on stdout. \fBSee also:\fP
.RS 4
\fBfprint_description\fP 
.RE
.PP

.PP
Definition at line 4435 of file mib.c.
.SS "void print_mib (FILE * fp)"
.PP
Prints the MIBs to the file fp. \fBParameters:\fP
.RS 4
\fIfp\fP The file descriptor to print to. 
.RE
.PP

.PP
Definition at line 2742 of file mib.c.
.SS "void print_objid (const oid * objid, size_t objidlen)"
.PP
Prints an oid to stdout. \fBParameters:\fP
.RS 4
\fIobjid\fP The oid to print 
.br
\fIobjidlen\fP The length of oidid. 
.RE
.PP

.PP
Definition at line 3150 of file mib.c.
.SS "void print_variable (const oid * objid, size_t objidlen, const \fBnetsnmp_variable_list\fP * variable)"
.PP
Prints a \fBvariable\fP to stdout. \fBParameters:\fP
.RS 4
\fIobjid\fP The object id. 
.br
\fIobjidlen\fP The length of teh object id. 
.br
\fI\fBvariable\fP\fP The \fBvariable\fP to print. 
.RE
.PP

.PP
Definition at line 3302 of file mib.c.
.SS "int read_objid (const char * input, oid * output, size_t * out_len)"
.PP
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.
.PP
\fBParameters:\fP
.RS 4
\fIinput\fP the input string. 
.br
\fIoutput\fP the oid wirte. 
.br
\fIout_len\fP number of subid's in output.
.RE
.PP
\fBReturns:\fP
.RS 4
1 if successful.
.RE
.PP
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. 
.PP
Definition at line 2840 of file mib.c.
.SS "void set_function (struct \fBtree\fP * subtree)"
.PP
Set's the printing function printomat in a subtree according it's type. \fBParameters:\fP
.RS 4
\fIsubtree\fP The subtree to set. 
.RE
.PP

.PP
Definition at line 2763 of file mib.c.
.SS "void shutdown_mib (void)"
.PP
Unloads all mibs. 
.PP
Definition at line 2717 of file mib.c.
.SS "void snmp_in_toggle_options_usage (const char * lead, FILE * outf)"
.PP
Prints out a help usage for the in* toggle options. \fBParameters:\fP
.RS 4
\fIlead\fP The lead to print for every line. 
.br
\fIoutf\fP The file descriptor to write to. 
.RE
.PP

.PP
Definition at line 2290 of file mib.c.
.SS "oid* snmp_parse_oid (const char * argv, oid * root, size_t * rootlen)"
.PP
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.
.PP
\fBParameters:\fP
.RS 4
\fIargv\fP The OID to string parse 
.br
\fIroot\fP An OID array where the results are stored. 
.br
\fIrootlen\fP The max length of the array going in and the data length coming out.
.RE
.PP
\fBReturns:\fP
.RS 4
The root oid pointer if successful, or NULL otherwise. 
.RE
.PP

.PP
Definition at line 5848 of file mib.c.
.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)"
.PP
Prints an ascii string into a buffer. The characters pointed by *cp are encoded as an ascii string.
.PP
If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
.PP
\fBParameters:\fP
.RS 4
\fIbuf\fP address of the buffer to print to. 
.br
\fIbuf_len\fP address to an integer containing the size of buf. 
.br
\fIout_len\fP incremented by the number of characters printed. 
.br
\fIallow_realloc\fP if not zero reallocate the buffer to fit the needed size. 
.br
\fIcp\fP the array of characters to encode. 
.br
\fIlen\fP the array length of cp.
.RE
.PP
\fBReturns:\fP
.RS 4
1 on success, or 0 on failure (out of memory, or buffer to small when not allowed to realloc.) 
.RE
.PP

.PP
Definition at line 367 of file mib.c.
.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)"
.PP
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.)
.PP
\fBParameters:\fP
.RS 4
\fIbuf\fP Address of the buffer to print to. 
.br
\fIbuf_len\fP Address to an integer containing the size of buf. 
.br
\fIout_len\fP Incremented by the number of characters printed. 
.br
\fIallow_realloc\fP if not zero reallocate the buffer to fit the needed size. 
.br
\fIvar\fP The \fBvariable\fP to encode. 
.br
\fIenums\fP The enumeration ff this \fBvariable\fP is enumerated. may be NULL. 
.br
\fIhint\fP Contents of the DISPLAY-HINT clause of the MIB. See RFC 1903 Section 3.1 for details. may be NULL. 
.br
\fIunits\fP Contents of the UNITS clause of the MIB. may be NULL.
.RE
.PP
\fBReturns:\fP
.RS 4
1 on success, or 0 on failure (out of memory, or buffer to small when not allowed to realloc.) 
.RE
.PP

.PP
Definition at line 1902 of file mib.c.
.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)"
.PP
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.)
.PP
\fBParameters:\fP
.RS 4
\fIbuf\fP Address of the buffer to print to. 
.br
\fIbuf_len\fP Address to an integer containing the size of buf. 
.br
\fIout_len\fP Incremented by the number of characters printed. 
.br
\fIallow_realloc\fP if not zero reallocate the buffer to fit the needed size. 
.br
\fIvar\fP The \fBvariable\fP to encode. 
.br
\fIenums\fP The enumeration ff this \fBvariable\fP is enumerated. may be NULL. 
.br
\fIhint\fP Contents of the DISPLAY-HINT clause of the MIB. See RFC 1903 Section 3.1 for details. may be NULL. 
.br
\fIunits\fP Contents of the UNITS clause of the MIB. may be NULL.
.RE
.PP
\fBReturns:\fP
.RS 4
1 on success, or 0 on failure (out of memory, or buffer to small when not allowed to realloc.) 
.RE
.PP

.PP
Definition at line 1763 of file mib.c.
.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)"
.PP
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.)
.PP
\fBParameters:\fP
.RS 4
\fIbuf\fP Address of the buffer to print to. 
.br
\fIbuf_len\fP Address to an integer containing the size of buf. 
.br
\fIout_len\fP Incremented by the number of characters printed. 
.br
\fIallow_realloc\fP if not zero reallocate the buffer to fit the needed size. 
.br
\fIvar\fP The \fBvariable\fP to encode. 
.br
\fIenums\fP The enumeration ff this \fBvariable\fP is enumerated. may be NULL. 
.br
\fIhint\fP Contents of the DISPLAY-HINT clause of the MIB. See RFC 1903 Section 3.1 for details. may be NULL. 
.br
\fIunits\fP Contents of the UNITS clause of the MIB. may be NULL.
.RE
.PP
\fBReturns:\fP
.RS 4
1 on success, or 0 on failure (out of memory, or buffer to small when not allowed to realloc.) 
.RE
.PP

.PP
Definition at line 1937 of file mib.c.
.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)"
.PP
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.)
.PP
\fBParameters:\fP
.RS 4
\fIbuf\fP Address of the buffer to print to. 
.br
\fIbuf_len\fP Address to an integer containing the size of buf. 
.br
\fIout_len\fP Incremented by the number of characters printed. 
.br
\fIallow_realloc\fP if not zero reallocate the buffer to fit the needed size. 
.br
\fIvar\fP The \fBvariable\fP to encode. 
.br
\fIenums\fP The enumeration ff this \fBvariable\fP is enumerated. may be NULL. 
.br
\fIhint\fP Contents of the DISPLAY-HINT clause of the MIB. See RFC 1903 Section 3.1 for details. may be NULL. 
.br
\fIunits\fP Contents of the UNITS clause of the MIB. may be NULL.
.RE
.PP
\fBReturns:\fP
.RS 4
1 on success, or 0 on failure (out of memory, or buffer to small when not allowed to realloc.) 
.RE
.PP

.PP
Definition at line 1530 of file mib.c.
.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)"
.PP
Prints a counter into a buffer. The \fBvariable\fP var is encoded as a counter value.
.PP
If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
.PP
\fBParameters:\fP
.RS 4
\fIbuf\fP Address of the buffer to print to. 
.br
\fIbuf_len\fP Address to an integer containing the size of buf. 
.br
\fIout_len\fP Incremented by the number of characters printed. 
.br
\fIallow_realloc\fP if not zero reallocate the buffer to fit the needed size. 
.br
\fIvar\fP The \fBvariable\fP to encode. 
.br
\fIenums\fP The enumeration ff this \fBvariable\fP is enumerated. may be NULL. 
.br
\fIhint\fP Contents of the DISPLAY-HINT clause of the MIB. See RFC 1903 Section 3.1 for details. may be NULL. 
.br
\fIunits\fP Contents of the UNITS clause of the MIB. may be NULL.
.RE
.PP
\fBReturns:\fP
.RS 4
1 on success, or 0 on failure (out of memory, or buffer to small when not allowed to realloc.) 
.RE
.PP

.PP
Definition at line 846 of file mib.c.
.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)"
.PP
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.)
.PP
\fBParameters:\fP
.RS 4
\fIbuf\fP Address of the buffer to print to. 
.br
\fIbuf_len\fP Address to an integer containing the size of buf. 
.br
\fIout_len\fP Incremented by the number of characters printed. 
.br
\fIallow_realloc\fP if not zero reallocate the buffer to fit the needed size. 
.br
\fIvar\fP The \fBvariable\fP to encode. 
.br
\fIenums\fP The enumeration ff this \fBvariable\fP is enumerated. may be NULL. 
.br
\fIhint\fP Contents of the DISPLAY-HINT clause of the MIB. See RFC 1903 Section 3.1 for details. may be NULL. 
.br
\fIunits\fP Contents of the UNITS clause of the MIB. may be NULL.
.RE
.PP
\fBReturns:\fP
.RS 4
1 on success, or 0 on failure (out of memory, or buffer to small when not allowed to realloc.) 
.RE
.PP

.PP
Definition at line 1457 of file mib.c.
.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)"
.PP
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.)
.PP
\fBParameters:\fP
.RS 4
\fIbuf\fP Address of the buffer to print to. 
.br
\fIbuf_len\fP Address to an integer containing the size of buf. 
.br
\fIout_len\fP Incremented by the number of characters printed. 
.br
\fIallow_realloc\fP if not zero reallocate the buffer to fit the needed size. 
.br
\fIval\fP The \fBvariable\fP to encode. 
.br
\fIdecimaltype\fP The enumeration ff this \fBvariable\fP is enumerated. may be NULL. 
.br
\fIhint\fP Contents of the DISPLAY-HINT clause of the MIB. See RFC 1903 Section 3.1 for details. may _NOT_ be NULL. 
.br
\fIunits\fP Contents of the UNITS clause of the MIB. may be NULL.
.RE
.PP
\fBReturns:\fP
.RS 4
1 on success, or 0 on failure (out of memory, or buffer to small when not allowed to realloc.) 
.RE
.PP

.PP
Definition at line 1183 of file mib.c.
.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)"
.PP
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.)
.PP
\fBParameters:\fP
.RS 4
\fIbuf\fP Address of the buffer to print to. 
.br
\fIbuf_len\fP Address to an integer containing the size of buf. 
.br
\fIout_len\fP Incremented by the number of characters printed. 
.br
\fIallow_realloc\fP if not zero reallocate the buffer to fit the needed size. 
.br
\fIvar\fP The \fBvariable\fP to encode. 
.br
\fIenums\fP The enumeration ff this \fBvariable\fP is enumerated. may be NULL. 
.br
\fIhint\fP Contents of the DISPLAY-HINT clause of the MIB. See RFC 1903 Section 3.1 for details. may be NULL. 
.br
\fIunits\fP Contents of the UNITS clause of the MIB. may be NULL.
.RE
.PP
\fBReturns:\fP
.RS 4
1 on success, or 0 on failure (out of memory, or buffer to small when not allowed to realloc.) 
.RE
.PP

.PP
Definition at line 1257 of file mib.c.
.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)"
.PP
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.)
.PP
\fBParameters:\fP
.RS 4
\fIbuf\fP Address of the buffer to print to. 
.br
\fIbuf_len\fP Address to an integer containing the size of buf. 
.br
\fIout_len\fP Incremented by the number of characters printed. 
.br
\fIallow_realloc\fP if not zero reallocate the buffer to fit the needed size. 
.br
\fIvar\fP The \fBvariable\fP to encode. 
.br
\fIenums\fP The enumeration ff this \fBvariable\fP is enumerated. may be NULL. 
.br
\fIhint\fP Contents of the DISPLAY-HINT clause of the MIB. See RFC 1903 Section 3.1 for details. may be NULL. 
.br
\fIunits\fP Contents of the UNITS clause of the MIB. may be NULL.
.RE
.PP
\fBReturns:\fP
.RS 4
1 on success, or 0 on failure (out of memory, or buffer to small when not allowed to realloc.) 
.RE
.PP

.PP
Definition at line 1659 of file mib.c.
.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)"
.PP
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.)
.PP
\fBParameters:\fP
.RS 4
\fIbuf\fP Address of the buffer to print to. 
.br
\fIbuf_len\fP Address to an integer containing the size of buf. 
.br
\fIout_len\fP Incremented by the number of characters printed. 
.br
\fIallow_realloc\fP if not zero reallocate the buffer to fit the needed size. 
.br
\fIvar\fP The \fBvariable\fP to encode. 
.br
\fIenums\fP The enumeration ff this \fBvariable\fP is enumerated. may be NULL. 
.br
\fIhint\fP Contents of the DISPLAY-HINT clause of the MIB. See RFC 1903 Section 3.1 for details. may be NULL. 
.br
\fIunits\fP Contents of the UNITS clause of the MIB. may be NULL.
.RE
.PP
\fBReturns:\fP
.RS 4
1 on success, or 0 on failure (out of memory, or buffer to small when not allowed to realloc.) 
.RE
.PP

.PP
Definition at line 1593 of file mib.c.
.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)"
.PP
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.)
.PP
\fBParameters:\fP
.RS 4
\fIbuf\fP Address of the buffer to print to. 
.br
\fIbuf_len\fP Address to an integer containing the size of buf. 
.br
\fIout_len\fP Incremented by the number of characters printed. 
.br
\fIallow_realloc\fP if not zero reallocate the buffer to fit the needed size. 
.br
\fIvar\fP The \fBvariable\fP to encode. 
.br
\fIenums\fP The enumeration ff this \fBvariable\fP is enumerated. may be NULL. 
.br
\fIhint\fP Contents of the DISPLAY-HINT clause of the MIB. See RFC 1903 Section 3.1 for details. may be NULL. 
.br
\fIunits\fP Contents of the UNITS clause of the MIB. may be NULL.
.RE
.PP
\fBReturns:\fP
.RS 4
1 on success, or 0 on failure (out of memory, or buffer to small when not allowed to realloc.) 
.RE
.PP

.PP
Definition at line 1719 of file mib.c.
.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)"
.PP
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.)
.PP
\fBParameters:\fP
.RS 4
\fIbuf\fP Address of the buffer to print to. 
.br
\fIbuf_len\fP Address to an integer containing the size of buf. 
.br
\fIout_len\fP Incremented by the number of characters printed. 
.br
\fIallow_realloc\fP if not zero reallocate the buffer to fit the needed size. 
.br
\fIvar\fP The \fBvariable\fP to encode. 
.br
\fIenums\fP The enumeration ff this \fBvariable\fP is enumerated. may be NULL. 
.br
\fIhint\fP Contents of the DISPLAY-HINT clause of the MIB. See RFC 1903 Section 3.1 for details. may be NULL. 
.br
\fIunits\fP Contents of the UNITS clause of the MIB. may be NULL.
.RE
.PP
\fBReturns:\fP
.RS 4
1 on success, or 0 on failure (out of memory, or buffer to small when not allowed to realloc.) 
.RE
.PP

.PP
Definition at line 1039 of file mib.c.
.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)"
.PP
Prints an octet string into a buffer. The \fBvariable\fP var is encoded as octet string.
.PP
If allow_realloc is true the buffer will be (re)allocated to fit in the needed size. (Note: *buf may change due to this.)
.PP
\fBParameters:\fP
.RS 4
\fIbuf\fP Address of the buffer to print to. 
.br
\fIbuf_len\fP Address to an integer containing the size of buf. 
.br
\fIout_len\fP Incremented by the number of characters printed. 
.br
\fIallow_realloc\fP if not zero reallocate the buffer to fit the needed size. 
.br
\fIvar\fP The \fBvariable\fP to encode. 
.br
\fIenums\fP The enumeration ff this \fBvariable\fP is enumerated. may be NULL. 
.br
\fIhint\fP Contents of the DISPLAY-HINT clause of the MIB. See RFC 1903 Section 3.1 for details. may be NULL. 
.br
\fIunits\fP Contents of the UNITS clause of the MIB. may be NULL.
.RE
.PP
\fBReturns:\fP
.RS 4
1 on success, or 0 on failure (out of memory, or buffer to small when not allowed to realloc.) 
.RE
.PP

.PP
Definition at line 427 of file mib.c.
.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)"
.PP
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.)
.PP
\fBParameters:\fP
.RS 4
\fIbuf\fP Address of the buffer to print to. 
.br
\fIbuf_len\fP Address to an integer containing the size of buf. 
.br
\fIout_len\fP Incremented by the number of characters printed. 
.br
\fIallow_realloc\fP if not zero reallocate the buffer to fit the needed size. 
.br
\fIvar\fP The \fBvariable\fP to encode. 
.br
\fIenums\fP The enumeration ff this \fBvariable\fP is enumerated. may be NULL. 
.br
\fIhint\fP Contents of the DISPLAY-HINT clause of the MIB. See RFC 1903 Section 3.1 for details. may be NULL. 
.br
\fIunits\fP Contents of the UNITS clause of the MIB. may be NULL.
.RE
.PP
\fBReturns:\fP
.RS 4
1 on success, or 0 on failure (out of memory, or buffer to small when not allowed to realloc.) 
.RE
.PP

.PP
Definition at line 949 of file mib.c.
.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)"
.PP
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.)
.PP
\fBParameters:\fP
.RS 4
\fIbuf\fP Address of the buffer to print to. 
.br
\fIbuf_len\fP Address to an integer containing the size of buf. 
.br
\fIout_len\fP Incremented by the number of characters printed. 
.br
\fIallow_realloc\fP if not zero reallocate the buffer to fit the needed size. 
.br
\fIvar\fP The \fBvariable\fP to encode. 
.br
\fIenums\fP The enumeration ff this \fBvariable\fP is enumerated. may be NULL. 
.br
\fIhint\fP Contents of the DISPLAY-HINT clause of the MIB. See RFC 1903 Section 3.1 for details. may be NULL. 
.br
\fIunits\fP Contents of the UNITS clause of the MIB. may be NULL.
.RE
.PP
\fBReturns:\fP
.RS 4
1 on success, or 0 on failure (out of memory, or buffer to small when not allowed to realloc.) 
.RE
.PP

.PP
Definition at line 1109 of file mib.c.
.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)"
.PP
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.)
.PP
\fBParameters:\fP
.RS 4
\fIbuf\fP Address of the buffer to print to. 
.br
\fIbuf_len\fP Address to an integer containing the size of buf. 
.br
\fIout_len\fP Incremented by the number of characters printed. 
.br
\fIallow_realloc\fP if not zero reallocate the buffer to fit the needed size. 
.br
\fIvar\fP The \fBvariable\fP to encode. 
.br
\fIenums\fP The enumeration ff this \fBvariable\fP is enumerated. may be NULL. 
.br
\fIhint\fP Contents of the DISPLAY-HINT clause of the MIB. See RFC 1903 Section 3.1 for details. may be NULL. 
.br
\fIunits\fP Contents of the UNITS clause of the MIB. may be NULL.
.RE
.PP
\fBReturns:\fP
.RS 4
1 on success, or 0 on failure (out of memory, or buffer to small when not allowed to realloc.) 
.RE
.PP

.PP
Definition at line 1360 of file mib.c.
.SS "char* uptime_string (u_long timeticks, char * buf)"
.PP
Converts timeticks to hours, minutes, seconds string. CMU compatible does not show centiseconds.
.PP
\fBParameters:\fP
.RS 4
\fItimeticks\fP The timeticks to convert. 
.br
\fIbuf\fP Buffer to write to, has to be at least 40 Bytes large.
.RE
.PP
\fBReturns:\fP
.RS 4
The buffer
.RE
.PP
\fBSee also:\fP
.RS 4
uptimeString 
.RE
.PP

.PP
Definition at line 5813 of file mib.c.
.SH "Variable Documentation"
.PP 
.SS "\fBPrefixList\fP mib_prefixes[]"\fBInitial value:\fP
.PP
.nf
 {
    {&Standard_Prefix[0]},      
    {'.iso.org.dod.internet.mgmt.mib-2'},
    {'.iso.org.dod.internet.experimental'},
    {'.iso.org.dod.internet.private'},
    {'.iso.org.dod.internet.snmpParties'},
    {'.iso.org.dod.internet.snmpSecrets'},
    {NULL, 0}                   
}
.fi
.PP
Definition at line 160 of file mib.c.
.SH "Author"
.PP 
Generated automatically by Doxygen for net-snmp from the source code.