OSDN Git Service

Fix no pic
[uclinux-h8/uClinux-dist.git] / user / net-snmp / acconfig.h
1 /* 
2  * net-snmp configuration header file
3  */
4 /* Portions of this file are subject to the following copyright(s).  See
5  * the Net-SNMP's COPYING file for more details and other copyrights
6  * that may apply:
7  */
8 /*
9  * Portions of this file are copyrighted by:
10  * Copyright © 2003 Sun Microsystems, Inc. All rights reserved.
11  * Use is subject to license terms specified in the COPYING file
12  * distributed with the Net-SNMP package.
13  */
14
15 #ifndef NET_SNMP_CONFIG_H
16 #define NET_SNMP_CONFIG_H
17
18
19 /* ********* NETSNMP_MARK_BEGIN_AUTOCONF_DEFINITIONS ********* */
20 /*
21  * put all autoconf-specific definitions below here
22  *
23  */
24 #ifndef NETSNMP_NO_AUTOCONF_DEFINITIONS
25
26
27 #if defined (WIN32) || defined (mingw32) || defined (cygwin)
28 #define ENV_SEPARATOR ";"
29 #define ENV_SEPARATOR_CHAR ';'
30 #else
31 #define ENV_SEPARATOR ":"
32 #define ENV_SEPARATOR_CHAR ':'
33 #endif
34
35 /* definitions added by configure on-the-fly */
36 @TOP@
37 @BOTTOM@
38
39 /* end of definitions added by configure on-the-fly */
40
41 /* If you have openssl 0.9.7 or above, you likely have AES support. */
42 #undef NETSNMP_USE_OPENSSL
43 #if defined(NETSNMP_USE_OPENSSL) && defined(HAVE_OPENSSL_AES_H) && defined(HAVE_AES_CFB128_ENCRYPT)
44 #define HAVE_AES 1
45 #endif
46
47 /* define random functions */
48
49 #ifndef HAVE_RANDOM
50 #ifdef HAVE_LRAND48
51 #define random lrand48
52 #define srandom(s) srand48(s)
53 #else
54 #ifdef HAVE_RAND
55 #define random rand
56 #define srandom(s) srand(s)
57 #endif
58 #endif
59 #endif
60
61 /* define signal if DNE */
62
63 #ifndef HAVE_SIGNAL
64 #ifdef HAVE_SIGSET
65 #define signal(a,b) sigset(a,b)
66 #endif
67 #endif
68
69 #if HAVE_DMALLOC_H
70 #define DMALLOC_FUNC_CHECK
71 #endif
72
73 #endif /* NETSNMP_NO_AUTOCONF_DEFINITIONS */
74
75
76
77
78 /* ********* NETSNMP_MARK_BEGIN_CLEAN_NAMESPACE ********* */
79 /* 
80  * put all new net-snmp-specific definitions here
81  *
82  * all definitions MUST have a NETSNMP_ prefix
83  *
84  */
85
86 /* Default (SNMP) version number for the tools to use */
87 #define NETSNMP_DEFAULT_SNMP_VERSION 3
88
89 /* don't change these values! */
90 #define NETSNMP_SNMPV1      0xAAAA       /* readable by anyone */
91 #define NETSNMP_SNMPV2ANY   0xA000       /* V2 Any type (includes NoAuth) */
92 #define NETSNMP_SNMPV2AUTH  0x8000       /* V2 Authenticated requests only */
93
94 /* default list of mibs to load */
95 #define NETSNMP_DEFAULT_MIBS "IP-MIB:IF-MIB:TCP-MIB:UDP-MIB:SNMPv2-MIB:RFC1213-MIB"
96
97 /* debugging stuff */
98 /* if defined, we optimize the code to exclude all debugging calls. */
99 #undef NETSNMP_NO_DEBUGGING
100 /* ignore the -D flag and always print debugging information */
101 #define NETSNMP_ALWAYS_DEBUG 0
102
103 /* reverse encoding BER packets is both faster and more efficient in space. */
104 #define NETSNMP_USE_REVERSE_ASNENCODING       1
105 #define NETSNMP_DEFAULT_ASNENCODING_DIRECTION 1 /* 1 = reverse, 0 = forwards */
106
107 /* PERSISTENT_DIRECTORY: If defined, the library is capabile of saving
108    persisant information to this directory in the form of configuration
109    lines: PERSISTENT_DIRECTORY/NAME.persistent.conf */
110 #define NETSNMP_PERSISTENT_DIRECTORY "/var/snmp"
111
112 /* AGENT_DIRECTORY_MODE: the mode the agents should use to create
113    directories with. Since the data stored here is probably sensitive, it
114    probably should be read-only by root/administrator. */
115 #define NETSNMP_AGENT_DIRECTORY_MODE 0700
116
117 /* MAX_PERSISTENT_BACKUPS:
118  *   The maximum number of persistent backups the library will try to
119  *   read from the persistent cache directory.  If an application fails to
120  *   close down successfully more than this number of times, data will be lost.
121  */
122 #define NETSNMP_MAX_PERSISTENT_BACKUPS 10
123
124 /* define the system type include file here */
125 #define NETSNMP_SYSTEM_INCLUDE_FILE <net-snmp/system/generic.h>
126
127 /* define the machine (cpu) type include file here */
128 #define NETSNMP_MACHINE_INCLUDE_FILE <net-snmp/machine/generic.h>
129
130 /* define the UDP buffer defaults undefined means use the OS buffers
131  * by default */
132 #undef NETSNMP_DEFAULT_SERVER_SEND_BUF
133 #undef NETSNMP_DEFAULT_SERVER_RECV_BUF
134 #undef NETSNMP_DEFAULT_CLIENT_SEND_BUF
135 #undef NETSNMP_DEFAULT_CLIENT_RECV_BUF
136
137 /* net-snmp's major path names */
138 #undef SNMPLIBPATH
139 #undef SNMPSHAREPATH
140 #undef SNMPCONFPATH
141 #undef SNMPDLMODPATH
142
143 /* NETSNMP_LOGFILE:  If defined it closes stdout/err/in and opens this in 
144    out/err's place.  (stdin is closed so that sh scripts won't wait for it) */
145 #undef NETSNMP_LOGFILE
146
147 /* default system contact */
148 #undef NETSNMP_SYS_CONTACT
149
150 /* system location */
151 #undef NETSNMP_SYS_LOC
152
153 /* Use libwrap to handle allow/deny hosts? */
154 #undef NETSNMP_USE_LIBWRAP
155
156 /* Mib-2 tree Info */
157 /* These are the system information variables. */
158
159 #define NETSNMP_VERS_DESC   "unknown"             /* overridden at run time */
160 #define NETSNMP_SYS_NAME    "unknown"             /* overridden at run time */
161
162 /* comment out the second define to turn off functionality for any of
163    these: (See README for details) */
164
165 /*   proc PROCESSNAME [MAX] [MIN] */
166 #define NETSNMP_PROCMIBNUM 2
167
168 /*   exec/shell NAME COMMAND      */
169 #define NETSNMP_SHELLMIBNUM 8
170
171 /*   swap MIN                     */
172 #define NETSNMP_MEMMIBNUM 4
173
174 /*   disk DISK MINSIZE            */
175 #define NETSNMP_DISKMIBNUM 9
176
177 /*   load 1 5 15                  */
178 #define NETSNMP_LOADAVEMIBNUM 10
179
180 /* which version are you using? This mibloc will tell you */
181 #define NETSNMP_VERSIONMIBNUM 100
182
183 /* Reports errors the agent runs into */
184 /* (typically its "can't fork, no mem" problems) */
185 #define NETSNMP_ERRORMIBNUM 101
186
187 /* The sub id of EXTENSIBLEMIB returned to queries of
188    .iso.org.dod.internet.mgmt.mib-2.system.sysObjectID.0 */
189 #define NETSNMP_AGENTID 250
190
191 /* This ID is returned after the AGENTID above.  IE, the resulting
192    value returned by a query to sysObjectID is
193    EXTENSIBLEMIB.AGENTID.???, where ??? is defined below by OSTYPE */
194
195 #define NETSNMP_HPUX9ID 1
196 #define NETSNMP_SUNOS4ID 2 
197 #define NETSNMP_SOLARISID 3
198 #define NETSNMP_OSFID 4
199 #define NETSNMP_ULTRIXID 5
200 #define NETSNMP_HPUX10ID 6
201 #define NETSNMP_NETBSD1ID 7
202 #define NETSNMP_FREEBSDID 8
203 #define NETSNMP_IRIXID 9
204 #define NETSNMP_LINUXID 10
205 #define NETSNMP_BSDIID 11
206 #define NETSNMP_OPENBSDID 12
207 #define NETSNMP_WIN32ID 13
208 #define NETSNMP_HPUX11ID 14
209 #define NETSNMP_AIXID 15
210 #define NETSNMP_MACOSXID 16
211 #define NETSNMP_UNKNOWNID 255
212
213 #ifdef hpux9
214 #define NETSNMP_OSTYPE NETSNMP_HPUX9ID
215 #endif
216 #ifdef hpux10
217 #define NETSNMP_OSTYPE NETSNMP_HPUX10ID
218 #endif
219 #ifdef hpux11
220 #define NETSNMP_OSTYPE NETSNMP_HPUX11ID
221 #endif
222 #ifdef sunos4
223 #define NETSNMP_OSTYPE NETSNMP_SUNOS4ID
224 #endif
225 #ifdef solaris2
226 #define NETSNMP_OSTYPE NETSNMP_SOLARISID
227 #endif
228 #if defined(osf3) || defined(osf4) || defined(osf5)
229 #define NETSNMP_OSTYPE NETSNMP_OSFID
230 #endif
231 #ifdef ultrix4
232 #define NETSNMP_OSTYPE NETSNMP_ULTRIXID
233 #endif
234 #if defined(netbsd1) || defined(netbsd2)
235 #define NETSNMP_OSTYPE NETSNMP_NETBSD1ID
236 #endif
237 #if defined(__FreeBSD__)
238 #define NETSNMP_OSTYPE NETSNMP_FREEBSDID
239 #endif
240 #if defined(irix6) || defined(irix5)
241 #define NETSNMP_OSTYPE NETSNMP_IRIXID
242 #endif
243 #ifdef linux
244 #define NETSNMP_OSTYPE NETSNMP_LINUXID
245 #endif
246 #if defined(bsdi2) || defined(bsdi3) || defined(bsdi4)
247 #define NETSNMP_OSTYPE NETSNMP_BSDIID
248 #endif
249 #if defined(openbsd2) || defined(openbsd3) || defined(openbsd4)
250 #define NETSNMP_OSTYPE NETSNMP_OPENBSDID
251 #endif
252 #ifdef WIN32
253 #define NETSNMP_OSTYPE NETSNMP_WIN32ID
254 #endif
255 #if defined(aix3) || defined(aix4) || defined(aix5) || defined(aix6)
256 #define NETSNMP_OSTYPE NETSNMP_AIXID
257 #endif
258 #if defined(darwin) && (darwin >= 8)
259 #define NETSNMP_OSTYPE NETSNMP_MACOSXID
260 #endif
261 /* unknown */
262 #ifndef NETSNMP_OSTYPE
263 #define NETSNMP_OSTYPE NETSNMP_UNKNOWNID
264 #endif
265
266 /* The enterprise number has been assigned by the IANA group.   */
267 /* Optionally, this may point to the location in the tree your  */
268 /* company/organization has been allocated.                     */
269 /* The assigned enterprise number for the NET_SNMP MIB modules. */
270 #define NETSNMP_ENTERPRISE_OID                  8072
271 #define NETSNMP_ENTERPRISE_MIB                  1,3,6,1,4,1,8072
272 #define NETSNMP_ENTERPRISE_DOT_MIB              1.3.6.1.4.1.8072
273 #define NETSNMP_ENTERPRISE_DOT_MIB_LENGTH       7
274
275 /* The assigned enterprise number for sysObjectID. */
276 #define NETSNMP_SYSTEM_MIB              1,3,6,1,4,1,8072,3,2,NETSNMP_OSTYPE
277 #define NETSNMP_SYSTEM_DOT_MIB          1.3.6.1.4.1.8072.3.2.NETSNMP_OSTYPE
278 #define NETSNMP_SYSTEM_DOT_MIB_LENGTH   10
279
280 /* The assigned enterprise number for notifications. */
281 #define NETSNMP_NOTIFICATION_MIB                1,3,6,1,4,1,8072,4
282 #define NETSNMP_NOTIFICATION_DOT_MIB            1.3.6.1.4.1.8072.4
283 #define NETSNMP_NOTIFICATION_DOT_MIB_LENGTH     8
284
285 /* this is the location of the ucdavis mib tree.  It shouldn't be
286    changed, as the places it is used are expected to be constant
287    values or are directly tied to the UCD-SNMP-MIB. */
288 #define NETSNMP_UCDAVIS_OID             2021
289 #define NETSNMP_UCDAVIS_MIB             1,3,6,1,4,1,2021
290 #define NETSNMP_UCDAVIS_DOT_MIB         1.3.6.1.4.1.2021
291 #define NETSNMP_UCDAVIS_DOT_MIB_LENGTH  7
292
293 /* how long to wait (seconds) for error querys before reseting the error trap.*/
294 #define NETSNMP_ERRORTIMELENGTH 600 
295
296 /* Exec command to fix PROC problems */
297 /* %s will be replaced by the process name in error */
298
299 /* #define NETSNMP_PROCFIXCMD "/usr/bin/perl /local/scripts/fixproc %s" */
300
301 /* Exec command to fix EXEC problems */
302 /* %s will be replaced by the exec/script name in error */
303
304 /* #define NETSNMP_EXECFIXCMD "/usr/bin/perl /local/scripts/fixproc %s" */
305
306 /* Should exec output Cashing be used (speeds up things greatly), and
307    if so, After how many seconds should the cache re-newed?  Note:
308    Don't define CASHETIME to disable cashing completely */
309
310 #define NETSNMP_EXCACHETIME 30
311 #define NETSNMP_CACHEFILE ".snmp-exec-cache"
312 #define NETSNMP_MAXCACHESIZE (200*80)   /* roughly 200 lines max */
313
314 /* misc defaults */
315
316 /* default of 100 meg minimum if the minimum size is not specified in
317    the config file */
318 #define NETSNMP_DEFDISKMINIMUMSPACE 100000
319
320 /* default maximum load average before error */
321 #define NETSNMP_DEFMAXLOADAVE 12.0
322
323 /* max times to loop reading output from execs. */
324 /* Because of sleep(1)s, this will also be time to wait (in seconds) for exec
325    to finish */
326 #define NETSNMP_MAXREADCOUNT 100
327
328 /* Set if snmpgets should block and never timeout */
329 /* The original CMU code had this hardcoded as = 1 */
330 #define NETSNMP_SNMPBLOCK 1
331
332 /* How long to wait before restarting the agent after a snmpset to
333    EXTENSIBLEMIB.VERSIONMIBNUM.VERRESTARTAGENT.  This is
334    necessary to finish the snmpset reply before restarting. */
335 #define NETSNMP_RESTARTSLEEP 5
336
337 /* UNdefine to allow specifying zero-length community string */
338 /* #define NETSNMP_NO_ZEROLENGTH_COMMUNITY 1 */
339
340 /* define to exit the agent on a bad kernel read */
341 /* #define NETSNMP_EXIT_ON_BAD_KLREAD  */
342
343 /* Number of community strings to store */
344 #define NETSNMP_NUM_COMMUNITIES 5
345
346 /* internal define */
347 #define NETSNMP_LASTFIELD -1
348
349 /*  Pluggable transports.  */
350
351 /*  This is defined if support for the UDP/IP transport domain is
352     available.   */
353 #undef NETSNMP_TRANSPORT_UDP_DOMAIN
354
355 /*  This is defined if support for the "callback" transport domain is
356     available.   */
357 #undef NETSNMP_TRANSPORT_CALLBACK_DOMAIN
358
359 /*  This is defined if support for the TCP/IP transport domain is
360     available.  */
361 #undef NETSNMP_TRANSPORT_TCP_DOMAIN
362
363 /*  This is defined if support for the Unix transport domain
364     (a.k.a. "local IPC") is available.  */
365 #undef NETSNMP_TRANSPORT_UNIX_DOMAIN
366
367 /*  This is defined if support for the AAL5 PVC transport domain is
368     available.  */
369 #undef NETSNMP_TRANSPORT_AAL5PVC_DOMAIN
370
371 /*  This is defined if support for the IPX transport domain is
372     available.  */
373 #undef NETSNMP_TRANSPORT_IPX_DOMAIN
374
375 /*  This is defined if support for the UDP/IPv6 transport domain is
376     available.  */
377 #undef NETSNMP_TRANSPORT_UDPIPV6_DOMAIN
378
379 /*  This is defined if support for the TCP/IPv6 transport domain is
380     available.  */
381 #undef NETSNMP_TRANSPORT_TCPIPV6_DOMAIN
382
383 /*  This is defined if support for the TLS transport domain is
384     available.   */
385 #undef NETSNMP_TRANSPORT_TLS_DOMAIN
386
387 /*  This is defined if support for the Alias transport domain is
388     available.   */
389 #undef NETSNMP_TRANSPORT_ALIAS_DOMAIN
390
391 /*  This is defined if support for the SSH transport domain is
392     available.   */
393 #undef NETSNMP_TRANSPORT_SSH_DOMAIN
394
395 /*  This is defined if support for the DTLS/UDP transport domain is
396     available.   */
397 #undef NETSNMP_TRANSPORT_DTLSUDP_DOMAIN
398
399 /*  This is defined if support for stdin/out transport domain is available.   */
400 #undef NETSNMP_TRANSPORT_STD_DOMAIN
401
402 /* define this if the USM security module is available */
403 #undef NETSNMP_SECMOD_USM
404
405 /* define this if the KSM (kerberos based snmp) security module is available */
406 #undef NETSNMP_SECMOD_KSM
407
408 /* define this if the local security module is available */
409 #undef NETSNMP_SECMOD_LOCALSM
410
411 /* define if configured as a "mini-agent" */
412 #undef NETSNMP_MINI_AGENT
413
414 /* this is the location of the net-snmp mib tree.  It shouldn't be
415    changed, as the places it is used are expected to be constant
416    values or are directly tied to the UCD-SNMP-MIB. */
417 #define NETSNMP_OID             8072
418 #define NETSNMP_MIB             1,3,6,1,4,1,8072
419 #define NETSNMP_DOT_MIB         1.3.6.1.4.1.8072
420 #define NETSNMP_DOT_MIB_LENGTH  7
421
422 /* pattern for temporary file names */
423 #define NETSNMP_TEMP_FILE_PATTERN "/tmp/snmpdXXXXXX"
424
425 /*
426  * this must be before the system/machine includes, to allow them to
427  * override and turn off inlining. To do so, they should do the
428  * following:
429  *
430  *    #undef NETSNMP_ENABLE_INLINE
431  *    #define NETSNMP_ENABLE_INLINE 0
432  *
433  * A user having problems with their compiler can also turn off
434  * the use of inline by defining NETSNMP_NO_INLINE via their cflags:
435  *
436  *    -DNETSNMP_NO_INLINE
437  *
438  * Header and source files should only test against NETSNMP_USE_INLINE:
439  *
440  *   #ifdef NETSNMP_USE_INLINE
441  *   NETSNMP_INLINE function(int parm) { return parm -1; }
442  *   #endif
443  *
444  * Functions which should be static, regardless of whether or not inline
445  * is available or enabled should use the NETSNMP_STATIC_INLINE macro,
446  * like so:
447  *
448  *    NETSNMP_STATIC_INLINE function(int parm) { return parm -1; }
449  *
450  * NOT like this:
451  *
452  *    static NETSNMP_INLINE function(int parm) { return parm -1; }
453  *
454  */
455 #ifdef NETSNMP_BROKEN_INLINE
456 #   define NETSNMP_ENABLE_INLINE 0
457 #else
458 #   define NETSNMP_ENABLE_INLINE 1
459 #endif
460
461 #include NETSNMP_SYSTEM_INCLUDE_FILE
462 #include NETSNMP_MACHINE_INCLUDE_FILE
463
464 #if NETSNMP_ENABLE_INLINE && !defined(NETSNMP_NO_INLINE)
465 #   define NETSNMP_USE_INLINE 1
466 #   ifndef NETSNMP_INLINE
467 #      define NETSNMP_INLINE inline
468 #   endif
469 #   ifndef NETSNMP_STATIC_INLINE
470 #      define NETSNMP_STATIC_INLINE static inline
471 #   endif
472 #else
473 #   define NETSNMP_INLINE 
474 #   define NETSNMP_STATIC_INLINE static
475 #endif
476
477 #ifndef NETSNMP_IMPORT
478 #  define NETSNMP_IMPORT extern
479 #endif
480
481 /* comment the next line if you are compiling with libsnmp.h 
482    and are not using the UC-Davis SNMP library. */
483 #define UCD_SNMP_LIBRARY 1
484
485 /* add in recent CMU library extensions (not complete) */
486 #undef CMU_COMPATIBLE
487
488 /* final conclusion on nlist usage */
489 #if defined(HAVE_NLIST) && defined(HAVE_STRUCT_NLIST_N_VALUE) && !defined(NETSNMP_DONT_USE_NLIST) && !defined(NETSNMP_NO_KMEM_USAGE)
490 #define NETSNMP_CAN_USE_NLIST
491 #endif
492
493
494 /* ********* NETSNMP_MARK_BEGIN_LEGACY_DEFINITIONS *********/
495 /* 
496  * existing definitions prior to Net-SNMP 5.4
497  *
498  * do not add anything new here
499  *
500  */
501
502 #ifndef NETSNMP_NO_LEGACY_DEFINITIONS
503
504 #ifdef NETSNMP_DEFAULT_SNMP_VERSION
505 # define DEFAULT_SNMP_VERSION NETSNMP_DEFAULT_SNMP_VERSION
506 #endif
507
508 #ifdef NETSNMP_SNMPV1
509 # define SNMPV1 NETSNMP_SNMPV1
510 #endif
511
512 #ifdef NETSNMP_SNMPV2ANY
513 # define SNMPV2ANY NETSNMP_SNMPV2ANY
514 #endif
515
516 #ifdef NETSNMP_SNMPV2AUTH
517 # define SNMPV2AUTH NETSNMP_SNMPV2AUTH
518 #endif
519
520 #ifdef NETSNMP_DEFAULT_MIBS
521 # define DEFAULT_MIBS NETSNMP_DEFAULT_MIBS
522 #endif
523
524 #ifdef NETSNMP_DEFAULT_MIBDIRS
525 # define DEFAULT_MIBDIRS NETSNMP_DEFAULT_MIBDIRS
526 #endif
527
528 #ifdef NETSNMP_DEFAULT_MIBFILES
529 # define DEFAULT_MIBFILES NETSNMP_DEFAULT_MIBFILES
530 #endif
531
532 #ifdef NETSNMP_WITH_OPAQUE_SPECIAL_TYPES
533 # define OPAQUE_SPECIAL_TYPES NETSNMP_WITH_OPAQUE_SPECIAL_TYPES
534 #endif
535
536 #ifdef NETSNMP_ENABLE_SCAPI_AUTHPRIV
537 # define SCAPI_AUTHPRIV NETSNMP_ENABLE_SCAPI_AUTHPRIV
538 #endif
539
540 #ifdef NETSNMP_USE_INTERNAL_MD5
541 # define USE_INTERNAL_MD5 NETSNMP_USE_INTERNAL_MD5
542 #endif
543
544 #ifdef NETSNMP_USE_PKCS11
545 # define USE_PKCS NETSNMP_USE_PKCS11
546 #endif
547
548 #ifdef NETSNMP_USE_OPENSSL
549 # define USE_OPENSSL NETSNMP_USE_OPENSSL
550 #endif
551
552 #ifdef NETSNMP_NO_DEBUGGING
553 # define SNMP_NO_DEBUGGING NETSNMP_NO_DEBUGGING
554 #endif
555
556 #ifdef NETSNMP_ALWAYS_DEBUG
557 # define SNMP_ALWAYS_DEBUG NETSNMP_ALWAYS_DEBUG
558 #endif
559
560 #ifdef NETSNMP_USE_REVERSE_ASNENCODING
561 # define USE_REVERSE_ASNENCODING NETSNMP_USE_REVERSE_ASNENCODING
562 #endif
563 #ifdef NETSNMP_DEFAULT_ASNENCODING_DIRECTION
564 # define DEFAULT_ASNENCODING_DIRECTION NETSNMP_DEFAULT_ASNENCODING_DIRECTION
565 #endif
566
567 #define PERSISTENT_DIRECTORY NETSNMP_PERSISTENT_DIRECTORY
568 #define PERSISTENT_MASK NETSNMP_PERSISTENT_MASK
569 #define AGENT_DIRECTORY_MODE NETSNMP_AGENT_DIRECTORY_MODE
570 #define MAX_PERSISTENT_BACKUPS NETSNMP_MAX_PERSISTENT_BACKUPS
571 #define SYSTEM_INCLUDE_FILE NETSNMP_SYSTEM_INCLUDE_FILE
572 #define MACHINE_INCLUDE_FILE NETSNMP_MACHINE_INCLUDE_FILE
573
574 #ifdef NETSNMP_DEFAULT_SERVER_SEND_BUF
575 # define DEFAULT_SERVER_SEND_BUF NETSNMP_DEFAULT_SERVER_SEND_BUF
576 #endif
577 #ifdef NETSNMP_DEFAULT_SERVER_RECV_BUF
578 # define DEFAULT_SERVER_RECV_BUF NETSNMP_DEFAULT_SERVER_RECV_BUF
579 #endif
580 #ifdef NETSNMP_DEFAULT_CLIENT_SEND_BUF
581 # define DEFAULT_CLIENT_SEND_BUF NETSNMP_DEFAULT_CLIENT_SEND_BUF
582 #endif
583 #ifdef NETSNMP_DEFAULT_CLIENT_RECV_BUF
584 # define DEFAULT_CLIENT_RECV_BUF NETSNMP_DEFAULT_CLIENT_RECV_BUF
585 #endif
586
587 #ifdef NETSNMP_LOGFILE
588 # define LOGFILE NETSNMP_LOGFILE
589 #endif
590
591 #ifdef NETSNMP_SYS_CONTACT
592 # define SYS_CONTACT NETSNMP_SYS_CONTACT
593 #endif
594
595 #ifdef NETSNMP_SYS_LOC
596 # define SYS_LOC NETSNMP_SYS_LOC
597 #endif
598
599 #ifdef NETSNMP_USE_LIBWRAP
600 # define USE_LIBWRAP NETSNMP_USE_LIBWRAP
601 #endif
602
603 #ifdef NETSNMP_ENABLE_TESTING_CODE 
604 # define SNMP_TESTING_CODE NETSNMP_ENABLE_TESTING_CODE
605 #endif
606
607 #ifdef NETSNMP_NO_ROOT_ACCESS
608 # define NO_ROOT_ACCESS NETSNMP_NO_ROOT_ACCESS
609 #endif
610
611 #ifdef NETSNMP_NO_KMEM_USAGE
612 # define NO_KMEM_USAGE NETSNMP_NO_KMEM_USAGE
613 #endif
614
615 #ifdef NETSNMP_NO_DUMMY_VALUES
616 # define NO_DUMMY_VALUES NETSNMP_NO_DUMMY_VALUES
617 #endif
618
619 #define VERS_DESC     NETSNMP_VERS_DESC
620 #define SYS_NAME      NETSNMP_SYS_NAME
621
622 #define PROCMIBNUM    NETSNMP_PROCMIBNUM
623 #define SHELLMIBNUM   NETSNMP_SHELLMIBNUM
624 #define MEMMIBNUM     NETSNMP_MEMMIBNUM
625 #define DISKMIBNUM    NETSNMP_DISKMIBNUM
626
627 #define LOADAVEMIBNUM NETSNMP_LOADAVEMIBNUM
628 #define VERSIONMIBNUM NETSNMP_VERSIONMIBNUM
629 #define ERRORMIBNUM   NETSNMP_ERRORMIBNUM
630 #define AGENTID       NETSNMP_AGENTID
631
632 #define HPUX9ID       NETSNMP_HPUX9ID
633 #define SUNOS4ID      NETSNMP_SUNOS4ID
634 #define SOLARISID     NETSNMP_SOLARISID
635 #define OSFID         NETSNMP_OSFID
636 #define ULTRIXID      NETSNMP_ULTRIXID
637 #define HPUX10ID      NETSNMP_HPUX10ID
638 #define NETBSD1ID     NETSNMP_NETBSD1ID
639 #define FREEBSDID     NETSNMP_FREEBSDID
640 #define IRIXID        NETSNMP_IRIXID
641 #define LINUXID       NETSNMP_LINUXID
642 #define BSDIID        NETSNMP_BSDIID
643 #define OPENBSDID     NETSNMP_OPENBSDID
644 #define WIN32ID       NETSNMP_WIN32ID
645 #define HPUX11ID      NETSNMP_HPUX11ID
646 #define AIXID         NETSNMP_AIXID
647 #define MACOSXID      NETSNMP_MACOSXID
648 #define UNKNOWNID     NETSNMP_UNKNOWNID
649
650 #define ENTERPRISE_OID            NETSNMP_ENTERPRISE_OID
651 #define ENTERPRISE_MIB            NETSNMP_ENTERPRISE_MIB
652 #define ENTERPRISE_DOT_MIB        NETSNMP_ENTERPRISE_DOT_MIB
653 #define ENTERPRISE_DOT_MIB_LENGTH NETSNMP_ENTERPRISE_DOT_MIB_LENGTH
654
655 #define SYSTEM_MIB                NETSNMP_SYSTEM_MIB
656 #define SYSTEM_DOT_MIB            NETSNMP_SYSTEM_DOT_MIB
657 #define SYSTEM_DOT_MIB_LENGTH     NETSNMP_SYSTEM_DOT_MIB_LENGTH
658
659 #define NOTIFICATION_MIB            NETSNMP_NOTIFICATION_MIB    
660 #define NOTIFICATION_DOT_MIB        NETSNMP_NOTIFICATION_DOT_MIB
661 #define NOTIFICATION_DOT_MIB_LENGTH NETSNMP_NOTIFICATION_DOT_MIB_LENGTH
662
663 #define UCDAVIS_OID               NETSNMP_UCDAVIS_OID
664 #define UCDAVIS_MIB               NETSNMP_UCDAVIS_MIB
665 #define UCDAVIS_DOT_MIB           NETSNMP_UCDAVIS_DOT_MIB
666 #define UCDAVIS_DOT_MIB_LENGTH    NETSNMP_UCDAVIS_DOT_MIB_LENGTH
667
668 #define ERRORTIMELENGTH NETSNMP_ERRORTIMELENGTH
669
670 #ifdef NETSNMP_PROCFIXCMD
671 # define PROCFIXCMD NETSNMP_PROCFIXCMD
672 #endif
673
674 #ifdef NETSNMP_EXECFIXCMD
675 # define EXECFIXCMD NETSNMP_EXECFIXCMD
676 #endif
677
678 #define EXCACHETIME  NETSNMP_EXCACHETIME
679 #define CACHEFILE    NETSNMP_CACHEFILE
680 #define MAXCACHESIZE NETSNMP_MAXCACHESIZE
681
682 #define DEFDISKMINIMUMSPACE NETSNMP_DEFDISKMINIMUMSPACE
683 #define DEFMAXLOADAVE NETSNMP_DEFMAXLOADAVE
684 #define MAXREADCOUNT NETSNMP_MAXREADCOUNT
685
686 #define SNMPBLOCK NETSNMP_SNMPBLOCK
687 #define RESTARTSLEEP NETSNMP_RESTARTSLEEP
688
689 #define NUM_COMMUNITIES NETSNMP_NUM_COMMUNITIES
690
691 #ifdef NETSNMP_NO_ZEROLENGTH_COMMUNITY
692 # define NO_ZEROLENGTH_COMMUNITY NETSNMP_NO_ZEROLENGTH_COMMUNITY
693 #endif
694
695 #ifdef NETSNMP_EXIT_ON_BAD_KLREAD
696 # define EXIT_ON_BAD_KLREAD NETSNMP_EXIT_ON_BAD_KLREAD
697 #endif
698
699 #define LASTFIELD NETSNMP_LASTFIELD
700
701 #define CONFIGURE_OPTIONS NETSNMP_CONFIGURE_OPTIONS
702
703 #ifdef NETSNMP_TRANSPORT_UDP_DOMAIN
704 # define SNMP_TRANSPORT_UDP_DOMAIN NETSNMP_TRANSPORT_UDP_DOMAIN
705 #endif
706
707 #ifdef NETSNMP_TRANSPORT_CALLBACK_DOMAIN
708 # define SNMP_TRANSPORT_CALLBACK_DOMAIN NETSNMP_TRANSPORT_CALLBACK_DOMAIN
709 #endif
710
711 #ifdef NETSNMP_TRANSPORT_TCP_DOMAIN
712 # define SNMP_TRANSPORT_TCP_DOMAIN NETSNMP_TRANSPORT_TCP_DOMAIN
713 #endif
714
715 #ifdef NETSNMP_TRANSPORT_UNIX_DOMAIN
716 # define SNMP_TRANSPORT_UNIX_DOMAIN NETSNMP_TRANSPORT_UNIX_DOMAIN
717 #endif
718
719 #ifdef NETSNMP_TRANSPORT_AAL5PVC_DOMAIN
720 # define SNMP_TRANSPORT_AAL5PVC_DOMAIN NETSNMP_TRANSPORT_AAL5PVC_DOMAIN
721 #endif
722
723 #ifdef NETSNMP_TRANSPORT_IPX_DOMAIN
724 # define SNMP_TRANSPORT_IPX_DOMAIN NETSNMP_TRANSPORT_IPX_DOMAIN
725 #endif
726
727 #ifdef NETSNMP_TRANSPORT_UDPIPV6_DOMAIN
728 # define SNMP_TRANSPORT_UDPIPV6_DOMAIN NETSNMP_TRANSPORT_UDPIPV6_DOMAIN
729 #endif
730
731 #ifdef NETSNMP_TRANSPORT_TCPIPV6_DOMAIN
732 # define SNMP_TRANSPORT_TCPIPV6_DOMAIN NETSNMP_TRANSPORT_TCPIPV6_DOMAIN
733 #endif
734
735 #ifdef NETSNMP_TRANSPORT_TLS_DOMAIN
736 # define SNMP_TRANSPORT_TLS_DOMAIN NETSNMP_TRANSPORT_TLS_DOMAIN
737 #endif
738
739 #ifdef NETSNMP_TRANSPORT_STD_DOMAIN
740 # define SNMP_TRANSPORT_STD_DOMAIN NETSNMP_TRANSPORT_STD_DOMAIN
741 #endif
742
743 #ifdef NETSNMP_SECMOD_USM
744 # define SNMP_SECMOD_USM NETSNMP_SECMOD_USM
745 #endif
746
747 #ifdef NETSNMP_SECMOD_KSM
748 # define SNMP_SECMOD_KSM NETSNMP_SECMOD_KSM
749 #endif
750
751 #ifdef NETSNMP_SECMOD_LOCALSM 
752 # define SNMP_SECMOD_LOCALSM NETSNMP_SECMOD_LOCALSM
753 #endif
754
755 #ifdef NETSNMP_REENTRANT
756 # define NS_REENTRANT NETSNMP_REENTRANT
757 #endif
758
759 #ifdef NETSNMP_ENABLE_IPV6
760 # define INET6 NETSNMP_ENABLE_IPV6
761 #endif
762
763 #ifdef NETSNMP_ENABLE_LOCAL_SMUX
764 # define LOCAL_SMUX NETSNMP_ENABLE_LOCAL_SMUX
765 #endif
766
767 #ifdef NETSNMP_AGENTX_DOM_SOCK_ONLY
768 # define AGENTX_DOM_SOCK_ONLY NETSNMP_AGENTX_DOM_SOCK_ONLY
769 #endif
770
771 #ifdef NETSNMP_SNMPTRAPD_DISABLE_AGENTX
772 # define SNMPTRAPD_DISABLE_AGENTX
773 #endif
774
775 #ifdef NETSNMP_USE_KERBEROS_MIT
776 # define MIT_NEW_CRYPTO NETSNMP_USE_KERBEROS_MIT
777 #endif
778
779 #ifdef NETSNMP_USE_KERBEROS_HEIMDAL
780 # define HEIMDAL NETSNMP_USE_KERBEROS_HEIMDAL
781 #endif
782
783 #ifdef NETSNMP_AGENTX_SOCKET
784 # define AGENTX_SOCKET NETSNMP_AGENTX_SOCKET
785 #endif
786
787 #ifdef NETSNMP_DISABLE_MIB_LOADING
788 # define DISABLE_MIB_LOADING NETSNMP_DISABLE_MIB_LOADING
789 #endif
790
791 #ifdef NETSNMP_DISABLE_SNMPV1
792 # define DISABLE_SNMPV1 NETSNMP_DISABLE_SNMPV1
793 #endif
794
795 #ifdef NETSNMP_DISABLE_SNMPV2C
796 # define DISABLE_SNMPV2C NETSNMP_DISABLE_SNMPV2C
797 #endif
798
799 #ifdef NETSNMP_DISABLE_SET_SUPPORT
800 # define DISABLE_SET_SUPPORT NETSNMP_DISABLE_SET_SUPPORT
801 #endif
802
803 #ifdef NETSNMP_DISABLE_DES
804 # define DISABLE_DES NETSNMP_DISABLE_DES
805 #endif
806
807 #ifdef NETSNMP_DISABLE_MD5
808 # define DISABLE_MD5 NETSNMP_DISABLE_MD5
809 #endif
810
811 #ifdef NETSNMP_DONT_USE_NLIST
812 # define DONT_USE_NLIST NETSNMP_DONT_USE_NLIST
813 #endif
814
815 #ifdef NETSNMP_CAN_USE_NLIST
816 # define CAN_USE_NLIST NETSNMP_CAN_USE_NLIST
817 #endif
818
819 #ifdef NETSNMP_CAN_USE_SYSCTL
820 # define CAN_USE_SYSCTL NETSNMP_CAN_USE_SYSCTL
821 #endif
822
823 #endif /* NETSNMP_NO_LEGACY_DEFINITIONS */
824
825
826 #endif /* NET_SNMP_CONFIG_H */