1 /* include/net-snmp/net-snmp-config.h.in. Generated automatically from configure.in by autoheader. */
2 #ifndef NET_SNMP_CONFIG_H
3 #define NET_SNMP_CONFIG_H
5 /* config.h: a general config file */
7 /* Default (SNMP) version number for the tools to use */
8 #define DEFAULT_SNMP_VERSION 3
10 /* don't change these values! */
11 #define SNMPV1 0xAAAA /* readable by anyone */
12 #define SNMPV2ANY 0xA000 /* V2 Any type (includes NoAuth) */
13 #define SNMPV2AUTH 0x8000 /* V2 Authenticated requests only */
15 /* default list of mibs to load */
17 #define DEFAULT_MIBS "IP-MIB:IF-MIB:TCP-MIB:UDP-MIB:SNMPv2-MIB:RFC1213-MIB"
19 /* default location to look for mibs to load using the above tokens
20 and/or those in the MIBS envrionment variable*/
22 #undef DEFAULT_MIBDIRS
24 /* default mib files to load, specified by path. */
26 #undef DEFAULT_MIBFILES
28 /* should we compile to use special opaque types: float, double,
29 counter64, i64, ui64, union? */
30 #undef OPAQUE_SPECIAL_TYPES
32 /* comment the next line if you are compiling with libsnmp.h
33 and are not using the UC-Davis SNMP library. */
34 #define UCD_SNMP_LIBRARY 1
36 /* define if you want to compile support for both authentication and
40 /* define if you are using the MD5 code ...*/
41 #undef USE_INTERNAL_MD5
43 /* add in recent CMU library extensions (not complete) */
46 /* add in recent resource lock functions (not complete) */
50 #undef SNMP_NO_DEBUGGING /* if defined, we optimize the code
51 to exclude all debugging calls. */
52 #define SNMP_ALWAYS_DEBUG 0 /* Always print debugging information and
53 ignore the -D flag passed to the cmds */
55 /* reverse encoding BER packets is both faster and more efficient in space. */
56 #define USE_REVERSE_ASNENCODING 1
57 #define DEFAULT_ASNENCODING_DIRECTION 1 /* 1 = reverse, 0 = forwards */
59 /* PERSISTENT_DIRECTORY: If defined, the library is capabile of saving
60 persisant information to this directory in the form of configuration
61 lines: PERSISTENT_DIRECTORY/NAME.persistent.conf */
62 #define PERSISTENT_DIRECTORY "/var/snmp"
64 /* PERSISTENT_MASK: the umask permissions to set up the persistent files with */
65 #define PERSISTENT_MASK 077
67 /* AGENT_DIRECTORY_MODE: the mode the agents should use to create
68 directories with. Since the data stored here is probably sensitive, it
69 probably should be read-only by root/administrator. */
70 #define AGENT_DIRECTORY_MODE 0700
72 /* MAX_PERSISTENT_BACKUPS:
73 * The maximum number of persistent backups the library will try to
74 * read from the persistent cache directory. If an application fails to
75 * close down successfully more than this number of times, data will be lost.
77 #define MAX_PERSISTENT_BACKUPS 10
80 /* Define if on AIX 3.
81 System headers sometimes define this.
82 We just want to avoid a redefinition error message. */
87 /* Define if using alloca.c. */
90 /* Define to empty if the keyword does not work. */
93 /* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
94 This function is required for alloca.c support on those systems. */
95 #undef CRAY_STACKSEG_END
97 /* Define if you have alloca, as a function or macro. */
100 /* Define if you have <alloca.h> and it should be used (not on Ultrix). */
103 /* Define if you have the getmntent function. */
104 #undef HAVE_GETMNTENT
106 /* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
107 #undef HAVE_SYS_WAIT_H
109 /* Define as __inline if that's what the C compiler calls it. */
112 /* Define to `long' if <sys/types.h> doesn't define. */
115 /* Define to `int' if <sys/types.h> doesn't define. */
118 /* Define as the return type of signal handlers (int or void). */
121 /* If using the C implementation of alloca, define if you know the
122 direction of stack growth for your system; otherwise it will be
123 automatically deduced at run-time.
124 STACK_DIRECTION > 0 => grows toward higher addresses
125 STACK_DIRECTION < 0 => grows toward lower addresses
126 STACK_DIRECTION = 0 => direction of growth unknown
128 #undef STACK_DIRECTION
130 /* Define if you have the ANSI C header files. */
133 /* Define if you can safely include both <sys/time.h> and <time.h>. */
134 #undef TIME_WITH_SYS_TIME
136 /* Define if your processor stores words with the most significant
137 byte first (like Motorola and SPARC, unlike Intel and VAX). */
138 #undef WORDS_BIGENDIAN
140 /* define if you are embedding perl in the main agent */
141 #undef NETSNMP_EMBEDDED_PERL
143 /* define the system type include file here */
144 #define SYSTEM_INCLUDE_FILE <net-snmp/system/generic.h>
146 /* define the machine (cpu) type include file here */
147 #define MACHINE_INCLUDE_FILE <net-snmp/machine/generic.h>
154 /* LOGFILE: If defined it closes stdout/err/in and opens this in out/err's
155 place. (stdin is closed so that sh scripts won't wait for it) */
159 /* default system contact */
162 /* system location */
165 /* Use libwrap to handle allow/deny hosts? */
168 /* Use dmalloc to do malloc debugging? */
169 #undef HAVE_DMALLOC_H
171 /* location of UNIX kernel */
172 #define KERNEL_LOC "/vmunix"
174 /* location of mount table list */
175 #define ETC_MNTTAB "/etc/mnttab"
177 /* location of swap device (ok if not found) */
180 #define PSCMD "/bin/ps"
182 /* Where is the uname command */
183 #define UNAMEPROG "/bin/uname"
185 /* testing code sections. */
186 #undef SNMP_TESTING_CODE
188 /* If you don't have root access don't exit upon kmem errors */
189 #undef NO_ROOT_ACCESS
191 /* If we don't want to use kmem. */
194 /* If you don't want the agent to report on variables it doesn't have data for */
195 #undef NO_DUMMY_VALUES
197 /* Define if statfs takes 2 args and the second argument has
198 type struct fs_data. [Ultrix] */
199 #undef STAT_STATFS_FS_DATA
201 /* Define if the TCP timer constants in <netinet/tcp_timer.h>
202 depend on the integer variable `hz'. [FreeBSD 4.x] */
203 #undef TCPTV_NEEDS_HZ
205 /* Define if you have the AES_cfb128_encrypt function. */
206 #undef HAVE_AES_CFB128_ENCRYPT
208 /* Define if you have the bcopy function. */
211 /* Define if you have the cgetnext function. */
214 /* Define if you have the dlopen function. */
217 /* Define if you have the eval_pv function. */
220 /* Define if you have the execv function. */
223 /* Define if you have the fork function. */
226 /* Define if you have the getaddrinfo function. */
227 #undef HAVE_GETADDRINFO
229 /* Define if you have the getdtablesize function. */
230 #undef HAVE_GETDTABLESIZE
232 /* Define if you have the getfsstat function. */
233 #undef HAVE_GETFSSTAT
235 /* Define if you have the getgrnam function. */
238 /* Define if you have the gethostname function. */
239 #undef HAVE_GETHOSTNAME
241 /* Define if you have the getipnodebyname function. */
242 #undef HAVE_GETIPNODEBYNAME
244 /* Define if you have the getloadavg function. */
245 #undef HAVE_GETLOADAVG
247 /* Define if you have the getpagesize function. */
248 #undef HAVE_GETPAGESIZE
250 /* Define if you have the getpid function. */
253 /* Define if you have the getpwnam function. */
256 /* Define if you have the gettimeofday function. */
257 #undef HAVE_GETTIMEOFDAY
259 /* Define if you have the if_freenameindex function. */
260 #undef HAVE_IF_FREENAMEINDEX
262 /* Define if you have the if_nameindex function. */
263 #undef HAVE_IF_NAMEINDEX
265 /* Define if you have the index function. */
268 /* Define if you have the knlist function. */
271 /* Define if you have the kvm_getprocs function. */
272 #undef HAVE_KVM_GETPROCS
274 /* Define if you have the kvm_openfiles function. */
275 #undef HAVE_KVM_OPENFILES
277 /* Define if you have the lrand48 function. */
280 /* Define if you have the memcpy function. */
283 /* Define if you have the memmove function. */
286 /* Define if you have the mkstemp function. */
289 /* Define if you have the nlist function. */
292 /* Define if you have the perl_eval_pv function. */
293 #undef HAVE_PERL_EVAL_PV
295 /* Define if you have the rand function. */
298 /* Define if you have the random function. */
301 /* Define if you have the regcomp function. */
304 /* Define if you have the rpmGetPath function. */
305 #undef HAVE_RPMGETPATH
307 /* Define if you have the select function. */
310 /* Define if you have the setenv function. */
313 /* Define if you have the setgid function. */
316 /* Define if you have the setgroups function. */
317 #undef HAVE_SETGROUPS
319 /* Define if you have the setitimer function. */
320 #undef HAVE_SETITIMER
322 /* Define if you have the setlocale function. */
323 #undef HAVE_SETLOCALE
325 /* Define if you have the setmntent function. */
326 #undef HAVE_SETMNTENT
328 /* Define if you have the setsid function. */
331 /* Define if you have the setuid function. */
334 /* Define if you have the sigaction function. */
335 #undef HAVE_SIGACTION
337 /* Define if you have the sigalrm function. */
340 /* Define if you have the sigblock function. */
343 /* Define if you have the sighold function. */
346 /* Define if you have the signal function. */
349 /* Define if you have the sigset function. */
352 /* Define if you have the snprintf function. */
355 /* Define if you have the socket function. */
358 /* Define if you have the statfs function. */
361 /* Define if you have the statvfs function. */
364 /* Define if you have the strcasestr function. */
365 #undef HAVE_STRCASESTR
367 /* Define if you have the strchr function. */
370 /* Define if you have the strdup function. */
373 /* Define if you have the strerror function. */
376 /* Define if you have the strncasecmp function. */
377 #undef HAVE_STRNCASECMP
379 /* Define if you have the strtol function. */
382 /* Define if you have the strtoul function. */
385 /* Define if you have the system function. */
388 /* Define if you have the tcgetattr function. */
389 #undef HAVE_TCGETATTR
391 /* Define if you have the uname function. */
394 /* Define if you have the usleep function. */
397 /* Define if you have the vsnprintf function. */
398 #undef HAVE_VSNPRINTF
400 /* Define if you have the <arpa/inet.h> header file. */
401 #undef HAVE_ARPA_INET_H
403 /* Define if you have the <asm/page.h> header file. */
404 #undef HAVE_ASM_PAGE_H
406 /* Define if you have the <dirent.h> header file. */
409 /* Define if you have the <dlfcn.h> header file. */
412 /* Define if you have the <err.h> header file. */
415 /* Define if you have the <fcntl.h> header file. */
418 /* Define if you have the <fstab.h> header file. */
421 /* Define if you have the <getopt.h> header file. */
424 /* Define if you have the <grp.h> header file. */
427 /* Define if you have the <inet/mib2.h> header file. */
428 #undef HAVE_INET_MIB2_H
430 /* Define if you have the <io.h> header file. */
433 /* Define if you have the <ioctls.h> header file. */
436 /* Define if you have the <kstat.h> header file. */
439 /* Define if you have the <kvm.h> header file. */
442 /* Define if you have the <limits.h> header file. */
445 /* Define if you have the <linux/hdreg.h> header file. */
446 #undef HAVE_LINUX_HDREG_H
448 /* Define if you have the <linux/tasks.h> header file. */
449 #undef HAVE_LINUX_TASKS_H
451 /* Define if you have the <locale.h> header file. */
454 /* Define if you have the <machine/param.h> header file. */
455 #undef HAVE_MACHINE_PARAM_H
457 /* Define if you have the <machine/pte.h> header file. */
458 #undef HAVE_MACHINE_PTE_H
460 /* Define if you have the <machine/types.h> header file. */
461 #undef HAVE_MACHINE_TYPES_H
463 /* Define if you have the <malloc.h> header file. */
466 /* Define if you have the <mntent.h> header file. */
469 /* Define if you have the <mtab.h> header file. */
472 /* Define if you have the <ndir.h> header file. */
475 /* Define if you have the <net/if.h> header file. */
478 /* Define if you have the <net/if_dl.h> header file. */
479 #undef HAVE_NET_IF_DL_H
481 /* Define if you have the <net/if_mib.h> header file. */
482 #undef HAVE_NET_IF_MIB_H
484 /* Define if you have the <net/if_types.h> header file. */
485 #undef HAVE_NET_IF_TYPES_H
487 /* Define if you have the <net/if_var.h> header file. */
488 #undef HAVE_NET_IF_VAR_H
490 /* Define if you have the <net/route.h> header file. */
491 #undef HAVE_NET_ROUTE_H
493 /* Define if you have the <netdb.h> header file. */
496 /* Define if you have the <netinet/icmp_var.h> header file. */
497 #undef HAVE_NETINET_ICMP_VAR_H
499 /* Define if you have the <netinet/if_ether.h> header file. */
500 #undef HAVE_NETINET_IF_ETHER_H
502 /* Define if you have the <netinet/in.h> header file. */
503 #undef HAVE_NETINET_IN_H
505 /* Define if you have the <netinet/in_systm.h> header file. */
506 #undef HAVE_NETINET_IN_SYSTM_H
508 /* Define if you have the <netinet/in_var.h> header file. */
509 #undef HAVE_NETINET_IN_VAR_H
511 /* Define if you have the <netinet/ip.h> header file. */
512 #undef HAVE_NETINET_IP_H
514 /* Define if you have the <netinet/ip6.h> header file. */
515 #undef HAVE_NETINET_IP6_H
517 /* Define if you have the <netinet/ip_icmp.h> header file. */
518 #undef HAVE_NETINET_IP_ICMP_H
520 /* Define if you have the <netinet/ip_var.h> header file. */
521 #undef HAVE_NETINET_IP_VAR_H
523 /* Define if you have the <netinet/tcp.h> header file. */
524 #undef HAVE_NETINET_TCP_H
526 /* Define if you have the <netinet/tcp_fsm.h> header file. */
527 #undef HAVE_NETINET_TCP_FSM_H
529 /* Define if you have the <netinet/tcp_timer.h> header file. */
530 #undef HAVE_NETINET_TCP_TIMER_H
532 /* Define if you have the <netinet/tcp_var.h> header file. */
533 #undef HAVE_NETINET_TCP_VAR_H
535 /* Define if you have the <netinet/tcpip.h> header file. */
536 #undef HAVE_NETINET_TCPIP_H
538 /* Define if you have the <netinet/udp.h> header file. */
539 #undef HAVE_NETINET_UDP_H
541 /* Define if you have the <netinet/udp_var.h> header file. */
542 #undef HAVE_NETINET_UDP_VAR_H
544 /* Define if you have the <netinet6/in6_pcb.h> header file. */
545 #undef HAVE_NETINET6_IN6_PCB_H
547 /* Define if you have the <netinet6/in6_var.h> header file. */
548 #undef HAVE_NETINET6_IN6_VAR_H
550 /* Define if you have the <netinet6/ip6_var.h> header file. */
551 #undef HAVE_NETINET6_IP6_VAR_H
553 /* Define if you have the <netinet6/nd6.h> header file. */
554 #undef HAVE_NETINET6_ND6_H
556 /* Define if you have the <netinet6/tcp6.h> header file. */
557 #undef HAVE_NETINET6_TCP6_H
559 /* Define if you have the <netinet6/tcp6_fsm.h> header file. */
560 #undef HAVE_NETINET6_TCP6_FSM_H
562 /* Define if you have the <netinet6/tcp6_timer.h> header file. */
563 #undef HAVE_NETINET6_TCP6_TIMER_H
565 /* Define if you have the <netinet6/tcp6_var.h> header file. */
566 #undef HAVE_NETINET6_TCP6_VAR_H
568 /* Define if you have the <netipx/ipx.h> header file. */
569 #undef HAVE_NETIPX_IPX_H
571 /* Define if you have the <nlist.h> header file. */
574 /* Define if you have the <openssl/aes.h> header file. */
575 #undef HAVE_OPENSSL_AES_H
577 /* Define if you have the <openssl/des.h> header file. */
578 #undef HAVE_OPENSSL_DES_H
580 /* Define if you have the <openssl/evp.h> header file. */
581 #undef HAVE_OPENSSL_EVP_H
583 /* Define if you have the <openssl/hmac.h> header file. */
584 #undef HAVE_OPENSSL_HMAC_H
586 /* Define if you have the <osreldate.h> header file. */
587 #undef HAVE_OSRELDATE_H
589 /* Define if you have the <pkginfo.h> header file. */
590 #undef HAVE_PKGINFO_H
592 /* Define if you have the <pkglocs.h> header file. */
593 #undef HAVE_PKGLOCS_H
595 /* Define if you have the <pthread.h> header file. */
596 #undef HAVE_PTHREAD_H
598 /* Define if you have the <pwd.h> header file. */
601 /* Define if you have the <regex.h> header file. */
604 /* Define if you have the <rpmio.h> header file. */
607 /* Define if you have the <search.h> header file. */
610 /* Define if you have the <sgtty.h> header file. */
613 /* Define if you have the <stdarg.h> header file. */
616 /* Define if you have the <stdlib.h> header file. */
619 /* Define if you have the <string.h> header file. */
622 /* Define if you have the <sys/cdefs.h> header file. */
623 #undef HAVE_SYS_CDEFS_H
625 /* Define if you have the <sys/conf.h> header file. */
626 #undef HAVE_SYS_CONF_H
628 /* Define if you have the <sys/dir.h> header file. */
629 #undef HAVE_SYS_DIR_H
631 /* Define if you have the <sys/diskio.h> header file. */
632 #undef HAVE_SYS_DISKIO_H
634 /* Define if you have the <sys/dkio.h> header file. */
635 #undef HAVE_SYS_DKIO_H
637 /* Define if you have the <sys/dmap.h> header file. */
638 #undef HAVE_SYS_DMAP_H
640 /* Define if you have the <sys/file.h> header file. */
641 #undef HAVE_SYS_FILE_H
643 /* Define if you have the <sys/filio.h> header file. */
644 #undef HAVE_SYS_FILIO_H
646 /* Define if you have the <sys/fixpoint.h> header file. */
647 #undef HAVE_SYS_FIXPOINT_H
649 /* Define if you have the <sys/fs.h> header file. */
652 /* Define if you have the <sys/hashing.h> header file. */
653 #undef HAVE_SYS_HASHING_H
655 /* Define if you have the <sys/ioctl.h> header file. */
656 #undef HAVE_SYS_IOCTL_H
658 /* Define if you have the <sys/loadavg.h> header file. */
659 #undef HAVE_SYS_LOADAVG_H
661 /* Define if you have the <sys/mbuf.h> header file. */
662 #undef HAVE_SYS_MBUF_H
664 /* Define if you have the <sys/mntent.h> header file. */
665 #undef HAVE_SYS_MNTENT_H
667 /* Define if you have the <sys/mnttab.h> header file. */
668 #undef HAVE_SYS_MNTTAB_H
670 /* Define if you have the <sys/mount.h> header file. */
671 #undef HAVE_SYS_MOUNT_H
673 /* Define if you have the <sys/ndir.h> header file. */
674 #undef HAVE_SYS_NDIR_H
676 /* Define if you have the <sys/param.h> header file. */
677 #undef HAVE_SYS_PARAM_H
679 /* Define if you have the <sys/pool.h> header file. */
680 #undef HAVE_SYS_POOL_H
682 /* Define if you have the <sys/proc.h> header file. */
683 #undef HAVE_SYS_PROC_H
685 /* Define if you have the <sys/protosw.h> header file. */
686 #undef HAVE_SYS_PROTOSW_H
688 /* Define if you have the <sys/pstat.h> header file. */
689 #undef HAVE_SYS_PSTAT_H
691 /* Define if you have the <sys/queue.h> header file. */
692 #undef HAVE_SYS_QUEUE_H
694 /* Define if you have the <sys/select.h> header file. */
695 #undef HAVE_SYS_SELECT_H
697 /* Define if you have the <sys/socket.h> header file. */
698 #undef HAVE_SYS_SOCKET_H
700 /* Define if you have the <sys/socketvar.h> header file. */
701 #undef HAVE_SYS_SOCKETVAR_H
703 /* Define if you have the <sys/sockio.h> header file. */
704 #undef HAVE_SYS_SOCKIO_H
706 /* Define if you have the <sys/stat.h> header file. */
707 #undef HAVE_SYS_STAT_H
709 /* Define if you have the <sys/statfs.h> header file. */
710 #undef HAVE_SYS_STATFS_H
712 /* Define if you have the <sys/statvfs.h> header file. */
713 #undef HAVE_SYS_STATVFS_H
715 /* Define if you have the <sys/stream.h> header file. */
716 #undef HAVE_SYS_STREAM_H
718 /* Define if you have the <sys/swap.h> header file. */
719 #undef HAVE_SYS_SWAP_H
721 /* Define if you have the <sys/sysctl.h> header file. */
722 #undef HAVE_SYS_SYSCTL_H
724 /* Define if you have the <sys/sysmp.h> header file. */
725 #undef HAVE_SYS_SYSMP_H
727 /* Define if you have the <sys/tcpipstats.h> header file. */
728 #undef HAVE_SYS_TCPIPSTATS_H
730 /* Define if you have the <sys/time.h> header file. */
731 #undef HAVE_SYS_TIME_H
733 /* Define if you have the <sys/un.h> header file. */
736 /* Define if you have the <sys/user.h> header file. */
737 #undef HAVE_SYS_USER_H
739 /* Define if you have the <sys/utsname.h> header file. */
740 #undef HAVE_SYS_UTSNAME_H
742 /* Define if you have the <sys/vfs.h> header file. */
743 #undef HAVE_SYS_VFS_H
745 /* Define if you have the <sys/vm.h> header file. */
748 /* Define if you have the <sys/vmmac.h> header file. */
749 #undef HAVE_SYS_VMMAC_H
751 /* Define if you have the <sys/vmmeter.h> header file. */
752 #undef HAVE_SYS_VMMETER_H
754 /* Define if you have the <sys/vmparam.h> header file. */
755 #undef HAVE_SYS_VMPARAM_H
757 /* Define if you have the <sys/vmsystm.h> header file. */
758 #undef HAVE_SYS_VMSYSTM_H
760 /* Define if you have the <sys/vnode.h> header file. */
761 #undef HAVE_SYS_VNODE_H
763 /* Define if you have the <syslog.h> header file. */
766 /* Define if you have the <ufs/ffs/fs.h> header file. */
767 #undef HAVE_UFS_FFS_FS_H
769 /* Define if you have the <ufs/fs.h> header file. */
772 /* Define if you have the <ufs/ufs/dinode.h> header file. */
773 #undef HAVE_UFS_UFS_DINODE_H
775 /* Define if you have the <ufs/ufs/inode.h> header file. */
776 #undef HAVE_UFS_UFS_INODE_H
778 /* Define if you have the <ufs/ufs/quota.h> header file. */
779 #undef HAVE_UFS_UFS_QUOTA_H
781 /* Define if you have the <unistd.h> header file. */
784 /* Define if you have the <utmpx.h> header file. */
787 /* Define if you have the <utsname.h> header file. */
788 #undef HAVE_UTSNAME_H
790 /* Define if you have the <uvm/uvm_extern.h> header file. */
791 #undef HAVE_UVM_UVM_EXTERN_H
793 /* Define if you have the <uvm/uvm_param.h> header file. */
794 #undef HAVE_UVM_UVM_PARAM_H
796 /* Define if you have the <vm/swap_pager.h> header file. */
797 #undef HAVE_VM_SWAP_PAGER_H
799 /* Define if you have the <vm/vm.h> header file. */
802 /* Define if you have the <vm/vm_extern.h> header file. */
803 #undef HAVE_VM_VM_EXTERN_H
805 /* Define if you have the <vm/vm_param.h> header file. */
806 #undef HAVE_VM_VM_PARAM_H
808 /* Define if you have the <winsock.h> header file. */
809 #undef HAVE_WINSOCK_H
811 /* Define if you have the <xti.h> header file. */
814 /* Define if you have the RSAglue library (-lRSAglue). */
815 #undef HAVE_LIBRSAGLUE
817 /* Define if you have the crypto library (-lcrypto). */
818 #undef HAVE_LIBCRYPTO
820 /* Define if you have the dl library (-ldl). */
823 /* Define if you have the efence library (-lefence). */
824 #undef HAVE_LIBEFENCE
826 /* Define if you have the elf library (-lelf). */
829 /* Define if you have the kstat library (-lkstat). */
832 /* Define if you have the kvm library (-lkvm). */
835 /* Define if you have the m library (-lm). */
838 /* Define if you have the mld library (-lmld). */
841 /* Define if you have the nsl library (-lnsl). */
844 /* Define if you have the rsaref library (-lrsaref). */
845 #undef HAVE_LIBRSAREF
847 /* Define if you have the z library (-lz). */
850 /* define if you have getdevs() */
853 /* define if you have <netinet/in_pcb.h> */
854 #undef HAVE_NETINET_IN_PCB_H
856 /* define if you have <sys/disklabel.h> */
857 #undef HAVE_SYS_DISKLABEL_H
859 /* define if you are using linux and /proc/net/dev has the compressed
860 field, which exists in linux kernels 2.2 and greater. */
861 #undef PROC_NET_DEV_HAS_COMPRESSED
863 /* define rtentry to ortentry on SYSV machines (alphas) */
866 /* Use BSD 4.4 routing table entries? */
869 /* Does struct sigaction have a sa_sigaction field? */
870 #undef STRUCT_SIGACTION_HAS_SA_SIGACTION
872 /* Does struct sockaddr have a sa_len field? */
873 #undef STRUCT_SOCKADDR_HAS_SA_LEN
875 /* Does struct sockaddr have a sa_family2 field? */
876 #undef STRUCT_SOCKADDR_HAS_SA_UNION_SA_GENERIC_SA_FAMILY2
878 /* rtentry structure tests */
879 #undef RTENTRY_RT_NEXT
880 #undef STRUCT_RTENTRY_HAS_RT_DST
881 #undef STRUCT_RTENTRY_HAS_RT_UNIT
882 #undef STRUCT_RTENTRY_HAS_RT_USE
883 #undef STRUCT_RTENTRY_HAS_RT_REFCNT
884 #undef STRUCT_RTENTRY_HAS_RT_HASH
886 /* ifnet structure tests */
887 #undef STRUCT_IFNET_HAS_IF_BAUDRATE
888 #undef STRUCT_IFNET_HAS_IF_BAUDRATE_IFS_VALUE
889 #undef STRUCT_IFNET_HAS_IF_SPEED
890 #undef STRUCT_IFNET_HAS_IF_TYPE
891 #undef STRUCT_IFNET_HAS_IF_IMCASTS
892 #undef STRUCT_IFNET_HAS_IF_IQDROPS
893 #undef STRUCT_IFNET_HAS_IF_LASTCHANGE_TV_SEC
894 #undef STRUCT_IFNET_HAS_IF_NOPROTO
895 #undef STRUCT_IFNET_HAS_IF_OMCASTS
896 #undef STRUCT_IFNET_HAS_IF_XNAME
897 #undef STRUCT_IFNET_HAS_IF_OBYTES
898 #undef STRUCT_IFNET_HAS_IF_IBYTES
899 #undef STRUCT_IFNET_HAS_IF_ADDRLIST
901 /* tcpstat.tcps_rcvmemdrop */
902 #undef STRUCT_TCPSTAT_HAS_TCPS_RCVMEMDROP
904 /* udpstat.udps_discard */
905 #undef STRUCT_UDPSTAT_HAS_UDPS_DISCARD
907 /* udpstat.udps_discard */
908 #undef STRUCT_UDPSTAT_HAS_UDPS_NOPORT
910 /* udpstat.udps_discard */
911 #undef STRUCT_UDPSTAT_HAS_UDPS_NOPORTBCAST
913 /* udpstat.udps_discard */
914 #undef STRUCT_UDPSTAT_HAS_UDPS_FULLSOCK
917 #undef STRUCT_ARPHD_HAS_AT_NEXT
919 /* ifaddr.ifa_next */
920 #undef STRUCT_IFADDR_HAS_IFA_NEXT
923 #undef STRUCT_IFNET_HAS_IF_MTU
925 /* swdevt.sw_nblksenabled */
926 #undef STRUCT_SWDEVT_HAS_SW_NBLKSENABLED
929 #undef STRUCT_NLIST_HAS_N_VALUE
931 /* ipstat structure tests */
932 #undef STRUCT_IPSTAT_HAS_IPS_CANTFORWARD
933 #undef STRUCT_IPSTAT_HAS_IPS_CANTFRAG
934 #undef STRUCT_IPSTAT_HAS_IPS_DELIVERED
935 #undef STRUCT_IPSTAT_HAS_IPS_FRAGDROPPED
936 #undef STRUCT_IPSTAT_HAS_IPS_FRAGTIMEOUT
937 #undef STRUCT_IPSTAT_HAS_IPS_LOCALOUT
938 #undef STRUCT_IPSTAT_HAS_IPS_NOPROTO
939 #undef STRUCT_IPSTAT_HAS_IPS_NOROUTE
940 #undef STRUCT_IPSTAT_HAS_IPS_ODROPPED
941 #undef STRUCT_IPSTAT_HAS_IPS_OFRAGMENTS
942 #undef STRUCT_IPSTAT_HAS_IPS_REASSEMBLED
944 /* vfsstat.f_frsize */
945 #undef STRUCT_STATVFS_HAS_F_FRSIZE
947 /* vfsstat.f_files */
948 #undef STRUCT_STATVFS_HAS_F_FILES
950 /* statfs inode structure tests*/
951 #undef STRUCT_STATFS_HAS_F_FILES
952 #undef STRUCT_STATFS_HAS_F_FFREE
953 #undef STRUCT_STATFS_HAS_F_FAVAIL
955 /* des_ks_struct.weak_key */
956 #undef STRUCT_DES_KS_STRUCT_HAS_WEAK_KEY
958 /* ifnet needs to have _KERNEL defined */
959 #undef IFNET_NEEDS_KERNEL
961 /* sysctl works to get boottime, etc... */
962 #undef CAN_USE_SYSCTL
964 /* type check for in_addr_t */
967 /* define if SIOCGIFADDR exists in sys/ioctl.h */
968 #undef SYS_IOCTL_H_HAS_SIOCGIFADDR
970 /* define if your compiler (processor) defines __FUNCTION__ for you */
971 #undef HAVE_CPP_UNDERBAR_FUNCTION_DEFINED
973 /* Mib-2 tree Info */
974 /* These are the system information variables. */
976 #define VERS_DESC "unknown" /* overridden at run time */
977 #define SYS_NAME "unknown" /* overridden at run time */
979 /* comment out the second define to turn off functionality for any of
980 these: (See README for details) */
982 /* proc PROCESSNAME [MAX] [MIN] */
985 /* exec/shell NAME COMMAND */
986 #define SHELLMIBNUM 8
991 /* disk DISK MINSIZE */
995 #define LOADAVEMIBNUM 10
997 /* which version are you using? This mibloc will tell you */
998 #define VERSIONMIBNUM 100
1000 /* Reports errors the agent runs into */
1001 /* (typically its "can't fork, no mem" problems) */
1002 #define ERRORMIBNUM 101
1004 /* The sub id of EXENSIBLEMIB returned to queries of
1005 .iso.org.dod.internet.mgmt.mib-2.system.sysObjectID.0 */
1008 /* This ID is returned after the AGENTID above. IE, the resulting
1009 value returned by a query to sysObjectID is
1010 EXTENSIBLEMIB.AGENTID.???, where ??? is defined below by OSTYPE */
1023 #define OPENBSDID 12
1026 #define UNKNOWNID 255
1029 #define OSTYPE HPUX9ID
1032 #define OSTYPE HPUX10ID
1035 #define OSTYPE HPUX11ID
1038 #define OSTYPE SUNOS4ID
1041 #define OSTYPE SOLARISID
1043 #if defined(osf3) || defined(osf4)
1044 #define OSTYPE OSFID
1047 #define OSTYPE ULTRIXID
1050 #define OSTYPE NETBSD1ID
1053 #define OSTYPE FREEBSDID
1055 #if defined(irix6) || defined(irix5)
1056 #define OSTYPE IRIXID
1059 #define OSTYPE LINUXID
1061 #if defined(bsdi2) || defined(bsdi3) || defined(bsdi4)
1062 #define OSTYPE BSDIID
1065 #define OSTYPE OPENBSDID
1069 #define OSTYPE UNKNOWNID
1072 /* The enterprise number has been assigned by the IANA group. */
1073 /* Optionally, this may point to the location in the tree your */
1074 /* company/organization has been allocated. */
1075 /* The assigned enterprise number for the NET_SNMP MIB modules. */
1076 #define ENTERPRISE_OID 8072
1077 #define ENTERPRISE_MIB 1,3,6,1,4,1,8072
1078 #define ENTERPRISE_DOT_MIB 1.3.6.1.4.1.8072
1079 #define ENTERPRISE_DOT_MIB_LENGTH 7
1081 /* The assigned enterprise number for sysObjectID. */
1082 #define SYSTEM_MIB 1,3,6,1,4,1,8072,3,2,OSTYPE
1083 #define SYSTEM_DOT_MIB 1.3.6.1.4.1.8072.3.2.OSTYPE
1084 #define SYSTEM_DOT_MIB_LENGTH 10
1086 /* The assigned enterprise number for notifications. */
1087 #define NOTIFICATION_MIB 1,3,6,1,4,1,8072,4
1088 #define NOTIFICATION_DOT_MIB 1.3.6.1.4.1.8072.4
1089 #define NOTIFICATION_DOT_MIB_LENGTH 8
1091 /* this is the location of the ucdavis mib tree. It shouldn't be
1092 changed, as the places it is used are expected to be constant
1093 values or are directly tied to the UCD-SNMP-MIB. */
1094 #define UCDAVIS_OID 2021
1095 #define UCDAVIS_MIB 1,3,6,1,4,1,2021
1096 #define UCDAVIS_DOT_MIB 1.3.6.1.4.1.2021
1097 #define UCDAVIS_DOT_MIB_LENGTH 7
1099 /* how long to wait (seconds) for error querys before reseting the error trap.*/
1100 #define ERRORTIMELENGTH 600
1102 /* Exec command to fix PROC problems */
1103 /* %s will be replaced by the process name in error */
1105 /* #define PROCFIXCMD "/usr/bin/perl /local/scripts/fixproc %s" */
1107 /* Exec command to fix EXEC problems */
1108 /* %s will be replaced by the exec/script name in error */
1110 /* #define EXECFIXCMD "/usr/bin/perl /local/scripts/fixproc %s" */
1112 /* Should exec output Cashing be used (speeds up things greatly), and
1113 if so, After how many seconds should the cache re-newed? Note:
1114 Don't define CASHETIME to disable cashing completely */
1116 #define EXCACHETIME 30
1117 #define CACHEFILE ".snmp-exec-cache"
1118 #define MAXCACHESIZE (200*80) /* roughly 200 lines max */
1120 #define MAXDISKS 50 /* can't scan more than this number */
1124 /* default of 100 meg minimum if the minimum size is not specified in
1126 #define DEFDISKMINIMUMSPACE 100000
1128 #define DEFMAXLOADAVE 12.0 /* default maximum load average before error */
1130 #define MAXREADCOUNT 100 /* max times to loop reading output from
1131 execs. Because of sleep(1)s, this will also
1132 be time to wait (in seconds) for exec to finish */
1134 #define SNMPBLOCK 1 /* Set to 1 if you want snmpgets to block and never
1135 timeout. Original CMU code had this
1136 hardcoded into the code as = 1 */
1138 #define RESTARTSLEEP 5 /* How long to wait after a snmpset to
1139 EXTENSIBLEMIB.VERSIONMIBNUM.VERRESTARTAGENT
1140 before restarting the agent. This is
1141 necessary to finish the snmpset reply
1142 before restarting. */
1144 /* Number of community strings to store */
1145 #define NUM_COMMUNITIES 5
1147 /* UNdefine to allow specifying zero-length community string */
1148 /* #define NO_ZEROLENGTH_COMMUNITY 1 */
1150 /* #define EXIT_ON_BAD_KLREAD */
1151 /* define to exit the agent on a bad kernel read */
1153 #define LASTFIELD -1 /* internal define */
1155 /* configure options specified */
1156 #define CONFIGURE_OPTIONS ""
1158 /* got socklen_t? */
1159 #undef HAVE_SOCKLEN_T
1161 /* got in_addr_t? */
1162 #undef HAVE_IN_ADDR_T
1166 # define strchr index
1167 # define strrchr rindex
1173 # define index strchr
1174 # define rindex strrchr
1180 # define memcpy(d, s, n) bcopy ((s), (d), (n))
1181 # define memmove(d, s, n) bcopy ((s), (d), (n))
1182 # define memcmp bcmp
1186 #ifndef HAVE_MEMMOVE
1188 # define memmove memcpy
1194 # define bcopy(s, d, n) memcpy ((d), (s), (n))
1195 # define bzero(p,n) memset((p),(0),(n))
1196 # define bcmp memcmp
1200 /* If you have openssl 0.9.7 or above, you likely have AES support. */
1202 #if defined(USE_OPENSSL) && defined(HAVE_OPENSSL_AES_H) && defined(HAVE_AES_CFB128_ENCRYPT)
1206 /* define random functions */
1210 #define random lrand48
1211 #define srandom(s) srand48(s)
1215 #define srandom(s) srand(s)
1220 /* define signal if DNE */
1224 #define signal(a,b) sigset(a,b)
1228 /* define if you have librpm and libdb */
1232 /* define if you have pkginfo */
1235 /* define if you have gethostbyname */
1236 #undef HAVE_GETHOSTBYNAME
1238 /* define if you have getservbyname */
1239 #undef HAVE_GETSERVBYNAME
1241 /* printing system */
1244 #undef HAVE_PRINTCAP
1246 /* Pluggable transports. */
1248 /* This is defined if support for the UDP/IP transport domain is
1250 #undef SNMP_TRANSPORT_UDP_DOMAIN
1252 /* This is defined if support for the TCP/IP transport domain is
1254 #undef SNMP_TRANSPORT_TCP_DOMAIN
1256 /* This is defined if support for the Unix transport domain
1257 (a.k.a. "local IPC") is available. */
1258 #undef SNMP_TRANSPORT_UNIX_DOMAIN
1260 /* This is defined if support for the AAL5 PVC transport domain is
1262 #undef SNMP_TRANSPORT_AAL5PVC_DOMAIN
1264 /* This is defined if support for the IPX transport domain is
1266 #undef SNMP_TRANSPORT_IPX_DOMAIN
1268 /* This is defined if support for the UDP/IPv6 transport domain is
1270 #undef SNMP_TRANSPORT_UDPIPV6_DOMAIN
1272 /* This is defined if support for the TCP/IPv6 transport domain is
1274 #undef SNMP_TRANSPORT_TCPIPV6_DOMAIN
1276 /* define this if the USM security module is available */
1277 #undef SNMP_SECMOD_USM
1279 /* define this if the KSM (kerberos based snmp) security module is available */
1280 #undef SNMP_SECMOD_KSM
1282 /* define this if we're using the new MIT crypto API */
1283 #undef MIT_NEW_CRYPTO
1285 /* define if you want to build with reentrant/threaded code */
1288 /* Not-to-be-compiled macros for use by configure only */
1289 #define config_require(x)
1290 #define config_arch_require(x,y)
1291 #define config_parse_dot_conf(w,x,y,z)
1292 #define config_add_mib(x)
1295 #define ENV_SEPARATOR ";"
1296 #define ENV_SEPARATOR_CHAR ';'
1298 #define ENV_SEPARATOR ":"
1299 #define ENV_SEPARATOR_CHAR ':'
1302 #include SYSTEM_INCLUDE_FILE
1303 #include MACHINE_INCLUDE_FILE
1305 #if defined(HAVE_NLIST) && defined(STRUCT_NLIST_HAS_N_VALUE) && !defined(DONT_USE_NLIST) && !defined(NO_KMEM_USAGE)
1306 #define CAN_USE_NLIST
1310 #define DMALLOC_FUNC_CHECK
1315 #ifndef NETSNMP_INLINE
1316 # define NETSNMP_NO_INLINE
1317 # define NETSNMP_INLINE
1320 #endif /* NET_SNMP_CONFIG_H */