1 /* include/net-snmp/net-snmp-config.h. Generated automatically by configure. */
2 /* include/net-snmp/net-snmp-config.h.in. Generated automatically from configure.in by autoheader. */
3 #ifndef NET_SNMP_CONFIG_H
4 #define NET_SNMP_CONFIG_H
6 /* config.h: a general config file */
8 /* Default (SNMP) version number for the tools to use */
9 #define DEFAULT_SNMP_VERSION 2
11 /* don't change these values! */
12 #define SNMPV1 0xAAAA /* readable by anyone */
13 #define SNMPV2ANY 0xA000 /* V2 Any type (includes NoAuth) */
14 #define SNMPV2AUTH 0x8000 /* V2 Authenticated requests only */
16 /* default list of mibs to load */
18 /*#define DEFAULT_MIBS "IP-MIB:IF-MIB:TCP-MIB:UDP-MIB:SNMPv2-MIB:RFC1213-MIB:NOTIFICATION-LOG-MIB:SNMP-VIEW-BASED-ACM-MIB:SNMP-COMMUNITY-MIB:SNMP-NOTIFICATION-MIB"*/
19 #define DEFAULT_MIBS "IP-MIB:IF-MIB:TCP-MIB:UDP-MIB:SNMPv2-MIB:RFC1213-MIB:SNMP-COMMUNITY-MIB"
21 /* default location to look for mibs to load using the above tokens
22 and/or those in the MIBS envrionment variable*/
24 #define DEFAULT_MIBDIRS "$HOME/.snmp/mibs:/usr/local/share/snmp/mibs"
26 /* default mib files to load, specified by path. */
28 /* #undef DEFAULT_MIBFILES */
30 /* should we compile to use special opaque types: float, double,
31 counter64, i64, ui64, union? */
33 //#define OPAQUE_SPECIAL_TYPES 1
35 /* comment the next line if you are compiling with libsnmp.h
36 and are not using the UC-Davis SNMP library. */
38 //#define UCD_SNMP_LIBRARY 1
40 /* define if you want to compile support for both authentication and
43 //#define SCAPI_AUTHPRIV 1
45 /* define if you are using the MD5 code ...*/
46 /* #undef USE_INTERNAL_MD5 */
48 /* add in recent CMU library extensions (not complete) */
49 /* #undef CMU_COMPATIBLE */
51 /* add in recent resource lock functions (not complete) */
52 /* #undef _REENTRANT */
55 /* #undef SNMP_NO_DEBUGGING */ /* if defined, we optimize the code
56 to exclude all debugging calls. */
57 #define SNMP_ALWAYS_DEBUG 0 /* Always print debugging information and
58 ignore the -D flag passed to the cmds */
60 /* reverse encoding BER packets is both faster and more efficient in space. */
61 #define USE_REVERSE_ASNENCODING 1
62 #define DEFAULT_ASNENCODING_DIRECTION 1 /* 1 = reverse, 0 = forwards */
64 /* PERSISTENT_DIRECTORY: If defined, the library is capabile of saving
65 persisant information to this directory in the form of configuration
66 lines: PERSISTENT_DIRECTORY/NAME.persistent.conf */
67 #define PERSISTENT_DIRECTORY "/var/net-snmp"
69 /* PERSISTENT_MASK: the umask permissions to set up the persistent files with */
70 #define PERSISTENT_MASK 077
72 /* AGENT_DIRECTORY_MODE: the mode the agents should use to create
73 directories with. Since the data stored here is probably sensitive, it
74 probably should be read-only by root/administrator. */
75 #define AGENT_DIRECTORY_MODE 0700
77 /* MAX_PERSISTENT_BACKUPS:
78 * The maximum number of persistent backups the library will try to
79 * read from the persistent cache directory. If an application fails to
80 * close down successfully more than this number of times, data will be lost.
82 #define MAX_PERSISTENT_BACKUPS 10
85 /* Define if on AIX 3.
86 System headers sometimes define this.
87 We just want to avoid a redefinition error message. */
89 /* #undef _ALL_SOURCE */
92 /* Define if using alloca.c. */
95 /* Define to empty if the keyword does not work. */
98 /* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
99 This function is required for alloca.c support on those systems. */
100 /* #undef CRAY_STACKSEG_END */
102 /* Define if you have alloca, as a function or macro. */
103 #define HAVE_ALLOCA 1
105 /* Define if you have <alloca.h> and it should be used (not on Ultrix). */
106 #define HAVE_ALLOCA_H 1
108 /* Define if you have the getmntent function. */
109 #define HAVE_GETMNTENT 1
111 /* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
112 #define HAVE_SYS_WAIT_H 1
114 /* Define as __inline if that's what the C compiler calls it. */
117 /* Define to `long' if <sys/types.h> doesn't define. */
120 /* Define to `int' if <sys/types.h> doesn't define. */
123 /* Define as the return type of signal handlers (int or void). */
124 #define RETSIGTYPE void
126 /* If using the C implementation of alloca, define if you know the
127 direction of stack growth for your system; otherwise it will be
128 automatically deduced at run-time.
129 STACK_DIRECTION > 0 => grows toward higher addresses
130 STACK_DIRECTION < 0 => grows toward lower addresses
131 STACK_DIRECTION = 0 => direction of growth unknown
133 /* #undef STACK_DIRECTION */
135 /* Define if you have the ANSI C header files. */
136 #define STDC_HEADERS 1
138 /* Define if you can safely include both <sys/time.h> and <time.h>. */
139 #define TIME_WITH_SYS_TIME 1
141 /* Define if your processor stores words with the most significant
142 byte first (like Motorola and SPARC, unlike Intel and VAX). */
143 /* #undef WORDS_BIGENDIAN */
145 /* define if you are embedding perl in the main agent */
146 /* #undef NETSNMP_EMBEDDED_PERL */
148 /* define the system type include file here */
149 #define SYSTEM_INCLUDE_FILE "net-snmp/system/linux.h"
151 /* define the machine (cpu) type include file here */
152 #define MACHINE_INCLUDE_FILE "net-snmp/machine/generic.h"
154 #define SNMPLIBPATH "/usr/local/lib/snmp"
155 #define SNMPSHAREPATH "/usr/local/share/snmp"
156 #define SNMPCONFPATH "/usr/local/etc/snmp"
157 #define SNMPDLMODPATH "/usr/local/lib/snmp/dlmod"
159 /* LOGFILE: If defined it closes stdout/err/in and opens this in out/err's
160 place. (stdin is closed so that sh scripts won't wait for it) */
162 #define LOGFILE "/var/log/snmpd.log"
164 /* default system contact */
165 #define SYS_CONTACT "unknown"
167 /* system location */
168 #define SYS_LOC "Unknown"
170 /* Use libwrap to handle allow/deny hosts? */
171 /* #undef USE_LIBWRAP */
173 /* Use dmalloc to do malloc debugging? */
174 /* #undef HAVE_DMALLOC_H */
176 /* location of UNIX kernel */
177 #define KERNEL_LOC "unknown"
179 /* location of mount table list */
180 #define ETC_MNTTAB "/etc/mtab"
182 /* location of swap device (ok if not found) */
183 /* #undef DMEM_LOC */
185 #define PSCMD "/bin/ps -e"
187 /* Where is the uname command */
188 #define UNAMEPROG "/bin/uname"
190 /* testing code sections. */
191 /* #undef SNMP_TESTING_CODE */
193 /* If you don't have root access don't exit upon kmem errors */
194 /* #undef NO_ROOT_ACCESS */
196 /* If we don't want to use kmem. */
197 /* #undef NO_KMEM_USAGE */
199 /* If you don't want the agent to report on variables it doesn't have data for */
201 //#define NO_DUMMY_VALUES 1
203 /* Define if statfs takes 2 args and the second argument has
204 type struct fs_data. [Ultrix] */
205 /* #undef STAT_STATFS_FS_DATA */
207 /* Define if the TCP timer constants in <netinet/tcp_timer.h>
208 depend on the integer variable `hz'. [FreeBSD 4.x] */
209 /* #undef TCPTV_NEEDS_HZ */
211 /* Define if you have the AES_cfb128_encrypt function. */
212 /* #undef HAVE_AES_CFB128_ENCRYPT */
214 /* Define if you have the bcopy function. */
217 /* Define if you have the cgetnext function. */
218 /* #undef HAVE_CGETNEXT */
220 /* Define if you have the dlopen function. */
221 /* #undef HAVE_DLOPEN */
223 /* Define if you have the eval_pv function. */
224 /* #undef HAVE_EVAL_PV */
226 /* Define if you have the execv function. */
228 //#define HAVE_EXECV 1
230 /* Define if you have the fork function. */
232 //#define HAVE_FORK 1
234 /* Define if you have the getaddrinfo function. */
235 #define HAVE_GETADDRINFO 1
237 /* Define if you have the getdtablesize function. */
238 #define HAVE_GETDTABLESIZE 1
240 /* Define if you have the getfsstat function. */
241 /* #undef HAVE_GETFSSTAT */
243 /* Define if you have the getgrnam function. */
244 #define HAVE_GETGRNAM 1
246 /* Define if you have the gethostname function. */
247 #define HAVE_GETHOSTNAME 1
249 /* Define if you have the getipnodebyname function. */
250 /* #undef HAVE_GETIPNODEBYNAME */
252 /* Define if you have the getloadavg function. */
254 //#define HAVE_GETLOADAVG 1
256 /* Define if you have the getpagesize function. */
257 #define HAVE_GETPAGESIZE 1
259 /* Define if you have the getpid function. */
260 //#define HAVE_GETPID 1
262 /* Define if you have the getpwnam function. */
263 #define HAVE_GETPWNAM 1
265 /* Define if you have the gettimeofday function. */
266 #define HAVE_GETTIMEOFDAY 1
268 /* Define if you have the if_freenameindex function. */
269 #define HAVE_IF_FREENAMEINDEX 1
271 /* Define if you have the if_nameindex function. */
272 #define HAVE_IF_NAMEINDEX 1
274 /* Define if you have the index function. */
277 /* Define if you have the knlist function. */
278 /* #undef HAVE_KNLIST */
280 /* Define if you have the kvm_getprocs function. */
281 /* #undef HAVE_KVM_GETPROCS */
283 /* Define if you have the kvm_openfiles function. */
284 /* #undef HAVE_KVM_OPENFILES */
286 /* Define if you have the lrand48 function. */
287 #define HAVE_LRAND48 1
289 /* Define if you have the memcpy function. */
290 #define HAVE_MEMCPY 1
292 /* Define if you have the memmove function. */
293 #define HAVE_MEMMOVE 1
295 /* Define if you have the mkstemp function. */
296 #define HAVE_MKSTEMP 1
298 /* Define if you have the nlist function. */
300 //#define HAVE_NLIST 1
302 /* Define if you have the perl_eval_pv function. */
303 /* #undef HAVE_PERL_EVAL_PV */
305 /* Define if you have the rand function. */
308 /* Define if you have the random function. */
309 #define HAVE_RANDOM 1
311 /* Define if you have the regcomp function. */
312 #define HAVE_REGCOMP 1
314 /* Define if you have the rpmGetPath function. */
315 /* #undef HAVE_RPMGETPATH */
317 /* Define if you have the select function. */
318 #define HAVE_SELECT 1
320 /* Define if you have the setenv function. */
321 #define HAVE_SETENV 1
323 /* Define if you have the setgid function. */
324 #define HAVE_SETGID 1
326 /* Define if you have the setgroups function. */
327 #define HAVE_SETGROUPS 1
329 /* Define if you have the setitimer function. */
330 #define HAVE_SETITIMER 1
332 /* Define if you have the setlocale function. */
333 #define HAVE_SETLOCALE 1
335 /* Define if you have the setmntent function. */
336 #define HAVE_SETMNTENT 1
338 /* Define if you have the setsid function. */
339 #define HAVE_SETSID 1
341 /* Define if you have the setuid function. */
342 #define HAVE_SETUID 1
344 /* Define if you have the sigaction function. */
345 #define HAVE_SIGACTION 1
347 /* Define if you have the sigalrm function. */
348 /* #undef HAVE_SIGALRM */
350 /* Define if you have the sigblock function. */
351 #define HAVE_SIGBLOCK 1
353 /* Define if you have the sighold function. */
354 #define HAVE_SIGHOLD 1
356 /* Define if you have the signal function. */
357 #define HAVE_SIGNAL 1
359 /* Define if you have the sigset function. */
360 #define HAVE_SIGSET 1
362 /* Define if you have the snprintf function. */
363 #define HAVE_SNPRINTF 1
365 /* Define if you have the socket function. */
366 #define HAVE_SOCKET 1
368 /* Define if you have the statfs function. */
369 #define HAVE_STATFS 1
371 /* Define if you have the statvfs function. */
372 #define HAVE_STATVFS 1
374 /* Define if you have the strcasestr function. */
375 #define HAVE_STRCASESTR 1
377 /* Define if you have the strchr function. */
378 #define HAVE_STRCHR 1
380 /* Define if you have the strdup function. */
381 #define HAVE_STRDUP 1
383 /* Define if you have the strerror function. */
384 #define HAVE_STRERROR 1
386 /* Define if you have the strncasecmp function. */
387 #define HAVE_STRNCASECMP 1
389 /* Define if you have the strtol function. */
390 #define HAVE_STRTOL 1
392 /* Define if you have the strtoul function. */
393 #define HAVE_STRTOUL 1
395 /* Define if you have the system function. */
396 #define HAVE_SYSTEM 1
398 /* Define if you have the tcgetattr function. */
399 #define HAVE_TCGETATTR 1
401 /* Define if you have the uname function. */
404 /* Define if you have the usleep function. */
405 #define HAVE_USLEEP 1
407 /* Define if you have the vsnprintf function. */
408 #define HAVE_VSNPRINTF 1
410 /* Define if you have the <arpa/inet.h> header file. */
411 #define HAVE_ARPA_INET_H 1
413 /* Define if you have the <asm/page.h> header file. */
414 #define HAVE_ASM_PAGE_H 1
416 /* Define if you have the <dirent.h> header file. */
417 #define HAVE_DIRENT_H 1
419 /* Define if you have the <dlfcn.h> header file. */
420 #define HAVE_DLFCN_H 1
422 /* Define if you have the <err.h> header file. */
425 /* Define if you have the <fcntl.h> header file. */
426 #define HAVE_FCNTL_H 1
428 /* Define if you have the <fstab.h> header file. */
430 //#define HAVE_FSTAB_H 1
432 /* Define if you have the <getopt.h> header file. */
433 #define HAVE_GETOPT_H 1
435 /* Define if you have the <grp.h> header file. */
438 /* Define if you have the <inet/mib2.h> header file. */
439 /* #undef HAVE_INET_MIB2_H */
441 /* Define if you have the <io.h> header file. */
442 /* #undef HAVE_IO_H */
444 /* Define if you have the <ioctls.h> header file. */
445 /* #undef HAVE_IOCTLS_H */
447 /* Define if you have the <kstat.h> header file. */
448 /* #undef HAVE_KSTAT_H */
450 /* Define if you have the <kvm.h> header file. */
451 /* #undef HAVE_KVM_H */
453 /* Define if you have the <limits.h> header file. */
454 #define HAVE_LIMITS_H 1
456 /* Define if you have the <linux/hdreg.h> header file. */
457 #define HAVE_LINUX_HDREG_H 1
459 /* Define if you have the <linux/tasks.h> header file. */
460 /* #undef HAVE_LINUX_TASKS_H */
462 /* Define if you have the <locale.h> header file. */
463 #define HAVE_LOCALE_H 1
465 /* Define if you have the <machine/param.h> header file. */
466 /* #undef HAVE_MACHINE_PARAM_H */
468 /* Define if you have the <machine/pte.h> header file. */
469 /* #undef HAVE_MACHINE_PTE_H */
471 /* Define if you have the <machine/types.h> header file. */
472 /* #undef HAVE_MACHINE_TYPES_H */
474 /* Define if you have the <malloc.h> header file. */
475 #define HAVE_MALLOC_H 1
477 /* Define if you have the <mntent.h> header file. */
478 #define HAVE_MNTENT_H 1
480 /* Define if you have the <mtab.h> header file. */
481 /* #undef HAVE_MTAB_H */
483 /* Define if you have the <ndir.h> header file. */
484 /* #undef HAVE_NDIR_H */
486 /* Define if you have the <net/if.h> header file. */
487 #define HAVE_NET_IF_H 1
489 /* Define if you have the <net/if_dl.h> header file. */
490 /* #undef HAVE_NET_IF_DL_H */
492 /* Define if you have the <net/if_mib.h> header file. */
493 /* #undef HAVE_NET_IF_MIB_H */
495 /* Define if you have the <net/if_types.h> header file. */
496 /* #undef HAVE_NET_IF_TYPES_H */
498 /* Define if you have the <net/if_var.h> header file. */
499 /* #undef HAVE_NET_IF_VAR_H */
501 /* Define if you have the <net/route.h> header file. */
502 #define HAVE_NET_ROUTE_H 1
504 /* Define if you have the <netdb.h> header file. */
505 #define HAVE_NETDB_H 1
507 /* Define if you have the <netinet/icmp_var.h> header file. */
508 /* #undef HAVE_NETINET_ICMP_VAR_H */
510 /* Define if you have the <netinet/if_ether.h> header file. */
511 #define HAVE_NETINET_IF_ETHER_H 1
513 /* Define if you have the <netinet/in.h> header file. */
514 #define HAVE_NETINET_IN_H 1
516 /* Define if you have the <netinet/in_systm.h> header file. */
517 #define HAVE_NETINET_IN_SYSTM_H 1
519 /* Define if you have the <netinet/in_var.h> header file. */
520 /* #undef HAVE_NETINET_IN_VAR_H */
522 /* Define if you have the <netinet/ip.h> header file. */
523 #define HAVE_NETINET_IP_H 1
525 /* Define if you have the <netinet/ip6.h> header file. */
527 //#define HAVE_NETINET_IP6_H 1
529 /* Define if you have the <netinet/ip_icmp.h> header file. */
530 #define HAVE_NETINET_IP_ICMP_H 1
532 /* Define if you have the <netinet/ip_var.h> header file. */
533 /* #undef HAVE_NETINET_IP_VAR_H */
535 /* Define if you have the <netinet/tcp.h> header file. */
536 #define HAVE_NETINET_TCP_H 1
538 /* Define if you have the <netinet/tcp_fsm.h> header file. */
539 /* #undef HAVE_NETINET_TCP_FSM_H */
541 /* Define if you have the <netinet/tcp_timer.h> header file. */
542 /* #undef HAVE_NETINET_TCP_TIMER_H */
544 /* Define if you have the <netinet/tcp_var.h> header file. */
545 /* #undef HAVE_NETINET_TCP_VAR_H */
547 /* Define if you have the <netinet/tcpip.h> header file. */
548 /* #undef HAVE_NETINET_TCPIP_H */
550 /* Define if you have the <netinet/udp.h> header file. */
551 #define HAVE_NETINET_UDP_H 1
553 /* Define if you have the <netinet/udp_var.h> header file. */
554 /* #undef HAVE_NETINET_UDP_VAR_H */
556 /* Define if you have the <netinet6/in6_pcb.h> header file. */
557 /* #undef HAVE_NETINET6_IN6_PCB_H */
559 /* Define if you have the <netinet6/in6_var.h> header file. */
560 /* #undef HAVE_NETINET6_IN6_VAR_H */
562 /* Define if you have the <netinet6/ip6_var.h> header file. */
563 /* #undef HAVE_NETINET6_IP6_VAR_H */
565 /* Define if you have the <netinet6/nd6.h> header file. */
566 /* #undef HAVE_NETINET6_ND6_H */
568 /* Define if you have the <netinet6/tcp6.h> header file. */
569 /* #undef HAVE_NETINET6_TCP6_H */
571 /* Define if you have the <netinet6/tcp6_fsm.h> header file. */
572 /* #undef HAVE_NETINET6_TCP6_FSM_H */
574 /* Define if you have the <netinet6/tcp6_timer.h> header file. */
575 /* #undef HAVE_NETINET6_TCP6_TIMER_H */
577 /* Define if you have the <netinet6/tcp6_var.h> header file. */
578 /* #undef HAVE_NETINET6_TCP6_VAR_H */
580 /* Define if you have the <netipx/ipx.h> header file. */
581 #define HAVE_NETIPX_IPX_H 1
583 /* Define if you have the <nlist.h> header file. */
584 /* #undef HAVE_NLIST_H */
586 /* Define if you have the <openssl/aes.h> header file. */
587 /* #undef HAVE_OPENSSL_AES_H */
589 /* Define if you have the <openssl/des.h> header file. */
590 #define HAVE_OPENSSL_DES_H 1
592 /* Define if you have the <openssl/evp.h> header file. */
593 #define HAVE_OPENSSL_EVP_H 1
595 /* Define if you have the <openssl/hmac.h> header file. */
596 #define HAVE_OPENSSL_HMAC_H 1
598 /* Define if you have the <osreldate.h> header file. */
599 /* #undef HAVE_OSRELDATE_H */
601 /* Define if you have the <pkginfo.h> header file. */
602 /* #undef HAVE_PKGINFO_H */
604 /* Define if you have the <pkglocs.h> header file. */
605 /* #undef HAVE_PKGLOCS_H */
607 /* Define if you have the <pthread.h> header file. */
608 #define HAVE_PTHREAD_H 1
610 /* Define if you have the <pwd.h> header file. */
613 /* Define if you have the <regex.h> header file. */
614 #define HAVE_REGEX_H 1
616 /* Define if you have the <rpmio.h> header file. */
617 /* #undef HAVE_RPMIO_H */
619 /* Define if you have the <search.h> header file. */
620 #define HAVE_SEARCH_H 1
622 /* Define if you have the <sgtty.h> header file. */
623 #define HAVE_SGTTY_H 1
625 /* Define if you have the <stdarg.h> header file. */
626 #define HAVE_STDARG_H 1
628 /* Define if you have the <stdlib.h> header file. */
629 #define HAVE_STDLIB_H 1
631 /* Define if you have the <string.h> header file. */
632 #define HAVE_STRING_H 1
634 /* Define if you have the <sys/cdefs.h> header file. */
635 #define HAVE_SYS_CDEFS_H 1
637 /* Define if you have the <sys/conf.h> header file. */
638 /* #undef HAVE_SYS_CONF_H */
640 /* Define if you have the <sys/dir.h> header file. */
641 /* #undef HAVE_SYS_DIR_H */
643 /* Define if you have the <sys/diskio.h> header file. */
644 /* #undef HAVE_SYS_DISKIO_H */
646 /* Define if you have the <sys/dkio.h> header file. */
647 /* #undef HAVE_SYS_DKIO_H */
649 /* Define if you have the <sys/dmap.h> header file. */
650 /* #undef HAVE_SYS_DMAP_H */
652 /* Define if you have the <sys/file.h> header file. */
653 #define HAVE_SYS_FILE_H 1
655 /* Define if you have the <sys/filio.h> header file. */
656 /* #undef HAVE_SYS_FILIO_H */
658 /* Define if you have the <sys/fixpoint.h> header file. */
659 /* #undef HAVE_SYS_FIXPOINT_H */
661 /* Define if you have the <sys/fs.h> header file. */
662 /* #undef HAVE_SYS_FS_H */
664 /* Define if you have the <sys/hashing.h> header file. */
665 /* #undef HAVE_SYS_HASHING_H */
667 /* Define if you have the <sys/ioctl.h> header file. */
668 #define HAVE_SYS_IOCTL_H 1
670 /* Define if you have the <sys/loadavg.h> header file. */
671 /* #undef HAVE_SYS_LOADAVG_H */
673 /* Define if you have the <sys/mbuf.h> header file. */
674 /* #undef HAVE_SYS_MBUF_H */
676 /* Define if you have the <sys/mntent.h> header file. */
677 /* #undef HAVE_SYS_MNTENT_H */
679 /* Define if you have the <sys/mnttab.h> header file. */
680 /* #undef HAVE_SYS_MNTTAB_H */
682 /* Define if you have the <sys/mount.h> header file. */
683 #define HAVE_SYS_MOUNT_H 1
685 /* Define if you have the <sys/ndir.h> header file. */
686 /* #undef HAVE_SYS_NDIR_H */
688 /* Define if you have the <sys/param.h> header file. */
689 #define HAVE_SYS_PARAM_H 1
691 /* Define if you have the <sys/pool.h> header file. */
692 /* #undef HAVE_SYS_POOL_H */
694 /* Define if you have the <sys/proc.h> header file. */
695 /* #undef HAVE_SYS_PROC_H */
697 /* Define if you have the <sys/protosw.h> header file. */
698 /* #undef HAVE_SYS_PROTOSW_H */
700 /* Define if you have the <sys/pstat.h> header file. */
701 /* #undef HAVE_SYS_PSTAT_H */
703 /* Define if you have the <sys/queue.h> header file. */
704 #define HAVE_SYS_QUEUE_H 1
706 /* Define if you have the <sys/select.h> header file. */
707 #define HAVE_SYS_SELECT_H 1
709 /* Define if you have the <sys/socket.h> header file. */
710 #define HAVE_SYS_SOCKET_H 1
712 /* Define if you have the <sys/socketvar.h> header file. */
713 #define HAVE_SYS_SOCKETVAR_H 1
715 /* Define if you have the <sys/sockio.h> header file. */
716 /* #undef HAVE_SYS_SOCKIO_H */
718 /* Define if you have the <sys/stat.h> header file. */
719 #define HAVE_SYS_STAT_H 1
721 /* Define if you have the <sys/statfs.h> header file. */
722 #define HAVE_SYS_STATFS_H 1
724 /* Define if you have the <sys/statvfs.h> header file. */
725 #define HAVE_SYS_STATVFS_H 1
727 /* Define if you have the <sys/stream.h> header file. */
728 /* #undef HAVE_SYS_STREAM_H */
730 /* Define if you have the <sys/swap.h> header file. */
731 #define HAVE_SYS_SWAP_H 1
733 /* Define if you have the <sys/sysctl.h> header file. */
734 #define HAVE_SYS_SYSCTL_H 1
736 /* Define if you have the <sys/sysmp.h> header file. */
737 /* #undef HAVE_SYS_SYSMP_H */
739 /* Define if you have the <sys/tcpipstats.h> header file. */
740 /* #undef HAVE_SYS_TCPIPSTATS_H */
742 /* Define if you have the <sys/time.h> header file. */
743 #define HAVE_SYS_TIME_H 1
745 /* Define if you have the <sys/un.h> header file. */
746 #define HAVE_SYS_UN_H 1
748 /* Define if you have the <sys/user.h> header file. */
749 #define HAVE_SYS_USER_H 1
751 /* Define if you have the <sys/utsname.h> header file. */
752 #define HAVE_SYS_UTSNAME_H 1
754 /* Define if you have the <sys/vfs.h> header file. */
755 #define HAVE_SYS_VFS_H 1
757 /* Define if you have the <sys/vm.h> header file. */
758 /* #undef HAVE_SYS_VM_H */
760 /* Define if you have the <sys/vmmac.h> header file. */
761 /* #undef HAVE_SYS_VMMAC_H */
763 /* Define if you have the <sys/vmmeter.h> header file. */
764 /* #undef HAVE_SYS_VMMETER_H */
766 /* Define if you have the <sys/vmparam.h> header file. */
767 /* #undef HAVE_SYS_VMPARAM_H */
769 /* Define if you have the <sys/vmsystm.h> header file. */
770 /* #undef HAVE_SYS_VMSYSTM_H */
772 /* Define if you have the <sys/vnode.h> header file. */
773 /* #undef HAVE_SYS_VNODE_H */
775 /* Define if you have the <syslog.h> header file. */
776 #define HAVE_SYSLOG_H 1
778 /* Define if you have the <ufs/ffs/fs.h> header file. */
779 /* #undef HAVE_UFS_FFS_FS_H */
781 /* Define if you have the <ufs/fs.h> header file. */
782 /* #undef HAVE_UFS_FS_H */
784 /* Define if you have the <ufs/ufs/dinode.h> header file. */
785 /* #undef HAVE_UFS_UFS_DINODE_H */
787 /* Define if you have the <ufs/ufs/inode.h> header file. */
788 /* #undef HAVE_UFS_UFS_INODE_H */
790 /* Define if you have the <ufs/ufs/quota.h> header file. */
791 /* #undef HAVE_UFS_UFS_QUOTA_H */
793 /* Define if you have the <unistd.h> header file. */
794 #define HAVE_UNISTD_H 1
796 /* Define if you have the <utmpx.h> header file. */
797 #define HAVE_UTMPX_H 1
799 /* Define if you have the <utsname.h> header file. */
800 /* #undef HAVE_UTSNAME_H */
802 /* Define if you have the <uvm/uvm_extern.h> header file. */
803 /* #undef HAVE_UVM_UVM_EXTERN_H */
805 /* Define if you have the <uvm/uvm_param.h> header file. */
806 /* #undef HAVE_UVM_UVM_PARAM_H */
808 /* Define if you have the <vm/swap_pager.h> header file. */
809 /* #undef HAVE_VM_SWAP_PAGER_H */
811 /* Define if you have the <vm/vm.h> header file. */
812 /* #undef HAVE_VM_VM_H */
814 /* Define if you have the <vm/vm_extern.h> header file. */
815 /* #undef HAVE_VM_VM_EXTERN_H */
817 /* Define if you have the <vm/vm_param.h> header file. */
818 /* #undef HAVE_VM_VM_PARAM_H */
820 /* Define if you have the <winsock.h> header file. */
821 /* #undef HAVE_WINSOCK_H */
823 /* Define if you have the <xti.h> header file. */
824 /* #undef HAVE_XTI_H */
826 /* Define if you have the RSAglue library (-lRSAglue). */
827 /* #undef HAVE_LIBRSAGLUE */
829 /* Define if you have the crypto library (-lcrypto). */
831 //#define HAVE_LIBCRYPTO 1
833 /* Define if you have the dl library (-ldl). */
835 //#define HAVE_LIBDL 1
837 /* Define if you have the efence library (-lefence). */
838 /* #undef HAVE_LIBEFENCE */
840 /* Define if you have the elf library (-lelf). */
841 //#define HAVE_LIBELF 1
843 /* Define if you have the kstat library (-lkstat). */
844 /* #undef HAVE_LIBKSTAT */
846 /* Define if you have the kvm library (-lkvm). */
847 /* #undef HAVE_LIBKVM */
849 /* Define if you have the m library (-lm). */
850 //#define HAVE_LIBM 1
852 /* Define if you have the mld library (-lmld). */
853 /* #undef HAVE_LIBMLD */
855 /* Define if you have the nsl library (-lnsl). */
856 /* #undef HAVE_LIBNSL */
858 /* Define if you have the rsaref library (-lrsaref). */
859 /* #undef HAVE_LIBRSAREF */
861 /* Define if you have the z library (-lz). */
862 /* #undef HAVE_LIBZ */
864 /* define if you have getdevs() */
865 /* #undef HAVE_GETDEVS */
867 /* define if you have <netinet/in_pcb.h> */
868 /* #undef HAVE_NETINET_IN_PCB_H */
870 /* define if you have <sys/disklabel.h> */
871 /* #undef HAVE_SYS_DISKLABEL_H */
873 /* define if you are using linux and /proc/net/dev has the compressed
874 field, which exists in linux kernels 2.2 and greater. */
875 /* #undef PROC_NET_DEV_HAS_COMPRESSED */
877 /* define rtentry to ortentry on SYSV machines (alphas) */
878 #define RTENTRY struct rtentry
880 /* Use BSD 4.4 routing table entries? */
881 /* #undef RTENTRY_4_4 */
883 /* Does struct sigaction have a sa_sigaction field? */
884 #define STRUCT_SIGACTION_HAS_SA_SIGACTION 1
886 /* Does struct sockaddr have a sa_len field? */
887 /* #undef STRUCT_SOCKADDR_HAS_SA_LEN */
889 /* Does struct sockaddr have a sa_family2 field? */
890 /* #undef STRUCT_SOCKADDR_HAS_SA_UNION_SA_GENERIC_SA_FAMILY2 */
892 /* rtentry structure tests */
893 /* #undef RTENTRY_RT_NEXT */
894 #define STRUCT_RTENTRY_HAS_RT_DST 1
895 /* #undef STRUCT_RTENTRY_HAS_RT_UNIT */
896 /* #undef STRUCT_RTENTRY_HAS_RT_USE */
897 /* #undef STRUCT_RTENTRY_HAS_RT_REFCNT */
898 /* #undef STRUCT_RTENTRY_HAS_RT_HASH */
900 /* ifnet structure tests */
901 /* #undef STRUCT_IFNET_HAS_IF_BAUDRATE */
902 /* #undef STRUCT_IFNET_HAS_IF_BAUDRATE_IFS_VALUE */
903 #define STRUCT_IFNET_HAS_IF_SPEED 1
904 #define STRUCT_IFNET_HAS_IF_TYPE 1
905 /* #undef STRUCT_IFNET_HAS_IF_IMCASTS */
906 #define STRUCT_IFNET_HAS_IF_IQDROPS 1
907 /* #undef STRUCT_IFNET_HAS_IF_LASTCHANGE_TV_SEC */
908 /* #undef STRUCT_IFNET_HAS_IF_NOPROTO */
909 /* #undef STRUCT_IFNET_HAS_IF_OMCASTS */
910 /* #undef STRUCT_IFNET_HAS_IF_XNAME */
911 #define STRUCT_IFNET_HAS_IF_OBYTES 1
912 #define STRUCT_IFNET_HAS_IF_IBYTES 1
913 /* #undef STRUCT_IFNET_HAS_IF_ADDRLIST */
915 /* tcpstat.tcps_rcvmemdrop */
916 /* #undef STRUCT_TCPSTAT_HAS_TCPS_RCVMEMDROP */
918 /* udpstat.udps_discard */
919 /* #undef STRUCT_UDPSTAT_HAS_UDPS_DISCARD */
921 /* udpstat.udps_discard */
922 /* #undef STRUCT_UDPSTAT_HAS_UDPS_NOPORT */
924 /* udpstat.udps_discard */
925 /* #undef STRUCT_UDPSTAT_HAS_UDPS_NOPORTBCAST */
927 /* udpstat.udps_discard */
928 /* #undef STRUCT_UDPSTAT_HAS_UDPS_FULLSOCK */
931 /* #undef STRUCT_ARPHD_HAS_AT_NEXT */
933 /* ifaddr.ifa_next */
934 #define STRUCT_IFADDR_HAS_IFA_NEXT 1
937 /* #undef STRUCT_IFNET_HAS_IF_MTU */
939 /* swdevt.sw_nblksenabled */
940 /* #undef STRUCT_SWDEVT_HAS_SW_NBLKSENABLED */
943 /* #undef STRUCT_NLIST_HAS_N_VALUE */
945 /* ipstat structure tests */
946 /* #undef STRUCT_IPSTAT_HAS_IPS_CANTFORWARD */
947 /* #undef STRUCT_IPSTAT_HAS_IPS_CANTFRAG */
948 /* #undef STRUCT_IPSTAT_HAS_IPS_DELIVERED */
949 /* #undef STRUCT_IPSTAT_HAS_IPS_FRAGDROPPED */
950 /* #undef STRUCT_IPSTAT_HAS_IPS_FRAGTIMEOUT */
951 /* #undef STRUCT_IPSTAT_HAS_IPS_LOCALOUT */
952 /* #undef STRUCT_IPSTAT_HAS_IPS_NOPROTO */
953 /* #undef STRUCT_IPSTAT_HAS_IPS_NOROUTE */
954 /* #undef STRUCT_IPSTAT_HAS_IPS_ODROPPED */
955 /* #undef STRUCT_IPSTAT_HAS_IPS_OFRAGMENTS */
956 /* #undef STRUCT_IPSTAT_HAS_IPS_REASSEMBLED */
958 /* vfsstat.f_frsize */
959 #define STRUCT_STATVFS_HAS_F_FRSIZE 1
961 /* vfsstat.f_files */
962 #define STRUCT_STATVFS_HAS_F_FILES 1
964 /* statfs inode structure tests*/
965 #define STRUCT_STATFS_HAS_F_FILES 1
966 #define STRUCT_STATFS_HAS_F_FFREE 1
967 /* #undef STRUCT_STATFS_HAS_F_FAVAIL */
969 /* des_ks_struct.weak_key */
970 //#define STRUCT_DES_KS_STRUCT_HAS_WEAK_KEY 1
972 /* ifnet needs to have _KERNEL defined */
973 /* #undef IFNET_NEEDS_KERNEL */
975 /* sysctl works to get boottime, etc... */
976 /* #undef CAN_USE_SYSCTL */
978 /* type check for in_addr_t */
979 /* #undef in_addr_t */
981 /* define if SIOCGIFADDR exists in sys/ioctl.h */
982 #define SYS_IOCTL_H_HAS_SIOCGIFADDR 1
984 /* define if your compiler (processor) defines __FUNCTION__ for you */
985 #define HAVE_CPP_UNDERBAR_FUNCTION_DEFINED 1
987 /* Mib-2 tree Info */
988 /* These are the system information variables. */
990 #define VERS_DESC "unknown" /* overridden at run time */
991 #define SYS_NAME "unknown" /* overridden at run time */
993 /* comment out the second define to turn off functionality for any of
994 these: (See README for details) */
996 /* proc PROCESSNAME [MAX] [MIN] */
999 /* exec/shell NAME COMMAND */
1000 #define SHELLMIBNUM 8
1005 /* disk DISK MINSIZE */
1006 #define DISKMIBNUM 9
1009 #define LOADAVEMIBNUM 10
1011 /* which version are you using? This mibloc will tell you */
1012 #define VERSIONMIBNUM 100
1014 /* Reports errors the agent runs into */
1015 /* (typically its "can't fork, no mem" problems) */
1016 #define ERRORMIBNUM 101
1018 /* The sub id of EXENSIBLEMIB returned to queries of
1019 .iso.org.dod.internet.mgmt.mib-2.system.sysObjectID.0 */
1022 /* This ID is returned after the AGENTID above. IE, the resulting
1023 value returned by a query to sysObjectID is
1024 EXTENSIBLEMIB.AGENTID.???, where ??? is defined below by OSTYPE */
1037 #define OPENBSDID 12
1040 #define UNKNOWNID 255
1043 #define OSTYPE HPUX9ID
1046 #define OSTYPE HPUX10ID
1049 #define OSTYPE HPUX11ID
1052 #define OSTYPE SUNOS4ID
1055 #define OSTYPE SOLARISID
1057 #if defined(osf3) || defined(osf4)
1058 #define OSTYPE OSFID
1061 #define OSTYPE ULTRIXID
1064 #define OSTYPE NETBSD1ID
1067 #define OSTYPE FREEBSDID
1069 #if defined(irix6) || defined(irix5)
1070 #define OSTYPE IRIXID
1073 #define OSTYPE LINUXID
1075 #if defined(bsdi2) || defined(bsdi3) || defined(bsdi4)
1076 #define OSTYPE BSDIID
1079 #define OSTYPE OPENBSDID
1083 #define OSTYPE UNKNOWNID
1086 /* The enterprise number has been assigned by the IANA group. */
1087 /* Optionally, this may point to the location in the tree your */
1088 /* company/organization has been allocated. */
1089 /* The assigned enterprise number for the NET_SNMP MIB modules. */
1090 #define BRCM_SNMP_INFO
1091 #ifdef BRCM_SNMP_INFO
1092 #define ENTERPRISE_OID 4413
1093 #define ENTERPRISE_MIB 1,3,6,1,4,1,4413
1094 #define ENTERPRISE_DOT_MIB 1.3.6.1.4.1.4413
1095 #define ENTERPRISE_DOT_MIB_LENGTH 7
1097 /* The assigned enterprise number for sysObjectID. */
1098 #define SYSTEM_MIB 1,3,6,1,4,1,4413.3,2,OSTYPE
1099 #define SYSTEM_DOT_MIB 1.3.6.1.4.1.4413.3.2.OSTYPE
1100 #define SYSTEM_DOT_MIB_LENGTH 10
1103 #define ENTERPRISE_OID 8072
1104 #define ENTERPRISE_MIB 1,3,6,1,4,1,8072
1105 #define ENTERPRISE_DOT_MIB 1.3.6.1.4.1.8072
1106 #define ENTERPRISE_DOT_MIB_LENGTH 7
1108 /* The assigned enterprise number for sysObjectID. */
1109 #define SYSTEM_MIB 1,3,6,1,4,1,8072,3,2,OSTYPE
1110 #define SYSTEM_DOT_MIB 1.3.6.1.4.1.8072.3.2.OSTYPE
1111 #define SYSTEM_DOT_MIB_LENGTH 10
1112 #endif /* BRCM_SNMP_INFO */
1115 /* The assigned enterprise number for notifications. */
1116 #define NOTIFICATION_MIB 1,3,6,1,4,1,8072,4
1117 #define NOTIFICATION_DOT_MIB 1.3.6.1.4.1.8072.4
1118 #define NOTIFICATION_DOT_MIB_LENGTH 8
1120 /* this is the location of the ucdavis mib tree. It shouldn't be
1121 changed, as the places it is used are expected to be constant
1122 values or are directly tied to the UCD-SNMP-MIB. */
1123 #define UCDAVIS_OID 2021
1124 #define UCDAVIS_MIB 1,3,6,1,4,1,2021
1125 #define UCDAVIS_DOT_MIB 1.3.6.1.4.1.2021
1126 #define UCDAVIS_DOT_MIB_LENGTH 7
1128 /* how long to wait (seconds) for error querys before reseting the error trap.*/
1129 #define ERRORTIMELENGTH 600
1131 /* Exec command to fix PROC problems */
1132 /* %s will be replaced by the process name in error */
1134 /* #define PROCFIXCMD "/usr/bin/perl /local/scripts/fixproc %s" */
1136 /* Exec command to fix EXEC problems */
1137 /* %s will be replaced by the exec/script name in error */
1139 /* #define EXECFIXCMD "/usr/bin/perl /local/scripts/fixproc %s" */
1141 /* Should exec output Cashing be used (speeds up things greatly), and
1142 if so, After how many seconds should the cache re-newed? Note:
1143 Don't define CASHETIME to disable cashing completely */
1145 #define EXCACHETIME 30
1146 #define CACHEFILE ".snmp-exec-cache"
1147 #define MAXCACHESIZE (200*80) /* roughly 200 lines max */
1149 #define MAXDISKS 50 /* can't scan more than this number */
1153 /* default of 100 meg minimum if the minimum size is not specified in
1155 #define DEFDISKMINIMUMSPACE 100000
1157 #define DEFMAXLOADAVE 12.0 /* default maximum load average before error */
1159 #define MAXREADCOUNT 100 /* max times to loop reading output from
1160 execs. Because of sleep(1)s, this will also
1161 be time to wait (in seconds) for exec to finish */
1163 #define SNMPBLOCK 1 /* Set to 1 if you want snmpgets to block and never
1164 timeout. Original CMU code had this
1165 hardcoded into the code as = 1 */
1167 #define RESTARTSLEEP 5 /* How long to wait after a snmpset to
1168 EXTENSIBLEMIB.VERSIONMIBNUM.VERRESTARTAGENT
1169 before restarting the agent. This is
1170 necessary to finish the snmpset reply
1171 before restarting. */
1173 /* Number of community strings to store */
1174 #define NUM_COMMUNITIES 5
1176 /* UNdefine to allow specifying zero-length community string */
1177 /* #define NO_ZEROLENGTH_COMMUNITY 1 */
1179 /* #define EXIT_ON_BAD_KLREAD */
1180 /* define to exit the agent on a bad kernel read */
1182 #define LASTFIELD -1 /* internal define */
1184 /* configure options specified */
1185 #define CONFIGURE_OPTIONS "\" --with-default-snmp-version=2 --with-out-transports=TCP --with-mib-modules=mibII '--with-out-mib-modules=snmpv3mibs ucd_snmp agent_mibs agentx target'\""
1187 /* got socklen_t? */
1188 #define HAVE_SOCKLEN_T 1
1190 /* got in_addr_t? */
1191 #define HAVE_IN_ADDR_T 1
1195 # define strchr index
1196 # define strrchr rindex
1202 # define index strchr
1203 # define rindex strrchr
1209 # define memcpy(d, s, n) bcopy ((s), (d), (n))
1210 # define memmove(d, s, n) bcopy ((s), (d), (n))
1211 # define memcmp bcmp
1215 #ifndef HAVE_MEMMOVE
1217 # define memmove memcpy
1223 # define bcopy(s, d, n) memcpy ((d), (s), (n))
1224 # define bzero(p,n) memset((p),(0),(n))
1225 # define bcmp memcmp
1229 /* If you have openssl 0.9.7 or above, you likely have AES support. */
1231 //#define USE_OPENSSL 1
1232 #if defined(USE_OPENSSL) && defined(HAVE_OPENSSL_AES_H) && defined(HAVE_AES_CFB128_ENCRYPT)
1236 /* define random functions */
1240 #define random lrand48
1241 #define srandom(s) srand48(s)
1245 #define srandom(s) srand(s)
1250 /* define signal if DNE */
1254 #define signal(a,b) sigset(a,b)
1258 /* define if you have librpm and libdb */
1259 /* #undef HAVE_LIBDB */
1260 /* #undef HAVE_LIBRPM */
1262 /* define if you have pkginfo */
1263 /* #undef HAVE_PKGINFO */
1265 /* define if you have gethostbyname */
1266 #define HAVE_GETHOSTBYNAME 1
1268 /* define if you have getservbyname */
1269 #define HAVE_GETSERVBYNAME 1
1271 /* printing system */
1272 //#define HAVE_LPSTAT 1
1273 //#define LPSTAT_PATH "/usr/bin/lpstat"
1274 #define HAVE_PRINTCAP 1
1276 /* Pluggable transports. */
1278 /* This is defined if support for the UDP/IP transport domain is
1280 #define SNMP_TRANSPORT_UDP_DOMAIN 1
1282 /* This is defined if support for the TCP/IP transport domain is
1284 /* #undef SNMP_TRANSPORT_TCP_DOMAIN */
1286 /* BRCM_TRANSPORT_SUPPORT */
1287 /* This is defined if support for the Unix transport domain
1288 (a.k.a. "local IPC") is available. */
1289 //#define SNMP_TRANSPORT_UNIX_DOMAIN 1
1291 /* This is defined if support for the AAL5 PVC transport domain is
1293 #define SNMP_TRANSPORT_AAL5PVC_DOMAIN
1295 /* This is defined if support for the IPX transport domain is
1297 /* #undef SNMP_TRANSPORT_IPX_DOMAIN */
1299 /* This is defined if support for the UDP/IPv6 transport domain is
1301 /* #undef SNMP_TRANSPORT_UDPIPV6_DOMAIN */
1303 /* This is defined if support for the TCP/IPv6 transport domain is
1305 /* #undef SNMP_TRANSPORT_TCPIPV6_DOMAIN */
1307 /* define this if the USM security module is available */
1308 #define SNMP_SECMOD_USM 1
1310 /* define this if the KSM (kerberos based snmp) security module is available */
1311 /* #undef SNMP_SECMOD_KSM */
1313 /* define this if we're using the new MIT crypto API */
1314 /* #undef MIT_NEW_CRYPTO */
1316 /* define if you want to build with reentrant/threaded code */
1317 /* #undef NS_REENTRANT */
1319 /* Not-to-be-compiled macros for use by configure only */
1320 #define config_require(x)
1321 #define config_arch_require(x,y)
1322 #define config_parse_dot_conf(w,x,y,z)
1323 #define config_add_mib(x)
1326 #define ENV_SEPARATOR ";"
1327 #define ENV_SEPARATOR_CHAR ';'
1329 #define ENV_SEPARATOR ":"
1330 #define ENV_SEPARATOR_CHAR ':'
1333 #include SYSTEM_INCLUDE_FILE
1334 #include MACHINE_INCLUDE_FILE
1336 #if defined(HAVE_NLIST) && defined(STRUCT_NLIST_HAS_N_VALUE) && !defined(DONT_USE_NLIST) && !defined(NO_KMEM_USAGE)
1337 #define CAN_USE_NLIST
1341 #define DMALLOC_FUNC_CHECK
1346 #ifndef NETSNMP_INLINE
1347 # define NETSNMP_NO_INLINE
1348 # define NETSNMP_INLINE
1351 #endif /* NET_SNMP_CONFIG_H */