Subversion Repositories f9daq

Rev

Rev 151 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
151 f9daq 1
/* include/net-snmp/net-snmp-config.h.in.  Generated from configure.in by autoheader.  */
2
/* modified by hand with care. */
3
 
4
#ifndef NET_SNMP_CONFIG_H
5
#define NET_SNMP_CONFIG_H
6
 
7
/* _MSC_VER values
8
   1800 = MSVC++ 12.0 (Visual Studio 2013)
9
   1700 = MSVC++ 11.0 (Visual Studio 2012)
10
   1600 = MSVC++ 10.0 (Visual Studio 2010)
11
   1500 = MSVC++  9.0 (Visual Studio 2008)
12
   1400 = MSVC++  8.0 (Visual Studio 2005)
13
   1310 = MSVC++  7.1 (Visual Studio 2003)
14
   1300 = MSVC++  7.0 (Visual Studio 2002)
15
   1200 = MSVC++  6.0
16
*/
17
 
18
#ifdef _MSC_VER
19
/* Disable warning 4018: signed/unsigned mismatch. */
20
#pragma warning (disable: 4018)
21
#endif
22
 
23
/* Automatically set by Windows perl Configure script.
24
 * When compiling with the MSVC workspace, this must be set manually.
25
 * See the PACKAGE_VERSION variable in Unix /configure script
26
*/
27
#ifndef PACKAGE_VERSION
28
#define PACKAGE_VERSION "5.7.3"
29
#endif
30
 
31
/* Define HAVE_WIN32_PLATFORM_SDK if you have:
32
 * Microsoft Visual Studio MSVC 6.0 and the Platform SDK (PSDK)
33
 * Microsoft Visual Studio.Net 2002
34
 * Microsoft Visual Studio.Net 2003
35
 */
36
#define HAVE_WIN32_PLATFORM_SDK 1
37
 
38
/* Define NETSNMP_ENABLE_IPV6 to enable IPv6.  IPv6 is only available on
39
 * Windows XP and higher.  */
40
/* #undef NETSNMP_ENABLE_IPV6 */
41
 
42
/* Only use Windows API functions available on Windows 2000 SP4 or later.  
43
 * We need at least SP1 for some IPv6 defines in ws2ipdef.h
44
 */
45
#ifndef _WIN32_WINNT
46
#define _WIN32_WINNT 0x600 /*_WIN32_WINNT_WIN6*/
47
#else
48
#if _WIN32_WINNT < 0x501
49
#error _WIN32_WINNT is too low - it should be set to at least 0x501.
50
#endif
51
#endif
52
 
53
#define INSTALL_BASE "c:/usr"
54
 
55
/* config.h:  a general config file */
56
 
57
/* Default (SNMP) version number for the tools to use */
58
#define NETSNMP_DEFAULT_SNMP_VERSION 3
59
 
60
/* don't change these values! */
61
#define NETSNMP_SNMPV1      0xAAAA       /* readable by anyone */
62
#define NETSNMP_SNMPV2ANY   0xA000       /* V2 Any type (includes NoAuth) */
63
#define NETSNMP_SNMPV2AUTH  0x8000       /* V2 Authenticated requests only */
64
 
65
/* default list of mibs to load */
66
 
67
#define NETSNMP_DEFAULT_MIBS "IP-MIB;IF-MIB;TCP-MIB;UDP-MIB;HOST-RESOURCES-MIB;SNMPv2-MIB;RFC1213-MIB;NOTIFICATION-LOG-MIB;UCD-SNMP-MIB;UCD-DEMO-MIB;SNMP-TARGET-MIB;NET-SNMP-AGENT-MIB;DISMAN-EVENT-MIB;SNMP-VIEW-BASED-ACM-MIB;SNMP-COMMUNITY-MIB;SNMP-FRAMEWORK-MIB;SNMP-MPD-MIB;SNMP-USER-BASED-SM-MIB;SNMP-NOTIFICATION-MIB;SNMPv2-TM"
68
 
69
/* default location to look for mibs to load using the above tokens
70
   and/or those in the MIBS envrionment variable*/
71
#define NETSNMP_DEFAULT_MIBDIRS INSTALL_BASE ## "/share/snmp/mibs"
72
 
73
/* default mib files to load, specified by path. */
74
/* #undef NETSNMP_DEFAULT_MIBFILES */
75
 
76
/* should we compile to use special opaque types: float, double,
77
   counter64, i64, ui64, union? */
78
#define NETSNMP_WITH_OPAQUE_SPECIAL_TYPES 1
79
 
80
/* comment the next line if you are compiling with libsnmp.h
81
   and are not using the UC-Davis SNMP library. */
82
#define UCD_SNMP_LIBRARY 1
83
 
84
/* define if you want to compile support for both authentication and
85
   privacy support. */
86
#define NETSNMP_ENABLE_SCAPI_AUTHPRIV 1
87
 
88
/* define if you are using the MD5 code ...*/
89
#define NETSNMP_USE_INTERNAL_MD5 1
90
 
91
/* define if you are using the codeS11 library ...*/
92
/* #undef NETSNMP_USE_PKCS11 */
93
 
94
/* add in recent CMU library extensions (not complete) */
95
/* #undef CMU_COMPATIBLE */
96
 
97
/* add in recent resource lock functions (not complete) */
98
/* #undef NETSNMP_REENTRANT */
99
 
100
/* debugging stuff */
101
/* if defined, we optimize the code to exclude all debugging calls. */
102
/* #undef NETSNMP_NO_DEBUGGING */
103
/* ignore the -D flag and always print debugging information */
104
#define NETSNMP_ALWAYS_DEBUG 0
105
 
106
/* reverse encoding BER packets is both faster and more efficient in space. */
107
#define NETSNMP_USE_REVERSE_ASNENCODING       1
108
#define NETSNMP_DEFAULT_ASNENCODING_DIRECTION 1 /* 1 = reverse, 0 = forwards */
109
 
110
/* NETSNMP_PERSISTENT_DIRECTORY: If defined, the library is capabile of saving
111
   persisant information to this directory in the form of configuration
112
   lines: NETSNMP_PERSISTENT_DIRECTORY/NAME.persistent.conf */
113
#define NETSNMP_PERSISTENT_DIRECTORY INSTALL_BASE ## "/snmp/persist"
114
 
115
/* NETSNMP_PERSISTENT_MASK: the umask permissions to set up persistent files with */
116
/* #undef NETSNMP_PERSISTENT_MASK -- no win32 umask */
117
 
118
/* NETSNMP_AGENT_DIRECTORY_MODE: the mode the agents should use to create
119
   directories with. Since the data stored here is probably sensitive, it
120
   probably should be read-only by root/administrator. */
121
#define NETSNMP_AGENT_DIRECTORY_MODE 0700
122
 
123
/* NETSNMP_MAX_PERSISTENT_BACKUPS:
124
 *   The maximum number of persistent backups the library will try to
125
 *   read from the persistent cache directory.  If an application fails to
126
 *   close down successfully more than this number of times, data will be lost.
127
 */
128
#define NETSNMP_MAX_PERSISTENT_BACKUPS 10
129
 
130
 
131
/* define if you are embedding perl in the main agent */
132
/* #undef NETSNMP_EMBEDDED_PERL */
133
 
134
#if notused
135
/* define the system type include file here */
136
#define NETSNMP_SYSTEM_INCLUDE_FILE <net-snmp/system/generic.h>
137
 
138
/* define the machine (cpu) type include file here */
139
#define NETSNMP_MACHINE_INCLUDE_FILE <net-snmp/machine/generic.h>
140
#endif
141
 
142
/* SNMPLIBDIR contains important files */
143
 
144
#define SNMPLIBPATH INSTALL_BASE ## "/lib"
145
#define SNMPSHAREPATH INSTALL_BASE ## "/share/snmp"
146
#define SNMPCONFPATH INSTALL_BASE ## "/etc/snmp"
147
#define SNMPDLMODPATH INSTALL_BASE ## "/lib/dlmod"
148
 
149
/* NETSNMP_LOGFILE:  If defined it closes stdout/err/in and opens this in out/err's
150
   place.  (stdin is closed so that sh scripts won't wait for it) */
151
/* #undef NETSNMP_LOGFILE */
152
 
153
/* default system contact */
154
#define NETSNMP_SYS_CONTACT "unknown"
155
 
156
/* system location */
157
#define NETSNMP_SYS_LOC "unknown"
158
 
159
/* Use libwrap to handle allow/deny hosts? */
160
/* #undef NETSNMP_USE_LIBWRAP */
161
 
162
/* Use dmalloc to do malloc debugging? */
163
/* #undef HAVE_DMALLOC_H */
164
 
165
/* location of UNIX kernel */
166
#define KERNEL_LOC "unknown"
167
 
168
/* location of mount table list */
169
#define ETC_MNTTAB "unknown"
170
 
171
/* location of swap device (ok if not found) */
172
/* #undef DMEM_LOC */
173
 
174
/* Command to generate ps output, the final column must be the process
175
   name withOUT arguments */
176
#define PSCMD "/bin/ps"
177
 
178
/* Where is the uname command */
179
#define UNAMEPROG "/bin/uname"
180
 
181
/* pattern for temporary file names */
182
#define NETSNMP_TEMP_FILE_PATTERN INSTALL_BASE ## "/temp/snmpdXXXXXX"
183
 
184
/* testing code sections. */
185
/* #undef NETSNMP_ENABLE_TESTING_CODE */
186
 
187
/* If you don't have root access don't exit upon kmem errors */
188
/* #undef NETSNMP_NO_ROOT_ACCESS */
189
 
190
/* If we don't want to use kmem. */
191
/* #undef NETSNMP_NO_KMEM_USAGE */
192
 
193
/* If you don't want the agent to report on variables it doesn't have data for */
194
#define NETSNMP_NO_DUMMY_VALUES 1
195
 
196
/* Define if statfs takes 2 args and the second argument has
197
   type struct fs_data. [Ultrix] */
198
/* #undef STAT_STATFS_FS_DATA */
199
 
200
/* Define if the TCP timer constants in <netinet/tcp_timer.h>
201
   depend on the integer variable `hz'.  [FreeBSD 4.x] */
202
/* #undef TCPTV_NEEDS_HZ */
203
 
204
 
205
/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
206
   systems. This function is required for `alloca.c' support on those systems.
207
   */
208
/* #undef CRAY_STACKSEG_END */
209
 
210
/* Define to 1 if using `alloca.c'. */
211
/* #undef C_ALLOCA */
212
 
213
/* Define if DES encryption should not be supported */
214
/* #undef NETSNMP_DISABLE_DES */
215
 
216
/* Define if MD5 authentication should not be supported */
217
/* #undef NETSNMP_DISABLE_MD5 */
218
 
219
/* Define if mib loading and parsing code should not be included */
220
/* #undef NETSNMP_DISABLE_MIB_LOADING */
221
 
222
/* Define if SNMPv1 code should not be included */
223
/* #undef NETSNMP_DISABLE_SNMPV1 */
224
 
225
/* Define if SNMPv2c code should not be included */
226
/* #undef NETSNMP_DISABLE_SNMPV2C */
227
 
228
/* Define to 1 if you have the `AES_cfb128_encrypt' function. */
229
/* #undef HAVE_AES_CFB128_ENCRYPT */
230
 
231
/* Define to 1 if you have `alloca', as a function or macro. */
232
/* #undef HAVE_ALLOCA */
233
 
234
/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
235
   */
236
/* #undef HAVE_ALLOCA_H */
237
 
238
/* Define to 1 if you have the <arpa/inet.h> header file. */
239
/* #undef HAVE_ARPA_INET_H */
240
 
241
/* Define to 1 if you have the <asm/page.h> header file. */
242
/* #undef HAVE_ASM_PAGE_H */
243
 
244
/* Define to 1 if you have the `cgetnext' function. */
245
/* #undef HAVE_CGETNEXT */
246
 
247
/* Define to 1 if you have the <crtdbg.h> header file. */
248
#define HAVE_CRTDBG_H 1
249
 
250
/* Define to 1 if you have the <direct.h> header file. */
251
#define HAVE_DIRECT_H 1
252
 
253
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
254
   */
255
/* #undef HAVE_DIRENT_H */
256
 
257
/* Define to 1 if you have the <dlfcn.h> header file. */
258
/* #undef HAVE_DLFCN_H */
259
 
260
/* Define to 1 if you have the `dlopen' function. */
261
/* #undef HAVE_DLOPEN */
262
 
263
/* Define to 1 if you have the <err.h> header file. */
264
/* #undef HAVE_ERR_H */
265
 
266
/* Define to 1 if you have the `eval_pv' function. */
267
/* #undef HAVE_EVAL_PV */
268
 
269
/* Define to 1 if you have the `execv' function. */
270
/* #undef HAVE_EXECV */
271
 
272
/* Define to 1 if you have the <fcntl.h> header file. */
273
#define HAVE_FCNTL_H 1
274
 
275
/* Define to 1 if you have the `fork' function. */
276
/* #undef HAVE_FORK */
277
 
278
/* Define to 1 if you have the <fstab.h> header file. */
279
/* #undef HAVE_FSTAB_H */
280
 
281
/* Define to 1 if you have the `getaddrinfo' function. */
282
/* #undef HAVE_GETADDRINFO */
283
 
284
/* Define to 1 if you have the `getdtablesize' function. */
285
/* #undef HAVE_GETDTABLESIZE */
286
 
287
/* Define to 1 if you have the `getfsstat' function. */
288
/* #undef HAVE_GETFSSTAT */
289
 
290
/* Define to 1 if you have the `getgrnam' function. */
291
/* #undef HAVE_GETGRNAM */
292
 
293
/* Define to 1 if you have the `gethostname' function. */
294
#define HAVE_GETHOSTNAME 1
295
 
296
/* Define to 1 if you have the `getipnodebyname' function. */
297
/* #undef HAVE_GETIPNODEBYNAME */
298
 
299
/* Define to 1 if you have the `getloadavg' function. */
300
/* #undef HAVE_GETLOADAVG */
301
 
302
/* Define to 1 if you have the `getmntent' function. */
303
/* #undef HAVE_GETMNTENT */
304
 
305
/* Define to 1 if you have the <getopt.h> header file. */
306
/* #undef HAVE_GETOPT_H */
307
 
308
/* Define to 1 if you have the `getpagesize' function. */
309
/* #undef HAVE_GETPAGESIZE */
310
 
311
/* Define to 1 if you have the `getpid' function. */
312
#define HAVE_GETPID 1
313
 
314
/* Define to 1 if you have the `getpwnam' function. */
315
/* #undef HAVE_GETPWNAM */
316
 
317
/* Define to 1 if you have the `gettimeofday' function. */
318
/* #undef HAVE_GETTIMEOFDAY */
319
 
320
/* Define to 1 if you have the <grp.h> header file. */
321
/* #undef HAVE_GRP_H */
322
 
323
/* Define to 1 if you have the `if_freenameindex' function. */
324
/* #undef HAVE_IF_FREENAMEINDEX */
325
 
326
/* Define to 1 if you have the `if_nameindex' function. */
327
/* #undef HAVE_IF_NAMEINDEX */
328
 
329
/* Define to 1 if you have the <inet/mib2.h> header file. */
330
/* #undef HAVE_INET_MIB2_H */
331
 
332
#ifdef HAVE_WIN32_PLATFORM_SDK
333
/* Define to 1 if you have the <iphlpapi.h> header file. */
334
#define HAVE_IPHLPAPI_H
335
#endif
336
 
337
/* Define to 1 if the system has the type `int32_t'. */
338
#define HAVE_INT32_T 1
339
 
340
/* define if you have type uint32_t */
341
#define HAVE_UINT32_T 1
342
 
343
/* define if you have type u_int32_t */
344
#undef HAVE_U_INT32_T
345
 
346
/* define if you have type int64_t */
347
#define HAVE_INT64_T 1
348
 
349
/* define if you have type uint64_t */
350
#define HAVE_UINT64_T 1
351
 
352
/* define if you have type u_int64_t */
353
#undef HAVE_U_INT64_T
354
 
355
/* Define to 1 if you have the <inttypes.h> header file. */
356
/* #undef HAVE_INTTYPES_H */
357
 
358
/* Define to 1 if you have the <ioctls.h> header file. */
359
/* #undef HAVE_IOCTLS_H */
360
 
361
/* Define to 1 if you have the <io.h> header file. */
362
#define HAVE_IO_H 1
363
 
364
/* Define to 1 if you have the `knlist' function. */
365
/* #undef HAVE_KNLIST */
366
 
367
/* Define to 1 if you have the <kstat.h> header file. */
368
/* #undef HAVE_KSTAT_H */
369
 
370
/* Define to 1 if you have the `kvm_getprocs' function. */
371
/* #undef HAVE_KVM_GETPROCS */
372
 
373
/* Define to 1 if you have the <kvm.h> header file. */
374
/* #undef HAVE_KVM_H */
375
 
376
/* Define to 1 if you have the `kvm_openfiles' function. */
377
/* #undef HAVE_KVM_OPENFILES */
378
 
379
/* Define to 1 if you have the `crypto' library (-lcrypto). */
380
/* #undef HAVE_LIBCRYPTO */
381
 
382
/* Define to 1 if you have the `efence' library (-lefence). */
383
/* #undef HAVE_LIBEFENCE */
384
 
385
/* Define to 1 if you have the `elf' library (-lelf). */
386
/* #undef HAVE_LIBELF */
387
 
388
/* Define to 1 if you have the `kstat' library (-lkstat). */
389
/* #undef HAVE_LIBKSTAT */
390
 
391
/* Define to 1 if you have the `m' library (-lm). */
392
/* #undef HAVE_LIBM */
393
 
394
/* Define to 1 if you have the `mld' library (-lmld). */
395
/* #undef HAVE_LIBMLD */
396
 
397
/* Define to 1 if you have the `nsl' library (-lnsl). */
398
/* #undef HAVE_LIBNSL */
399
 
400
/* Define to 1 if you have the <libperfstat.h> header file. */
401
/* #undef HAVE_LIBPERFSTAT_H */
402
 
403
/* Define to 1 if you have the `pkcs11' library (-lpkcs11). */
404
/* #undef HAVE_LIBPKCS11 */
405
 
406
/* Define to 1 if you have the `RSAglue' library (-lRSAglue). */
407
/* #undef HAVE_LIBRSAGLUE */
408
 
409
/* Define to 1 if you have the `rsaref' library (-lrsaref). */
410
/* #undef HAVE_LIBRSAREF */
411
 
412
/* Define to 1 if you have the `sensors' library (-lsensors). */
413
/* #undef HAVE_LIBSENSORS */
414
 
415
/* Define to 1 if you have the <limits.h> header file. */
416
#define HAVE_LIMITS_H 1
417
 
418
/* Define to 1 if you have the <linux/hdreg.h> header file. */
419
/* #undef HAVE_LINUX_HDREG_H */
420
 
421
/* Define to 1 if you have the <linux/tasks.h> header file. */
422
/* #undef HAVE_LINUX_TASKS_H */
423
 
424
/* Define to 1 if you have the <locale.h> header file. */
425
#define HAVE_LOCALE_H 1
426
 
427
/* Define to 1 if you have the `lrand48' function. */
428
/* #undef HAVE_LRAND48 */
429
 
430
/* Define to 1 if you have the <machine/param.h> header file. */
431
/* #undef HAVE_MACHINE_PARAM_H */
432
 
433
/* Define to 1 if you have the <machine/pte.h> header file. */
434
/* #undef HAVE_MACHINE_PTE_H */
435
 
436
/* Define to 1 if you have the <machine/types.h> header file. */
437
/* #undef HAVE_MACHINE_TYPES_H */
438
 
439
/* Define to 1 if you have the <malloc.h> header file. */
440
#define HAVE_MALLOC_H 1
441
 
442
/* Define to 1 if you have the <memory.h> header file. */
443
#define HAVE_MEMORY_H 1
444
 
445
/* Define to 1 if you have the `mkstemp' function. */
446
/* #undef HAVE_MKSTEMP */
447
 
448
/* Define to 1 if you have the `mktime' function. */
449
/* #undef HAVE_MKTIME */
450
 
451
/* Define to 1 if you have the <mntent.h> header file. */
452
/* #undef HAVE_MNTENT_H */
453
 
454
/* Define to 1 if you have the <mtab.h> header file. */
455
/* #undef HAVE_MTAB_H */
456
 
457
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
458
/* #undef HAVE_NDIR_H */
459
 
460
/* Define to 1 if you have the <netdb.h> header file. */
461
/* #undef HAVE_NETDB_H */
462
 
463
/* Define to 1 if you have the <netinet6/in6_pcb.h> header file. */
464
/* #undef HAVE_NETNETSNMP_ENABLE_IPV6_IN6_PCB_H */
465
 
466
/* Define to 1 if you have the <netinet6/in6_var.h> header file. */
467
/* #undef HAVE_NETNETSNMP_ENABLE_IPV6_IN6_VAR_H */
468
 
469
/* Define to 1 if you have the <netinet6/ip6_var.h> header file. */
470
/* #undef HAVE_NETNETSNMP_ENABLE_IPV6_IP6_VAR_H */
471
 
472
/* Define to 1 if you have the <netinet6/nd6.h> header file. */
473
/* #undef HAVE_NETNETSNMP_ENABLE_IPV6_ND6_H */
474
 
475
/* Define to 1 if you have the <netinet6/tcp6_fsm.h> header file. */
476
/* #undef HAVE_NETNETSNMP_ENABLE_IPV6_TCP6_FSM_H */
477
 
478
/* Define to 1 if you have the <netinet6/tcp6.h> header file. */
479
/* #undef HAVE_NETNETSNMP_ENABLE_IPV6_TCP6_H */
480
 
481
/* Define to 1 if you have the <netinet6/tcp6_timer.h> header file. */
482
/* #undef HAVE_NETNETSNMP_ENABLE_IPV6_TCP6_TIMER_H */
483
 
484
/* Define to 1 if you have the <netinet6/tcp6_var.h> header file. */
485
/* #undef HAVE_NETNETSNMP_ENABLE_IPV6_TCP6_VAR_H */
486
 
487
/* Define to 1 if you have the <netinet/icmp_var.h> header file. */
488
/* #undef HAVE_NETINET_ICMP_VAR_H */
489
 
490
/* Define to 1 if you have the <netinet/if_ether.h> header file. */
491
/* #undef HAVE_NETINET_IF_ETHER_H */
492
 
493
/* Define to 1 if you have the <netinet/in.h> header file. */
494
/* #undef HAVE_NETINET_IN_H */
495
 
496
/* Define to 1 if you have the <netinet/in_systm.h> header file. */
497
/* #undef HAVE_NETINET_IN_SYSTM_H */
498
 
499
/* Define to 1 if you have the <netinet/in_var.h> header file. */
500
/* #undef HAVE_NETINET_IN_VAR_H */
501
 
502
/* Define to 1 if you have the <netinet/ip6.h> header file. */
503
/* #undef HAVE_NETINET_IP6_H */
504
 
505
/* Define to 1 if you have the <netinet/ip.h> header file. */
506
/* #undef HAVE_NETINET_IP_H */
507
 
508
/* Define to 1 if you have the <netinet/ip_icmp.h> header file. */
509
/* #undef HAVE_NETINET_IP_ICMP_H */
510
 
511
/* Define to 1 if you have the <netinet/icmp6.h> header file. */
512
/* #undef HAVE_NETINET_ICMP6_H */
513
 
514
/* Define to 1 if you have the <netinet/ip_var.h> header file. */
515
/* #undef HAVE_NETINET_IP_VAR_H */
516
 
517
/* Define to 1 if you have the <netinet/tcpip.h> header file. */
518
/* #undef HAVE_NETINET_TCPIP_H */
519
 
520
/* Define to 1 if you have the <netinet/tcp_fsm.h> header file. */
521
/* #undef HAVE_NETINET_TCP_FSM_H */
522
 
523
/* Define to 1 if you have the <netinet/tcp.h> header file. */
524
/* #undef HAVE_NETINET_TCP_H */
525
 
526
/* Define to 1 if you have the <netinet/tcp_timer.h> header file. */
527
/* #undef HAVE_NETINET_TCP_TIMER_H */
528
 
529
/* Define to 1 if you have the <netinet/tcp_var.h> header file. */
530
/* #undef HAVE_NETINET_TCP_VAR_H */
531
 
532
/* Define to 1 if you have the <netinet/udp.h> header file. */
533
/* #undef HAVE_NETINET_UDP_H */
534
 
535
/* Define to 1 if you have the <netinet/udp_var.h> header file. */
536
/* #undef HAVE_NETINET_UDP_VAR_H */
537
 
538
/* Define to 1 if you have the <netipx/ipx.h> header file. */
539
/* #undef HAVE_NETIPX_IPX_H */
540
 
541
/* Define to 1 if you have the <net/if_dl.h> header file. */
542
/* #undef HAVE_NET_IF_DL_H */
543
 
544
/* Define to 1 if you have the <net/if.h> header file. */
545
/* #undef HAVE_NET_IF_H */
546
 
547
/* Define to 1 if you have the <net/if_mib.h> header file. */
548
/* #undef HAVE_NET_IF_MIB_H */
549
 
550
/* Define to 1 if you have the <net/if_types.h> header file. */
551
/* #undef HAVE_NET_IF_TYPES_H */
552
 
553
/* Define to 1 if you have the <net/if_var.h> header file. */
554
/* #undef HAVE_NET_IF_VAR_H */
555
 
556
/* Define to 1 if you have the <net/route.h> header file. */
557
/* #undef HAVE_NET_ROUTE_H */
558
 
559
/* Define to 1 if you have the `nlist' function. */
560
/* #undef HAVE_NLIST */
561
 
562
/* Define to 1 if you have the <nlist.h> header file. */
563
/* #undef HAVE_NLIST_H */
564
 
565
/* Define to 1 if you have the <openssl/aes.h> header file. */
566
/* #undef HAVE_OPENSSL_AES_H */
567
 
568
/* Define to 1 if you have the <openssl/des.h> header file. */
569
/* #undef HAVE_OPENSSL_DES_H */
570
 
571
/* Define to 1 if you have the <openssl/dh.h> header file. */
572
/* #undef HAVE_OPENSSL_DH_H */
573
 
574
/* Define to 1 if you have the <openssl/evp.h> header file. */
575
/* #undef HAVE_OPENSSL_EVP_H */
576
 
577
/* Define to 1 if you have the <openssl/hmac.h> header file. */
578
/* #undef HAVE_OPENSSL_HMAC_H */
579
 
580
/* Define to 1 if you have the <osreldate.h> header file. */
581
/* #undef HAVE_OSRELDATE_H */
582
 
583
/* Define to 1 if you have the <pkginfo.h> header file. */
584
/* #undef HAVE_PKGINFO_H */
585
 
586
/* Define to 1 if you have the <pkglocs.h> header file. */
587
/* #undef HAVE_PKGLOCS_H */
588
 
589
/* Define if you have <process.h> header file. (Win32-getpid) */
590
#define HAVE_PROCESS_H 1
591
 
592
/* Define to 1 if you have the <pthread.h> header file. */
593
/* #undef HAVE_PTHREAD_H */
594
 
595
/* Define to 1 if you have the <pwd.h> header file. */
596
/* #undef HAVE_PWD_H */
597
 
598
/* Define to 1 if you have the `rand' function. */
599
#define HAVE_RAND 1
600
 
601
/* Define to 1 if you have the `random' function. */
602
#define HAVE_RAND 1
603
 
604
/* Define to 1 if you have the `regcomp' function. */
605
/* #undef HAVE_REGCOMP */
606
 
607
/* Define to 1 if you have the <regex.h> header file. */
608
/* #undef HAVE_REGEX_H */
609
 
610
/* Define to 1 if you have the `rpmGetPath' function. */
611
/* #undef HAVE_RPMGETPATH */
612
 
613
/* Define to 1 if you have the <rpmio.h> header file. */
614
/* #undef HAVE_RPMIO_H */
615
 
616
/* Define to 1 if you have the <rpm/rpmio.h> header file. */
617
/* #undef HAVE_RPM_RPMIO_H */
618
 
619
/* Define to 1 if you have the <search.h> header file. */
620
#define HAVE_SEARCH_H 1
621
 
622
/* Define to 1 if you have the <security/cryptoki.h> header file. */
623
/* #undef HAVE_SECURITY_CRYPTOKI_H */
624
 
625
/* Define to 1 if you have the `select' function. */
626
/* #undef HAVE_SELECT */
627
 
628
/* Define to 1 if you have the `setenv' function. */
629
/* #undef HAVE_SETENV */
630
 
631
/* Define to 1 if you have the `setgid' function. */
632
/* #undef HAVE_SETGID */
633
 
634
/* Define to 1 if you have the `setgroups' function. */
635
/* #undef HAVE_SETGROUPS */
636
 
637
/* Define to 1 if you have the `setitimer' function. */
638
/* #undef HAVE_SETITIMER */
639
 
640
/* Define to 1 if you have the `setlocale' function. */
641
#define HAVE_SETLOCALE 1
642
 
643
/* Define to 1 if you have the `setmntent' function. */
644
/* #undef HAVE_SETMNTENT */
645
 
646
/* Define to 1 if you have the `setsid' function. */
647
/* #undef HAVE_SETSID */
648
 
649
/* Define to 1 if you have the `setuid' function. */
650
/* #undef HAVE_SETUID */
651
 
652
/* Define to 1 if you have the <sgtty.h> header file. */
653
/* #undef HAVE_SGTTY_H */
654
 
655
/* Define to 1 if you have the `sigaction' function. */
656
/* #undef HAVE_SIGACTION */
657
 
658
/* Define to 1 if you have the `sigalrm' function. */
659
/* #undef HAVE_SIGALRM */
660
 
661
/* Define to 1 if you have the `sigblock' function. */
662
/* #undef HAVE_SIGBLOCK */
663
 
664
/* Define to 1 if you have the `sighold' function. */
665
/* #undef HAVE_SIGHOLD */
666
 
667
/* Define to 1 if you have the `signal' function. */
668
/* #undef HAVE_SIGNAL */
669
 
670
/* Define to 1 if you have the `sigset' function. */
671
/* #undef HAVE_SIGSET */
672
 
673
/* Define to 1 if you have the `snprintf' function. */
674
#define HAVE_SNPRINTF 1
675
 
676
/* Define to 1 if you have the `socket' function. */
677
#define HAVE_SOCKET 1
678
 
679
/* Define to 1 if you have the `statfs' function. */
680
/* #undef HAVE_STATFS */
681
 
682
/* Define to 1 if you have the `statvfs' function. */
683
/* #undef HAVE_STATVFS */
684
 
685
/* Define to 1 if you have the <stdint.h> header file. */
686
#ifdef __MINGW32__
687
#define HAVE_STDINT_H 1
688
#endif
689
 
690
/* Define to 1 if you have the <stdlib.h> header file. */
691
#define HAVE_STDLIB_H 1
692
 
693
/* Define to 1 if you have the `stime' function. */
694
/* #undef HAVE_STIME */
695
 
696
/* Define to 1 if you have the `strcasestr' function. */
697
/* #undef HAVE_STRCASESTR */
698
 
699
/* Define to 1 if you have the `strdup' function. */
700
#define HAVE_STRDUP 1
701
 
702
/* Define to 1 if you have the `strerror' function. */
703
#define HAVE_STRERROR 1
704
 
705
/* Define to 1 if you have the <strings.h> header file. */
706
/* #undef HAVE_STRINGS_H */
707
 
708
/* Define to 1 if you have the <string.h> header file. */
709
#define HAVE_STRING_H 1
710
 
711
/* Define to 1 if you have the `strlcpy' function. */
712
/* #undef HAVE_STRLCPY */
713
 
714
/* Define to 1 if you have the `strncasecmp' function. */
715
/* #undef HAVE_STRNCASECMP */
716
 
717
/* Define to 1 if you have the `strtol' function. */
718
#define HAVE_STRTOL 1
719
 
720
/* Define to 1 if you have the `strtoul' function. */
721
#define HAVE_STRTOUL 1
722
 
723
/* Define to 1 if you have the <syslog.h> header file. */
724
/* #undef HAVE_SYSLOG_H */
725
 
726
/* Define to 1 if you have the `system' function. */
727
#define HAVE_SYSTEM 1
728
 
729
/* Define to 1 if you have the <sys/cdefs.h> header file. */
730
/* #undef HAVE_SYS_CDEFS_H */
731
 
732
/* Define to 1 if you have the <sys/conf.h> header file. */
733
/* #undef HAVE_SYS_CONF_H */
734
 
735
/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
736
   */
737
/* #undef HAVE_SYS_DIR_H */
738
 
739
/* Define to 1 if you have the <sys/diskio.h> header file. */
740
/* #undef HAVE_SYS_DISKIO_H */
741
 
742
/* Define to 1 if you have the <sys/dkio.h> header file. */
743
/* #undef HAVE_SYS_DKIO_H */
744
 
745
/* Define to 1 if you have the <sys/dmap.h> header file. */
746
/* #undef HAVE_SYS_DMAP_H */
747
 
748
/* Define to 1 if you have the <sys/file.h> header file. */
749
/* #undef HAVE_SYS_FILE_H */
750
 
751
/* Define to 1 if you have the <sys/filio.h> header file. */
752
/* #undef HAVE_SYS_FILIO_H */
753
 
754
/* Define to 1 if you have the <sys/fixpoint.h> header file. */
755
/* #undef HAVE_SYS_FIXPOINT_H */
756
 
757
/* Define to 1 if you have the <sys/fs.h> header file. */
758
/* #undef HAVE_SYS_FS_H */
759
 
760
/* Define to 1 if you have the <sys/hashing.h> header file. */
761
/* #undef HAVE_SYS_HASHING_H */
762
 
763
/* Define to 1 if you have the <sys/ioctl.h> header file. */
764
/* #undef HAVE_SYS_IOCTL_H */
765
 
766
/* Define to 1 if you have the <sys/loadavg.h> header file. */
767
/* #undef HAVE_SYS_LOADAVG_H */
768
 
769
/* Define to 1 if you have the <sys/mbuf.h> header file. */
770
/* #undef HAVE_SYS_MBUF_H */
771
 
772
/* Define to 1 if you have the <sys/mntent.h> header file. */
773
/* #undef HAVE_SYS_MNTENT_H */
774
 
775
/* Define to 1 if you have the <sys/mnttab.h> header file. */
776
/* #undef HAVE_SYS_MNTTAB_H */
777
 
778
/* Define to 1 if you have the <sys/mount.h> header file. */
779
/* #undef HAVE_SYS_MOUNT_H */
780
 
781
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
782
   */
783
/* #undef HAVE_SYS_NDIR_H */
784
 
785
/* Define to 1 if you have the <sys/param.h> header file. */
786
/* #undef HAVE_SYS_PARAM_H */
787
 
788
/* Define to 1 if you have the <sys/pool.h> header file. */
789
/* #undef HAVE_SYS_POOL_H */
790
 
791
/* Define to 1 if you have the <sys/proc.h> header file. */
792
/* #undef HAVE_SYS_PROC_H */
793
 
794
/* Define to 1 if you have the <sys/protosw.h> header file. */
795
/* #undef HAVE_SYS_PROTOSW_H */
796
 
797
/* Define to 1 if you have the <sys/pstat.h> header file. */
798
/* #undef HAVE_SYS_PSTAT_H */
799
 
800
/* Define to 1 if you have the <sys/queue.h> header file. */
801
/* #undef HAVE_SYS_QUEUE_H */
802
 
803
/* Define to 1 if you have the <sys/select.h> header file. */
804
/* #undef HAVE_SYS_SELECT_H */
805
 
806
/* Define to 1 if you have the <sys/socketvar.h> header file. */
807
/* #undef HAVE_SYS_SOCKETVAR_H */
808
 
809
/* Define to 1 if you have the <sys/socket.h> header file. */
810
/* #undef HAVE_SYS_SOCKET_H */
811
 
812
/* Define to 1 if you have the <sys/sockio.h> header file. */
813
/* #undef HAVE_SYS_SOCKIO_H */
814
 
815
/* Define to 1 if you have the <sys/statfs.h> header file. */
816
/* #undef HAVE_SYS_STATFS_H */
817
 
818
/* Define to 1 if you have the <sys/statvfs.h> header file. */
819
/* #undef HAVE_SYS_STATVFS_H */
820
 
821
/* Define to 1 if you have the <sys/stat.h> header file. */
822
#define HAVE_SYS_STAT_H 1
823
 
824
/* Define to 1 if you have the <sys/stream.h> header file. */
825
/* #undef HAVE_SYS_STREAM_H */
826
 
827
/* Define to 1 if you have the <sys/swap.h> header file. */
828
/* #undef HAVE_SYS_SWAP_H */
829
 
830
/* Define to 1 if you have the <sys/sysctl.h> header file. */
831
/* #undef HAVE_SYS_SYSCTL_H */
832
 
833
/* Define to 1 if you have the <sys/sysmp.h> header file. */
834
/* #undef HAVE_SYS_SYSMP_H */
835
 
836
/* Define to 1 if you have the <sys/tcpipstats.h> header file. */
837
/* #undef HAVE_SYS_TCPIPSTATS_H */
838
 
839
/* Define to 1 if you have the <sys/time.h> header file. */
840
/* #undef HAVE_SYS_TIME_H */
841
 
842
/* Define to 1 if you have the <sys/timeb.h> header file. */
843
#define HAVE_SYS_TIMEB_H 1
844
 
845
/* Define to 1 if you have the <sys/types.h> header file. */
846
#define HAVE_SYS_TYPES_H 1
847
 
848
/* Define to 1 if you have the <sys/un.h> header file. */
849
/* #undef HAVE_SYS_UN_H */
850
 
851
/* Define to 1 if you have the <sys/user.h> header file. */
852
/* #undef HAVE_SYS_USER_H */
853
 
854
/* Define to 1 if you have the <sys/utsname.h> header file. */
855
/* #undef HAVE_SYS_UTSNAME_H */
856
 
857
/* Define to 1 if you have the <sys/vfs.h> header file. */
858
/* #undef HAVE_SYS_VFS_H */
859
 
860
/* Define to 1 if you have the <sys/vmmac.h> header file. */
861
/* #undef HAVE_SYS_VMMAC_H */
862
 
863
/* Define to 1 if you have the <sys/vmmeter.h> header file. */
864
/* #undef HAVE_SYS_VMMETER_H */
865
 
866
/* Define to 1 if you have the <sys/vmparam.h> header file. */
867
/* #undef HAVE_SYS_VMPARAM_H */
868
 
869
/* Define to 1 if you have the <sys/vmsystm.h> header file. */
870
/* #undef HAVE_SYS_VMSYSTM_H */
871
 
872
/* Define to 1 if you have the <sys/vm.h> header file. */
873
/* #undef HAVE_SYS_VM_H */
874
 
875
/* Define to 1 if you have the <sys/vnode.h> header file. */
876
/* #undef HAVE_SYS_VNODE_H */
877
 
878
/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
879
/* #undef HAVE_SYS_WAIT_H */
880
 
881
/* Define to 1 if you have the `tcgetattr' function. */
882
/* #undef HAVE_TCGETATTR */
883
 
884
/* Define to 1 if you have the <ufs/ffs/fs.h> header file. */
885
/* #undef HAVE_UFS_FFS_FS_H */
886
 
887
/* Define to 1 if you have the <ufs/fs.h> header file. */
888
/* #undef HAVE_UFS_FS_H */
889
 
890
/* Define to 1 if you have the <ufs/ufs/dinode.h> header file. */
891
/* #undef HAVE_UFS_UFS_DINODE_H */
892
 
893
/* Define to 1 if you have the <ufs/ufs/inode.h> header file. */
894
/* #undef HAVE_UFS_UFS_INODE_H */
895
 
896
/* Define to 1 if you have the <ufs/ufs/quota.h> header file. */
897
/* #undef HAVE_UFS_UFS_QUOTA_H */
898
 
899
/* Define to 1 if you have the `uname' function. */
900
/* #undef HAVE_UNAME */
901
 
902
/* Define to 1 if you have the <unistd.h> header file. */
903
/* #undef HAVE_UNISTD_H */
904
 
905
/* Define to 1 if you have the `usleep' function. */
906
/* #undef HAVE_USLEEP */
907
 
908
/* Define to 1 if you have the <utmpx.h> header file. */
909
/* #undef HAVE_UTMPX_H */
910
 
911
/* Define to 1 if you have the <utsname.h> header file. */
912
/* #undef HAVE_UTSNAME_H */
913
 
914
/* Define to 1 if you have the <uvm/uvm_extern.h> header file. */
915
/* #undef HAVE_UVM_UVM_EXTERN_H */
916
 
917
/* Define to 1 if you have the <uvm/uvm_param.h> header file. */
918
/* #undef HAVE_UVM_UVM_PARAM_H */
919
 
920
/* Define to 1 if you have the <vm/swap_pager.h> header file. */
921
/* #undef HAVE_VM_SWAP_PAGER_H */
922
 
923
/* Define to 1 if you have the <vm/vm_extern.h> header file. */
924
/* #undef HAVE_VM_VM_EXTERN_H */
925
 
926
/* Define to 1 if you have the <vm/vm.h> header file. */
927
/* #undef HAVE_VM_VM_H */
928
 
929
/* Define to 1 if you have the <vm/vm_param.h> header file. */
930
/* #undef HAVE_VM_VM_PARAM_H */
931
 
932
/* Define to 1 if you have the `vsnprintf' function. */
933
#define HAVE_VSNPRINTF 1
934
 
935
/* Define to 1 if you have the <winsock.h> header file. */
936
#define HAVE_WINSOCK_H 1
937
 
938
/* Define to 1 if you have the <winsock2.h> header file. */
939
#define HAVE_WINSOCK2_H 1
940
 
941
/* Define to 1 if you have the <ws2tcpip.h> header file. */
942
#define HAVE_WS2TCPIP_H 1
943
 
944
/* Set if IP_PKTINFO is usable */
945
#define HAVE_IP_PKTINFO 1
946
 
947
/* Define to 1 if you have the <xti.h> header file. */
948
/* #undef HAVE_XTI_H */
949
 
950
/* Define to the address where bug reports for this package should be sent. */
951
/* #undef PACKAGE_BUGREPORT */
952
 
953
/* Define to the full name of this package. */
954
#ifndef PACKAGE_NAME
955
#define PACKAGE_NAME "Net-SNMP"
956
#endif
957
 
958
/* Define to the full name and version of this package. */
959
/* #undef PACKAGE_STRING */
960
 
961
/* Define to the one symbol short name of this package. */
962
#ifndef PACKAGE_TARNAME
963
#define PACKAGE_TARNAME "net-snmp"
964
#endif
965
 
966
/* Define to the version of this package. */
967
/* #undef PACKAGE_VERSION */
968
 
969
/* Define as the return type of signal handlers (`int' or `void'). */
970
#define RETSIGTYPE void
971
 
972
/* The size of a `int', as computed by sizeof. */
973
#define SIZEOF_INT 4
974
 
975
/* The size of a `long', as computed by sizeof. */
976
#define SIZEOF_LONG 4
977
 
978
/* The size of a `intmax_t', as computed by sizeof. */
979
#define SIZEOF_INTMAX_T 8
980
 
981
/* The size of a `short', as computed by sizeof. */
982
#define SIZEOF_SHORT 2
983
 
984
/* If using the C implementation of alloca, define if you know the
985
   direction of stack growth for your system; otherwise it will be
986
   automatically deduced at run-time.
987
        STACK_DIRECTION > 0 => grows toward higher addresses
988
        STACK_DIRECTION < 0 => grows toward lower addresses
989
        STACK_DIRECTION = 0 => direction of growth unknown */
990
/* #undef STACK_DIRECTION */
991
 
992
/* Define to 1 if you have the ANSI C header files. */
993
#define STDC_HEADERS 1
994
 
995
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
996
/* #undef TIME_WITH_SYS_TIME */
997
 
998
/* Define to 1 if your processor stores words with the most significant byte
999
   first (like Motorola and SPARC, unlike Intel and VAX). */
1000
/* #undef WORDS_BIGENDIAN */
1001
 
1002
/* Define to 1 if on AIX 3.
1003
   System headers sometimes define this.
1004
   We just want to avoid a redefinition error message.  */
1005
#ifndef _ALL_SOURCE
1006
/* # undef _ALL_SOURCE */
1007
#endif
1008
 
1009
/* Define to empty if `const' does not conform to ANSI C. */
1010
/* #undef const */
1011
 
1012
/* Define as `__inline' if that's what the C compiler calls it, or to nothing
1013
   if it is not supported. */
1014
#define inline __inline
1015
 
1016
/* Define to `long' if <sys/types.h> does not define. */
1017
/* #undef off_t */
1018
 
1019
/* Define to `int' if <sys/types.h> does not define. */
1020
/* #undef pid_t */
1021
 
1022
/* define if you have getdevs() */
1023
/* #undef HAVE_GETDEVS */
1024
 
1025
/* define if you have devstat_getdevs() */
1026
/* #undef HAVE_DEVSTAT_GETDEVS */
1027
 
1028
/* define if you have <netinet/in_pcb.h> */
1029
/* #undef HAVE_NETINET_IN_PCB_H */
1030
 
1031
/* define if you have <sys/disklabel.h> */
1032
/* #undef HAVE_SYS_DISKLABEL_H */
1033
 
1034
/* define if you are using linux and /proc/net/dev has the compressed
1035
   field, which exists in linux kernels 2.2 and greater. */
1036
/* #undef PROC_NET_DEV_HAS_COMPRESSED */
1037
 
1038
/* define rtentry to ortentry on SYSV machines (alphas) */
1039
#define RTENTRY rtentry;
1040
 
1041
/* Use BSD 4.4 routing table entries? */
1042
/* #undef RTENTRY_4_4 */
1043
 
1044
/* Does struct sigaction have a sa_sigaction field? */
1045
/* #undef HAVE_STRUCT_SIGACTION_SA_SIGACTION */
1046
 
1047
/* Does struct sockaddr have a sa_len field? */
1048
/* #undef HAVE_STRUCT_SOCKADDR_SA_LEN */
1049
 
1050
/* Does struct sockaddr have a sa_family2 field? */
1051
/* #undef HAVE_STRUCT_SOCKADDR_SA_UNION_SA_GENERIC_SA_FAMILY2 */
1052
 
1053
/* Does struct in6_addr have a s6_un.sa6_ladd field? */
1054
/* #undef HAVE_STRUCT_IN6_ADDR_S6_UN_SA6_LADDR */
1055
 
1056
/* msghdr.msg_control */
1057
/* #undef HAVE_STRUCT_MSGHDR_MSG_CONTROL */
1058
 
1059
/* msghdr.msg_flags */
1060
/* #undef HAVE_STRUCT_MSGHDR_MSG_FLAGS */
1061
 
1062
/* rtentry structure tests */
1063
/* #undef RTENTRY_RT_NEXT */
1064
/* #undef HAVE_STRUCT_RTENTRY_RT_DST */
1065
/* #undef HAVE_STRUCT_RTENTRY_RT_UNIT */
1066
/* #undef HAVE_STRUCT_RTENTRY_RT_USE */
1067
/* #undef HAVE_STRUCT_RTENTRY_RT_REFCNT */
1068
/* #undef HAVE_STRUCT_RTENTRY_RT_HASH */
1069
 
1070
/* ifnet structure tests */
1071
/* #undef HAVE_STRUCT_IFNET_IF_BAUDRATE */
1072
/* #undef HAVE_STRUCT_IFNET_IF_BAUDRATE_IFS_VALUE */
1073
/* #undef HAVE_STRUCT_IFNET_IF_SPEED */
1074
/* #undef HAVE_STRUCT_IFNET_IF_TYPE */
1075
/* #undef HAVE_STRUCT_IFNET_IF_IMCASTS */
1076
/* #undef HAVE_STRUCT_IFNET_IF_IQDROPS */
1077
/* #undef HAVE_STRUCT_IFNET_IF_LASTCHANGE_TV_SEC */
1078
/* #undef HAVE_STRUCT_IFNET_IF_NOPROTO */
1079
/* #undef HAVE_STRUCT_IFNET_IF_OMCASTS */
1080
/* #undef HAVE_STRUCT_IFNET_IF_XNAME */
1081
/* #undef HAVE_STRUCT_IFNET_IF_OBYTES */
1082
/* #undef HAVE_STRUCT_IFNET_IF_IBYTES */
1083
/* #undef HAVE_STRUCT_IFNET_IF_ADDRLIST */
1084
 
1085
/* tcpstat.tcps_rcvmemdrop */
1086
/* #undef HAVE_STRUCT_TCPSTAT_TCPS_RCVMEMDROP */
1087
 
1088
/* udpstat.udps_discard */
1089
/* #undef HAVE_STRUCT_UDPSTAT_UDPS_DISCARD */
1090
 
1091
/* udpstat.udps_discard */
1092
/* #undef HAVE_STRUCT_UDPSTAT_UDPS_NOPORT */
1093
 
1094
/* udpstat.udps_discard */
1095
/* #undef HAVE_STRUCT_UDPSTAT_UDPS_NOPORTBCAST */
1096
 
1097
/* udpstat.udps_discard */
1098
/* #undef HAVE_STRUCT_UDPSTAT_UDPS_FULLSOCK */
1099
 
1100
/* arphd.at_next */
1101
/* #undef HAVE_STRUCT_ARPHD_AT_NEXT */
1102
 
1103
/* ifaddr.ifa_next */
1104
/* #undef HAVE_STRUCT_IFADDR_IFA_NEXT */
1105
 
1106
/* ifnet.if_mtu */
1107
/* #undef HAVE_STRUCT_IFNET_IF_MTU */
1108
 
1109
/* swdevt.sw_nblksenabled */
1110
/* #undef HAVE_STRUCT_SWDEVT_SW_NBLKSENABLED */
1111
 
1112
/* nlist.n_value */
1113
/* #undef HAVE_STRUCT_NLIST_N_VALUE */
1114
 
1115
/* ipstat structure tests */
1116
/* #undef HAVE_STRUCT_IPSTAT_IPS_CANTFORWARD */
1117
/* #undef HAVE_STRUCT_IPSTAT_IPS_CANTFRAG */
1118
/* #undef HAVE_STRUCT_IPSTAT_IPS_DELIVERED */
1119
/* #undef HAVE_STRUCT_IPSTAT_IPS_FRAGDROPPED */
1120
/* #undef HAVE_STRUCT_IPSTAT_IPS_FRAGTIMEOUT */
1121
/* #undef HAVE_STRUCT_IPSTAT_IPS_LOCALOUT */
1122
/* #undef HAVE_STRUCT_IPSTAT_IPS_NOPROTO */
1123
/* #undef HAVE_STRUCT_IPSTAT_IPS_NOROUTE */
1124
/* #undef HAVE_STRUCT_IPSTAT_IPS_ODROPPED */
1125
/* #undef HAVE_STRUCT_IPSTAT_IPS_OFRAGMENTS */
1126
/* #undef HAVE_STRUCT_IPSTAT_IPS_REASSEMBLED */
1127
 
1128
/* vfsstat.f_frsize */
1129
/* #undef HAVE_STRUCT_STATVFS_F_FRSIZE */
1130
 
1131
/* vfsstat.f_files */
1132
/* #undef HAVE_STRUCT_STATVFS_F_FILES */
1133
 
1134
/* statfs inode structure tests*/
1135
/* #undef HAVE_STRUCT_STATFS_F_FILES */
1136
/* #undef HAVE_STRUCT_STATFS_F_FFREE */
1137
/* #undef HAVE_STRUCT_STATFS_F_FAVAIL */
1138
 
1139
/* des_ks_struct.weak_key */
1140
/* #undef HAVE_STRUCT_DES_KS_STRUCT_WEAK_KEY */
1141
 
1142
/* ifnet needs to have _KERNEL defined */
1143
/* #undef IFNET_NEEDS_KERNEL */
1144
 
1145
/* sysctl works to get boottime, etc... */
1146
/* #undef NETSNMP_CAN_USE_SYSCTL */
1147
 
1148
/* type check for in_addr_t */
1149
/* #undef in_addr_t */
1150
 
1151
/* define if SIOCGIFADDR exists in sys/ioctl.h */
1152
/* #undef SYS_IOCTL_H_HAS_SIOCGIFADDR */
1153
 
1154
/* Mib-2 tree Info */
1155
/* These are the system information variables. */
1156
 
1157
#define NETSNMP_VERS_DESC   "unknown"             /* overridden at run time */
1158
#define NETSNMP_SYS_NAME    "unknown"             /* overridden at run time */
1159
 
1160
/* comment out the second define to turn off functionality for any of
1161
   these: (See README for details) */
1162
 
1163
/*   proc PROCESSNAME [MAX] [MIN] */
1164
#define NETSNMP_PROCMIBNUM 2
1165
 
1166
/*   exec/shell NAME COMMAND      */
1167
#define NETSNMP_SHELLMIBNUM 8
1168
 
1169
/*   swap MIN                     */
1170
#define NETSNMP_MEMMIBNUM 4
1171
 
1172
/*   disk DISK MINSIZE            */
1173
#define NETSNMP_DISKMIBNUM 9
1174
 
1175
/*   load 1 5 15                  */
1176
#define NETSNMP_LOADAVEMIBNUM 10
1177
 
1178
/* which version are you using? This mibloc will tell you */
1179
#define NETSNMP_VERSIONMIBNUM 100
1180
 
1181
/* Reports errors the agent runs into */
1182
/* (typically its "can't fork, no mem" problems) */
1183
#define NETSNMP_ERRORMIBNUM 101
1184
 
1185
/* The sub id of EXTENSIBLEMIB returned to queries of
1186
   .iso.org.dod.internet.mgmt.mib-2.system.sysObjectID.0 */
1187
#define NETSNMP_AGENTID 250
1188
 
1189
/* This ID is returned after the NETSNMP_AGENTID above.  IE, the resulting
1190
   value returned by a query to sysObjectID is
1191
   EXTENSIBLEMIB.NETSNMP_AGENTID.???, where ??? is defined below by OSTYPE */
1192
 
1193
#define NETSNMP_HPUX9ID 1
1194
#define NETSNMP_SUNOS4ID 2
1195
#define NETSNMP_SOLARISID 3
1196
#define NETSNMP_OSFID 4
1197
#define NETSNMP_ULTRIXID 5
1198
#define NETSNMP_HPUX10ID 6
1199
#define NETSNMP_NETBSD1ID 7
1200
#define NETSNMP_FREEBSDID 8
1201
#define NETSNMP_IRIXID 9
1202
#define NETSNMP_LINUXID 10
1203
#define NETSNMP_BSDIID 11
1204
#define NETSNMP_OPENBSDID 12
1205
#define NETSNMP_WIN32ID 13
1206
#define NETSNMP_HPUX11ID 14
1207
#define NETSNMP_UNKNOWNID 255
1208
 
1209
#ifdef hpux9
1210
#define OSTYPE NETSNMP_HPUX9ID
1211
#endif
1212
#ifdef hpux10
1213
#define OSTYPE NETSNMP_HPUX10ID
1214
#endif
1215
#ifdef hpux11
1216
#define OSTYPE NETSNMP_HPUX11ID
1217
#endif
1218
#ifdef sunos4
1219
#define OSTYPE NETSNMP_SUNOS4ID
1220
#endif
1221
#ifdef solaris2
1222
#define OSTYPE NETSNMP_SOLARISID
1223
#endif
1224
#if defined(osf3) || defined(osf4) || defined(osf5)
1225
#define OSTYPE NETSNMP_OSFID
1226
#endif
1227
#ifdef ultrix4
1228
#define OSTYPE NETSNMP_ULTRIXID
1229
#endif
1230
#ifdef netbsd1
1231
#define OSTYPE NETSNMP_NETBSD1ID
1232
#endif
1233
#if defined(__FreeBSD__)
1234
#define OSTYPE NETSNMP_FREEBSDID
1235
#endif
1236
#if defined(irix6) || defined(irix5)
1237
#define OSTYPE NETSNMP_IRIXID
1238
#endif
1239
#ifdef linux
1240
#define OSTYPE NETSNMP_LINUXID
1241
#endif
1242
#if defined(bsdi2) || defined(bsdi3) || defined(bsdi4)
1243
#define OSTYPE NETSNMP_BSDIID
1244
#endif
1245
#ifdef openbsd2
1246
#define OSTYPE NETSNMP_OPENBSDID
1247
#endif
1248
#ifdef WIN32
1249
#define OSTYPE NETSNMP_WIN32ID
1250
#endif
1251
/* unknown */
1252
#ifndef OSTYPE
1253
#define OSTYPE NETSNMP_UNKNOWNID
1254
#endif
1255
 
1256
/* The enterprise number has been assigned by the IANA group.   */
1257
/* Optionally, this may point to the location in the tree your  */
1258
/* company/organization has been allocated.                     */
1259
/* The assigned enterprise number for the NET_SNMP MIB modules. */
1260
#define NETSNMP_ENTERPRISE_OID                  8072
1261
#define NETSNMP_ENTERPRISE_MIB                  1,3,6,1,4,1,8072
1262
#define NETSNMP_ENTERPRISE_DOT_MIB              1.3.6.1.4.1.8072
1263
#define NETSNMP_ENTERPRISE_DOT_MIB_LENGTH       7
1264
 
1265
/* The assigned enterprise number for sysObjectID. */
1266
#define NETSNMP_SYSTEM_MIB              1,3,6,1,4,1,8072,3,2,OSTYPE
1267
#define NETSNMP_SYSTEM_DOT_MIB          1.3.6.1.4.1.8072.3.2.OSTYPE
1268
#define NETSNMP_SYSTEM_DOT_MIB_LENGTH   10
1269
 
1270
/* The assigned enterprise number for notifications. */
1271
#define NETSNMP_NOTIFICATION_MIB                1,3,6,1,4,1,8072,4
1272
#define NETSNMP_NOTIFICATION_DOT_MIB            1.3.6.1.4.1.8072.4
1273
#define NETSNMP_NOTIFICATION_DOT_MIB_LENGTH     8
1274
 
1275
/* this is the location of the ucdavis mib tree.  It shouldn't be
1276
   changed, as the places it is used are expected to be constant
1277
   values or are directly tied to the UCD-SNMP-MIB. */
1278
#define NETSNMP_UCDAVIS_OID             2021
1279
#define NETSNMP_UCDAVIS_MIB             1,3,6,1,4,1,2021
1280
#define NETSNMP_UCDAVIS_DOT_MIB         1.3.6.1.4.1.2021
1281
#define NETSNMP_UCDAVIS_DOT_MIB_LENGTH  7
1282
 
1283
/* this is the location of the net-snmp mib tree.  It shouldn't be
1284
   changed, as the places it is used are expected to be constant
1285
   values or are directly tied to the UCD-SNMP-MIB. */
1286
#define NETSNMP_OID             8072
1287
#define NETSNMP_MIB             1,3,6,1,4,1,8072
1288
#define NETSNMP_DOT_MIB         1.3.6.1.4.1.8072
1289
#define NETSNMP_DOT_MIB_LENGTH  7
1290
 
1291
/* how long to wait (seconds) for error querys before reseting the error trap.*/
1292
#define NETSNMP_ERRORTIMELENGTH 600
1293
 
1294
/* Exec command to fix PROC problems */
1295
/* %s will be replaced by the process name in error */
1296
 
1297
/* #define NETSNMP_PROCFIXCMD "/usr/bin/perl /local/scripts/fixproc %s" */
1298
 
1299
/* Exec command to fix EXEC problems */
1300
/* %s will be replaced by the exec/script name in error */
1301
 
1302
/* #define NETSNMP_EXECFIXCMD "/usr/bin/perl /local/scripts/fixproc %s" */
1303
 
1304
/* Should exec output Cashing be used (speeds up things greatly), and
1305
   if so, After how many seconds should the cache re-newed?  Note:
1306
   Don't define CASHETIME to disable cashing completely */
1307
 
1308
#define NETSNMP_EXCACHETIME 30
1309
#define NETSNMP_CACHEFILE ".snmp-exec-cache"
1310
#define NETSNMP_MAXCACHESIZE (200*80)   /* roughly 200 lines max */
1311
 
1312
#define MAXDISKS 50                      /* can't scan more than this number */
1313
 
1314
/* misc defaults */
1315
 
1316
/* default of 100 meg minimum if the minimum size is not specified in
1317
   the config file */
1318
#define NETSNMP_DEFDISKMINIMUMSPACE 100000
1319
 
1320
#define NETSNMP_DEFMAXLOADAVE 12.0      /* default maximum load average before error */
1321
 
1322
/* Because of sleep(1)s, this will also be time to wait (in seconds) for exec
1323
   to finish */
1324
#define NETSNMP_MAXREADCOUNT 100   /* max times to loop reading output from execs. */
1325
 
1326
/* The original CMU code had this hardcoded as = 1 */
1327
#define NETSNMP_SNMPBLOCK 1       /* Set if snmpgets should block and never timeout */
1328
 
1329
/* How long to wait before restarting the agent after a snmpset to
1330
   EXTENSIBLEMIB.NETSNMP_VERSIONMIBNUM.VERRESTARTAGENT.  This is
1331
   necessary to finish the snmpset reply before restarting. */
1332
#define NETSNMP_RESTARTSLEEP 5
1333
 
1334
/* Number of community strings to store */
1335
#define NETSNMP_NUM_COMMUNITIES 5
1336
 
1337
/* UNdefine to allow specifying zero-length community string */
1338
/* #define NETSNMP_NO_ZEROLENGTH_COMMUNITY 1 */
1339
 
1340
#define NETSNMP_LASTFIELD -1      /* internal define */
1341
 
1342
/* configure options specified */
1343
#define NETSNMP_CONFIGURE_OPTIONS ""
1344
 
1345
/* got socklen_t? */
1346
#ifdef HAVE_WIN32_PLATFORM_SDK
1347
#define HAVE_SOCKLEN_T 1
1348
#endif
1349
 
1350
/* got in_addr_t? */
1351
/* #undef HAVE_IN_ADDR_T */
1352
 
1353
#ifdef __MINGW32__
1354
/* got ssize_t? */
1355
#define HAVE_SSIZE_T
1356
#endif
1357
 
1358
/* If you have openssl 0.9.7 or above, you likely have AES support. */
1359
/* #undef NETSNMP_USE_OPENSSL */
1360
 
1361
#ifdef NETSNMP_USE_OPENSSL
1362
 
1363
/* Define to 1 if you have the <openssl/dh.h> header file. */
1364
#define HAVE_OPENSSL_DH_H 1
1365
 
1366
/* Define to 1 if you have the <openssl/aes.h> header file. */
1367
#define HAVE_OPENSSL_AES_H 1
1368
 
1369
/* Define to 1 if you have the `EVP_MD_CTX_create' function. */
1370
#define HAVE_EVP_MD_CTX_CREATE 1
1371
 
1372
/* Define to 1 if you have the `EVP_MD_CTX_destroy' function. */
1373
#define HAVE_EVP_MD_CTX_DESTROY 1
1374
 
1375
/* Define to 1 if you have the `AES_cfb128_encrypt' function. */
1376
#define HAVE_AES_CFB128_ENCRYPT 1
1377
 
1378
#if defined(HAVE_OPENSSL_AES_H) && defined(HAVE_AES_CFB128_ENCRYPT)
1379
#define HAVE_AES 1
1380
#endif
1381
 
1382
#else /* ! NETSNMP_USE_OPENSSL */
1383
 
1384
/* define if you are using the MD5 code ...*/
1385
#define NETSNMP_USE_INTERNAL_MD5 1
1386
 
1387
#endif /* ! NETSNMP_USE_OPENSSL */
1388
 
1389
 
1390
/* define random functions */
1391
 
1392
#ifndef HAVE_RANDOM
1393
#ifdef HAVE_LRAND48
1394
#define random lrand48
1395
#define srandom(s) srand48(s)
1396
#else
1397
#ifdef HAVE_RAND
1398
#define random rand
1399
#define srandom(s) srand(s)
1400
#endif
1401
#endif
1402
#endif
1403
 
1404
/* define signal if DNE */
1405
 
1406
#ifndef HAVE_SIGNAL
1407
#ifdef HAVE_SIGSET
1408
#define signal(a,b) sigset(a,b)
1409
#endif
1410
#endif
1411
 
1412
/* define if you have librpm and libdb */
1413
/* #undef HAVE_LIBDB */
1414
/* #undef HAVE_LIBRPM */
1415
 
1416
/* define if you have pkginfo */
1417
/* #undef HAVE_PKGINFO */
1418
 
1419
/* define if you have gethostbyname */
1420
#define HAVE_GETHOSTBYNAME 1
1421
 
1422
/* define if you have gethostbyaddr */
1423
#define HAVE_GETHOSTBYADDR 1
1424
 
1425
/* printing system */
1426
/* #undef HAVE_LPSTAT */
1427
/* #undef LPSTAT_PATH */
1428
/* #undef HAVE_PRINTCAP */
1429
 
1430
/*  Pluggable transports.  */
1431
 
1432
/*  This is defined if support for the UDP/IP transport domain is
1433
    available.   */
1434
#define NETSNMP_TRANSPORT_UDP_DOMAIN 1
1435
 
1436
/*  This is defined if support for the "callback" transport domain is
1437
    available.   */
1438
#define NETSNMP_TRANSPORT_CALLBACK_DOMAIN 1
1439
 
1440
/*  This is defined if support for the TCP/IP transport domain is
1441
    available.  */
1442
#define NETSNMP_TRANSPORT_TCP_DOMAIN 1
1443
 
1444
/*  This is defined if support for the Unix transport domain
1445
    (a.k.a. "local IPC") is available.  */
1446
/* #undef NETSNMP_TRANSPORT_UNIX_DOMAIN */
1447
 
1448
/*  This is defined if support for the AAL5 PVC transport domain is
1449
    available.  */
1450
/* #undef NETSNMP_TRANSPORT_AAL5PVC_DOMAIN */
1451
 
1452
/*  This is defined if support for the IPX transport domain is
1453
    available.  */
1454
/* #undef NETSNMP_TRANSPORT_IPX_DOMAIN */
1455
 
1456
/* XXX do not modify. change the NETSNMP_ENABLE_IPV6 define instead */
1457
/*  This is defined if support for the UDP/IPv6 transport domain is
1458
    available.  */
1459
/* #undef NETSNMP_TRANSPORT_UDPIPV6_DOMAIN */
1460
 
1461
/* XXX do not modify. change the NETSNMP_ENABLE_IPV6 define instead */
1462
/*  This is defined if support for the TCP/IPv6 transport domain is
1463
    available.  */
1464
/* #undef NETSNMP_TRANSPORT_TCPIPV6_DOMAIN */
1465
 
1466
/*  This is defined if support for the TLS transport domain is
1467
    available.   */
1468
/* #undef NETSNMP_TRANSPORT_TLSBASE_DOMAIN */
1469
 
1470
/*  This is defined if support for the Alias transport domain is
1471
    available.   */
1472
/* #undef NETSNMP_TRANSPORT_ALIAS_DOMAIN */
1473
 
1474
/*  This is defined if support for the SSH transport domain is
1475
    available.   */
1476
/* #undef NETSNMP_TRANSPORT_SSH_DOMAIN */
1477
 
1478
/*  This is defined if support for the DTLS/UDP transport domain is
1479
    available.   */
1480
/* #undef NETSNMP_TRANSPORT_DTLSUDP_DOMAIN */
1481
 
1482
/*  This is defined if support for the TLS/TCP transport domain is
1483
    available.   */
1484
/* #undef NETSNMP_TRANSPORT_TLSTCP_DOMAIN */
1485
 
1486
/*  This is defined if support for stdin/out transport domain is available.   */
1487
/* #undef NETSNMP_TRANSPORT_STD_DOMAIN */
1488
 
1489
/*  This is defined if support for the IPv4Base transport domain is available.   */
1490
#define NETSNMP_TRANSPORT_IPV4BASE_DOMAIN 1
1491
 
1492
/* define this if the USM security module is available */
1493
#define NETSNMP_SECMOD_USM 1
1494
 
1495
/* define this if the KSM (kerberos based snmp) security module is available */
1496
/* #undef NETSNMP_SECMOD_KSM */
1497
 
1498
/* define this if we're using the new MIT crypto API */
1499
/* #undef NETSNMP_USE_KERBEROS_MIT */
1500
 
1501
/* define if you want to build with reentrant/threaded code (incomplete)*/
1502
/* #undef NETSNMP_REENTRANT */
1503
 
1504
/* on aix, if you have perfstat */
1505
/* #undef HAVE_PERFSTAT */
1506
 
1507
/* Not-to-be-compiled macros for use by configure only */
1508
#define config_require(x)
1509
#define config_version_require(x)
1510
#define config_warning(x)
1511
#define config_error(x)
1512
#define config_exclude(x)
1513
#define config_arch_require(x,y)
1514
#define config_parse_dot_conf(w,x,y,z)
1515
#define config_add_mib(x)
1516
#define config_belongs_in(x)
1517
 
1518
#if defined (WIN32)
1519
#define ENV_SEPARATOR ";"
1520
#define ENV_SEPARATOR_CHAR ';'
1521
#else
1522
#define ENV_SEPARATOR ":"
1523
#define ENV_SEPARATOR_CHAR ':'
1524
#endif
1525
 
1526
/*
1527
 * this must be before the system/machine includes, to allow them to
1528
 * override and turn off inlining. To do so, they should do the
1529
 * following:
1530
 *
1531
 *    #undef NETSNMP_ENABLE_INLINE
1532
 *    #define NETSNMP_ENABLE_INLINE 0
1533
 *
1534
 * A user having problems with their compiler can also turn off
1535
 * the use of inline by defining NETSNMP_NO_INLINE via their cflags:
1536
 *
1537
 *    -DNETSNMP_NO_INLINE
1538
 *
1539
 * Header and source files should only test against NETSNMP_USE_INLINE:
1540
 *
1541
 *   #ifdef NETSNMP_USE_INLINE
1542
 *   NETSNMP_INLINE function(int parm) { return parm -1; }
1543
 *   #endif
1544
 *
1545
 * Functions which should be static, regardless of whether or not inline
1546
 * is available or enabled should use the NETSNMP_STATIC_INLINE macro,
1547
 * like so:
1548
 *
1549
 *    NETSNMP_STATIC_INLINE function(int parm) { return parm -1; }
1550
 *
1551
 * NOT like this:
1552
 *
1553
 *    static NETSNMP_INLINE function(int parm) { return parm -1; }
1554
 *
1555
 */
1556
/*
1557
 * Win32 needs extern for inline function declarations in headers.
1558
 * See MS tech note Q123768:
1559
 *   http://support.microsoft.com/default.aspx?scid=kb;EN-US;123768
1560
 */
1561
#define NETSNMP_INLINE extern inline
1562
#define NETSNMP_STATIC_INLINE static inline
1563
#define NETSNMP_ENABLE_INLINE 1
1564
 
1565
#if notused
1566
#include NETSNMP_SYSTEM_INCLUDE_FILE
1567
#include NETSNMP_MACHINE_INCLUDE_FILE
1568
#endif
1569
 
1570
#if NETSNMP_ENABLE_INLINE && !defined(NETSNMP_NO_INLINE)
1571
#   define NETSNMP_USE_INLINE 1
1572
#else
1573
#   undef  NETSNMP_INLINE
1574
#   define NETSNMP_INLINE 
1575
#   undef  NETSNMP_STATIC_INLINE
1576
#   define NETSNMP_STATIC_INLINE static
1577
#endif
1578
 
1579
#ifdef WIN32
1580
 
1581
#ifndef __MINGW32__
1582
typedef unsigned short mode_t;
1583
#endif
1584
#ifndef HAVE_STDINT_H
1585
typedef unsigned char uint8_t;
1586
typedef signed char int8_t;
1587
typedef unsigned __int16 uint16_t;
1588
typedef __int16 int16_t;
1589
typedef unsigned __int32 uint32_t;
1590
typedef __int32 int32_t;
1591
typedef unsigned __int64 uint64_t;
1592
typedef __int64 int64_t;
1593
typedef unsigned __int64 uintmax_t;
1594
typedef __int64 intmax_t;
1595
#else /* HAVE_STDINT_H */
1596
#include <stdint.h>
1597
#endif /* HAVE_STDINT_H */
1598
 
1599
 
1600
/* (u)intptr_t should only be needed for MSVC 6 32-bit. */
1601
/* SDK has it for 64-bit and newer MSVC should also have it in stddef.h. */
1602
#ifndef _INTPTR_T_DEFINED
1603
#ifdef _M_X64
1604
typedef __int64          intptr_t;
1605
#else
1606
typedef int              intptr_t;
1607
#endif
1608
#define _INTPTR_T_DEFINED
1609
#endif
1610
 
1611
#ifndef _UINTPTR_T_DEFINED
1612
#ifdef _M_X64
1613
typedef unsigned __int64 uintptr_t;
1614
#else
1615
typedef unsigned int     uintptr_t;
1616
#endif
1617
#define _UINTPTR_T_DEFINED
1618
#endif
1619
 
1620
#ifndef __cplusplus
1621
#ifdef _MSC_VER
1622
#pragma warning(push)
1623
#pragma warning(disable: 4804) // '-' : unsafe use of type 'bool' in operation
1624
#endif
154 f9daq 1625
/* SAMO : ne dela z LabWindows CVI?
151 f9daq 1626
enum {
1627
    netsnmp_compile_time_uintptr_t_size_check
1628
        = sizeof(struct netsnmp_compile_time_uintptr_t_size_check_s { int:-!(sizeof(uintptr_t) == sizeof(void*)); })
1629
};
1630
*/
1631
#ifdef _MSC_VER
1632
#pragma warning(pop)
1633
#endif
1634
#endif
1635
 
1636
/* Define if you have the closesocket function.  */
1637
#define HAVE_CLOSESOCKET 1
1638
 
1639
/* Define if you have raise() instead of alarm() */
1640
#define HAVE_RAISE 1
1641
 
1642
/* define to 1 if you do not want to set global snmp_errno */
1643
#define DONT_SHARE_ERROR_WITH_OTHER_THREADS 1
1644
 
1645
/* Defining vsnprintf is not necessary for MSVC 2008 or later */
1646
#if defined(_MSC_VER) && _MSC_VER < 1500
1647
#define vsnprintf _vsnprintf
1648
#endif
1649
#ifdef _MSC_VER
1650
#define snprintf  _snprintf
1651
#endif
1652
 
1653
#if defined(_MSC_VER) && _MSC_VER < 1600
1654
#define EADDRINUSE      WSAEADDRINUSE
1655
#endif
1656
 
1657
/* Define NETSNMP_USE_DLL when building or using netsnmp.DLL */
1658
#define NETSNMP_USE_DLL 1
1659
 
1660
#if defined(NETSNMP_DLL) && !defined(NETSNMP_USE_DLL)
1661
#error NETSNMP_USE_DLL must be defined when building libsnmp as a DLL.
1662
#endif
1663
 
1664
/*
1665
 * DLL decoration, if used at all, must be consistent.
1666
 * This is why NETSNMP_IMPORT is really an export decoration
1667
 * when it is encountered in a header file that is included
1668
 * during the compilation of a library source file.
1669
 * NETSNMP_DLL is set by the MSVC libsnmp_dll project
1670
 *  in order to signal that the library sources are being compiled.
1671
 * Not defining NETSNMP_USE_DLL ignores the preceding, and renders
1672
 *  the NETSNMP_IMPORT definitions harmless.
1673
 */
1674
 
1675
#ifdef NETSNMP_USE_DLL
1676
  #ifdef NETSNMP_DLL
1677
    #if defined(_MSC_VER)
1678
      #define NETSNMP_IMPORT __declspec(dllexport)
1679
    #endif
1680
  #else
1681
    #if defined(_MSC_VER)
1682
      #define NETSNMP_IMPORT __declspec(dllimport)
1683
    #endif
1684
  #endif   /* NETSNMP_DLL */
1685
#endif     /* NETSNMP_USE_DLL */
1686
 
1687
/* MSVC OpenSSL linker settings. */
1688
#if defined(_MSC_VER)
1689
#  if defined(NETSNMP_USE_OPENSSL)
1690
#    ifdef _DLL
1691
#      ifdef _DEBUG
1692
#        pragma comment(lib, "libeay32MDd.lib")
1693
#      else
1694
#        pragma comment(lib, "libeay32MD.lib")
1695
#      endif
1696
#    else
1697
#      ifdef _DEBUG
1698
#        pragma comment(lib, "libeay32MTd.lib")
1699
#      else
1700
#        pragma comment(lib, "libeay32MT.lib")
1701
#      endif
1702
#    endif
1703
#    pragma comment(lib, "gdi32.lib")
1704
#    pragma comment(lib, "user32.lib")
1705
#  endif
1706
#endif
1707
 
1708
#endif       /* WIN32 */
1709
 
1710
#ifndef NETSNMP_IMPORT
1711
#  define NETSNMP_IMPORT extern
1712
#endif
1713
 
1714
#if defined(HAVE_NLIST) && defined(HAVE_STRUCT_NLIST_N_VALUE) && !defined(DONT_USE_NLIST) && !defined(NETSNMP_NO_KMEM_USAGE)
1715
#define NETSNMP_CAN_USE_NLIST
1716
#endif
1717
 
1718
#if HAVE_DMALLOC_H
1719
#define DMALLOC_FUNC_CHECK
1720
#endif
1721
 
1722
/* #undef NETSNMP_ENABLE_LOCAL_SMUX */
1723
 
1724
/* define if agentx transport is to use domain sockets only */
1725
/* #undef NETSNMP_AGENTX_DOM_SOCK_ONLY */
1726
 
1727
#ifndef LOG_DAEMON
1728
#define       LOG_DAEMON      (3<<3)  /* system daemons */
1729
#endif
1730
 
1731
#if UCD_COMPATIBLE
1732
/* old and in the way */
1733
#define EXTENSIBLEMIB NETSNMP_UCDAVIS_MIB
1734
#endif
1735
 
1736
#ifdef _MSC_VER
1737
/* Windows Vista and higher have inet_ntop but older Windows does not.
1738
 * We'll use the Net-SNMP version instead. */
1739
#undef HAVE_INET_NTOP
1740
#undef HAVE_INET_PTON
1741
 
1742
/* IPv6 transports */
1743
#ifdef NETSNMP_ENABLE_IPV6
1744
  #define NETSNMP_TRANSPORT_TCPIPV6_DOMAIN 1
1745
  #define NETSNMP_TRANSPORT_UDPIPV6_DOMAIN 1
1746
  #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
1747
#else
1748
  #undef NETSNMP_TRANSPORT_TCPIPV6_DOMAIN
1749
  #undef NETSNMP_TRANSPORT_UDPIPV6_DOMAIN
1750
#endif
1751
#endif
1752
 
1753
/*
1754
 * Although if_nametoindex() is available on Windows Vista, Windows Server
1755
 * 2008 and later in iphlpapi.dll, do not link with if_nametoindex() such
1756
 * that the Net-SNMP executable can be started on earlier Windows versions.
1757
 */
1758
#undef HAVE_IF_NAMETOINDEX
1759
 
1760
#ifndef NI_MAXHOST
1761
#define NI_MAXHOST      1025
1762
#endif
1763
 
1764
/* Define to 1 if you have the `strtoull' function. */
1765
#if _MSC_VER >= 1800
1766
#define HAVE_STRTOULL
1767
#else
1768
/* #undef HAVE_STRTOULL */
1769
#endif
1770
 
1771
/*
1772
 * Module configuration and control starts here.
1773
 *
1774
 * Some of the defines herein are used to control
1775
 * groups of modules.  The ones that have "CFG"
1776
 * are used especially to control the include files
1777
 * seen in {agent,mib}_module_includes.h, and the init entries
1778
 * which are invoked in {agent,mib}_module_inits.h.
1779
 *
1780
 * To disable a group, uncomment the associated define.
1781
 */
1782
 
1783
/* CFG Define if compiling with the ucd_snmp module files.  */
1784
#define USING_UCD_SNMP_MODULE 1
1785
 
1786
/* CFG Define if compiling with the agentx module files.  */
1787
#define USING_AGENTX_MODULE 1
1788
 
1789
/* CFG Define if compiling with the host module files.  */
1790
/* #undef USING_HOST_MODULE */
1791
 
1792
/* CFG Define if compiling with the Rmon module files.  */
1793
/* #undef USING_RMON_MODULE */
1794
 
1795
/* CFG Define if compiling with the disman/event-mib module files.  */
1796
#define USING_DISMAN_EVENT_MIB_MODULE 1
1797
 
1798
/* CFG Define if compiling with the smux module files.  */
1799
/* #undef USING_SMUX_MODULE */
1800
 
1801
/* Define if compiling with the winExtDLL module.  */
1802
#define USING_WINEXTDLL_MODULE 1
1803
 
1804
/*
1805
 * Module configuration and control ends here.
1806
 */
1807
#define UDP_ADDRESSES_IN_HOST_ORDER 1
1808
 
1809
/* Timeout in milliseconds for Win32 function WaitForSingleObject.
1810
   Used by agent pass. */
1811
#define NETSNMP_TIMEOUT_WAITFORSINGLEOBJECT 5000
1812
 
1813
#ifdef HAVE_WIN32_PLATFORM_SDK
1814
#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
1815
#endif
1816
 
1817
/* Size prefix to use to printf a uint32_t */
1818
#define NETSNMP_PRI32 ""
1819
 
1820
#ifdef _MSC_VER
1821
#ifdef _WIN64
1822
#define NETSNMP_PRIz "I64"
1823
#else
1824
#define NETSNMP_PRIz ""
1825
#endif
1826
#endif
1827
 
1828
#endif /* NET_SNMP_CONFIG_H */
1829