dnscrypto-proxy: Update to release 1.3.0
[tomato.git] / release / src / router / snmp / win32 / config.h
blob1796114dcefcfff04184a7257917e0398ec59964
1 /* config.h: a general config file */
3 #ifdef __cplusplus
4 extern "C" {
5 #endif
7 /* UC-Davis' IANA-assigned enterprise number is 2021 */
8 #define ENTERPRISE_NUMBER 2021
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 */
16 #define DEFAULT_MIBS "IP-MIB;IF-MIB;TCP-MIB;UDP-MIB;SNMPv2-MIB;RFC1213-MIB;UCD-SNMP-MIB;UCD-DEMO-MIB;SNMP-TARGET-MIB;SNMP-VIEW-BASED-ACM-MIB;SNMP-COMMUNITY-MIB;UCD-DLMOD-MIB;SNMP-FRAMEWORK-MIB;SNMP-MPD-MIB;SNMP-USER-BASED-SM-MIB;SNMP-NOTIFICATION-MIB;SNMPv2-TM"
18 /* default location to look for mibs to load using the above tokens
19 and/or those in the MIBS envrionment variable*/
21 #define DEFAULT_MIBDIRS "/USR/MIBS"
23 /* default mib files to load, specified by path. */
25 #undef DEFAULT_MIBFILES
27 /* should we compile to use special opaque types: float, double,
28 counter64, i64, ui64, union? */
29 #define OPAQUE_SPECIAL_TYPES 1
31 /* comment the next line if you are compiling with libsnmp.h
32 and are not using the UC-Davis SNMP library. */
33 #define UCD_SNMP_LIBRARY 1
35 /* define if you want to compile support for both authentication and
36 privacy support. */
37 #define SCAPI_AUTHPRIV 1
39 /* define if you are using the internal MD5 code */
40 #define USE_INTERNAL_MD5 1
42 /* add in recent CMU library extensions (not complete) */
43 #define CMU_COMPATIBLE 1
45 /* should "--" comments in mibs be a comment till the end of the line
46 or also until another "--", the latter being the technically
47 correct. */
48 #undef MIB_COMMENT_IS_EOL_TERMINATED
50 /* debugging stuff */
51 #undef SNMP_NO_DEBUGGING /* if defined, we optimize the code
52 to exclude all debugging calls. */
53 #define SNMP_ALWAYS_DEBUG 0 /* Always print debugging information and
54 ignore the -D flag passed to the cmds */
56 /* Define if using alloca.c. */
57 #undef C_ALLOCA
59 /* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
60 This function is required for alloca.c support on those systems. */
61 #undef CRAY_STACKSEG_END
63 /* Define if you have alloca, as a function or macro. */
64 #undef HAVE_ALLOCA
66 /* Define if you have <alloca.h> and it should be used (not on Ultrix). */
67 #undef HAVE_ALLOCA_H
69 /* Define if you have the getmntent function. */
70 #undef HAVE_GETMNTENT
72 /* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
73 #undef HAVE_SYS_WAIT_H
75 /* Define to `long' if <sys/types.h> doesn't define. */
76 #undef off_t
78 /* Define to `int' if <sys/types.h> doesn't define. */
79 #undef pid_t
81 /* Define as the return type of signal handlers (int or void). */
82 #define RETSIGTYPE void
84 /* Define if you have raise() instead of alarm() */
86 #define HAVE_RAISE 1
88 /* If using the C implementation of alloca, define if you know the
89 direction of stack growth for your system; otherwise it will be
90 automatically deduced at run-time.
91 STACK_DIRECTION > 0 => grows toward higher addresses
92 STACK_DIRECTION < 0 => grows toward lower addresses
93 STACK_DIRECTION = 0 => direction of growth unknown
95 #undef STACK_DIRECTION
97 /* Define if you have the ANSI C header files. */
98 #define STDC_HEADERS 1
100 /* Define if you can safely include both <sys/time.h> and <time.h>. */
101 #define TIME_WITH_SYS_TIME 1
103 /* Define if you have the gettimeofday function. */
104 #undef HAVE_GETTIMEOFDAY
106 /* Define if you have the <sys/time.h> header file. */
107 #undef HAVE_SYS_TIME_H
109 /* Define if your processor stores words with the most significant
110 byte first (like Motorola and SPARC, unlike Intel and VAX). */
111 #undef WORDS_BIGENDIAN
113 #define SNMPDLMODPATH "/USR/LIB/DLMOD"
114 #define SNMPLIBPATH "/USR/LIB"
115 #define SNMPSHAREPATH "/USR/SHARE/SNMP"
116 #define SNMPCONFPATH "/USR"
118 /* SNMPPATH contains (more) important files */
120 #undef SNMPPATH
122 /* LOGFILE: If defined it closes stdout/err/in and opens this in out/err's
123 place. (stdin is closed so that sh scripts won't wait for it) */
125 #undef LOGFILE
127 /* PERSISTENT_DIRECTORY: If defined, the library is capabile of saving
128 persisant information to this directory in the form of configuration
129 lines: PERSISTENT_DIRECTORY/NAME.persistent.conf */
130 #define PERSISTENT_DIRECTORY "/USR/SNMP/PERSIST"
132 #define MAX_PERSISTENT_BACKUPS 10
133 /* default system contact */
134 #define SYS_CONTACT "unknown"
136 /* system location */
137 #define SYS_LOC "unknown"
139 /* location of UNIX kernel */
140 #define KERNEL_LOC "unknown"
142 /* location of mount table list */
143 #define ETC_MNTTAB "unknown"
145 /* location of swap device (ok if not found) */
146 #undef DMEM_LOC
148 /* define rtentry to ortentry on SYSV machines (alphas) */
149 #define RTENTRY rtentry;
151 /* Use BSD 4.4 routing table entries? */
152 #undef RTENTRY_4_4
154 /* Does the rtentry structure have a rt_next node */
155 #undef RTENTRY_RT_NEXT
157 #define PSCMD "/bin/ps"
159 /* Where is the uname command */
160 #define UNAMEPROG "/bin/uname"
162 /* testing code sections. */
163 /* #undef SNMP_TESTING_CODE */
165 /* If you don't have root access don't exit upon kmem errors */
166 #undef NO_ROOT_ACCESS
168 /* Define if you have the bcopy function. */
169 #undef HAVE_BCOPY
171 /* Define if you have the gethostbyname function. */
172 #define HAVE_GETHOSTBYNAME 1
174 /* Define if you have the gethostname function. */
175 #define HAVE_GETHOSTNAME 1
177 /* Define if you have the getloadavg function. */
178 #undef HAVE_GETLOADAVG
180 /* Define if you have the getservbyname function. */
181 #define HAVE_GETSERVBYNAME 1
183 /* Define if you have the setenv function. */
184 #undef HAVE_SETENV
186 /* Define if you have the strtoul function. */
187 #define HAVE_STRTOUL 1
189 /* Define if you have the vsnprintf function. */
190 #define HAVE_VSNPRINTF 1
191 #define HAVE_SNPRINTF 1
193 /* Define if you have the index function. */
194 #undef HAVE_INDEX
196 /* Define if you have the kvm_openfiles function. */
197 #undef HAVE_KVM_OPENFILES
199 /* Define if you have the lrand48 function. */
200 #undef HAVE_LRAND48
202 /* Define if you have the memcpy function. */
203 #define HAVE_MEMCPY 1
205 /* Define if you have the memmove function. */
206 #define HAVE_MEMMOVE 1
208 /* Define if you have the rand function. */
209 #define HAVE_RAND 1
211 /* Define if you have the random function. */
212 #undef HAVE_RANDOM
214 /* Define if you have the select function. */
215 #undef HAVE_SELECT
217 /* Define if you have the setmntent function. */
218 #undef HAVE_SETMNTENT
220 /* Define if you have the sigblock function. */
221 #undef HAVE_SIGBLOCK
223 /* Define if you have the sighold function. */
224 #undef HAVE_SIGHOLD
226 /* Define if you have the signal function. */
227 #undef HAVE_SIGNAL
229 /* Define if you have the sigset function. */
230 #undef HAVE_SIGSET
232 /* Define if you have the socket function. */
233 #define HAVE_SOCKET 1
235 /* Define if you have <winsock.h> header file. */
236 #define HAVE_WINSOCK_H 1
238 /* Define if you have the closesocket function. */
239 #define HAVE_CLOSESOCKET 1
241 /* Define if you have the statfs function. */
242 #undef HAVE_STATFS
244 /* Define if you have the statvfs function. */
245 #undef HAVE_STATVFS
247 /* Define if you have the strchr function. */
248 #define HAVE_STRCHR 1
250 /* use win32 strdup */
251 #define strdup _strdup
253 /* Define if you have the strtol function. */
254 #define HAVE_STRTOL 1
256 /* Define if you have the tcgetattr function. */
257 /* #define HAVE_TCGETATTR 1 */
259 /* Define if you have the uname function. */
260 #undef HAVE_UNAME
262 /* Define if you have <io.h> header file. */
263 #define HAVE_IO_H 1
265 /* Define if you have <process.h> header file. (Win32-getpid) */
266 #define HAVE_PROCESS_H 1
268 /* Define if you have the <arpa/inet.h> header file. */
269 #undef HAVE_ARPA_INET_H
271 /* Define if you have the <dirent.h> header file. */
272 #undef HAVE_DIRENT_H
274 /* Define if you have the <err.h> header file. */
275 #undef HAVE_ERR_H
277 /* Define if you have the <fcntl.h> header file. */
278 #define HAVE_FCNTL_H 1
280 /* Define if you have the <fstab.h> header file. */
281 #undef HAVE_FSTAB_H
283 /* Define if you have the <inet/mib2.h> header file. */
284 #undef HAVE_INET_MIB2_H
286 /* Define if you have the <kstat.h> header file. */
287 #undef HAVE_KSTAT_H
289 /* Define if you have the <kvm.h> header file. */
290 #undef HAVE_KVM_H
292 /* Define if you have the <limits.h> header file. */
293 #define HAVE_LIMITS_H 1
295 /* Define if you have the <machine/param.h> header file. */
296 #undef HAVE_MACHINE_PARAM_H
298 /* Define if you have the <machine/pte.h> header file. */
299 #undef HAVE_MACHINE_PTE_H
301 /* Define if you have the <malloc.h> header file. */
302 #undef HAVE_MALLOC_H
304 /* Define if you have the <mntent.h> header file. */
305 #undef HAVE_MNTENT_H
307 /* Define if you have the <mtab.h> header file. */
308 #undef HAVE_MTAB_H
310 /* Define if you have the <ndir.h> header file. */
311 #undef HAVE_NDIR_H
313 /* Define if you have the <net/if_dl.h> header file. */
314 #undef HAVE_NET_IF_DL_H
316 /* Define if you have the <net/if_types.h> header file. */
317 #undef HAVE_NET_IF_TYPES_H
319 /* Define if you have the <netinet/icmp_var.h> header file. */
320 #undef HAVE_NETINET_ICMP_VAR_H
322 /* Define if you have the <netinet/if_ether.h> header file. */
323 #undef HAVE_NETINET_IF_ETHER_H
325 /* Define if you have the <netinet/in.h> header file. */
326 #undef HAVE_NETINET_IN_H
328 /* Define if you have the <netinet/in_pcb.h> header file. */
329 #undef HAVE_NETINET_IN_PCB_H
331 /* Define if you have the <netinet/in_var.h> header file. */
332 #undef HAVE_NETINET_IN_VAR_H
334 /* Define if you have the <netinet/ip_var.h> header file. */
335 #undef HAVE_NETINET_IP_VAR_H
337 /* Define if you have the <netinet/tcp_fsm.h> header file. */
338 #undef HAVE_NETINET_TCP_FSM_H
340 /* Define if you have the <netinet/tcp_timer.h> header file. */
341 #undef HAVE_NETINET_TCP_TIMER_H
343 /* Define if you have the <netinet/tcp_var.h> header file. */
344 #undef HAVE_NETINET_TCP_VAR_H
346 /* Define if you have the <netinet/tcpip.h> header file. */
347 #undef HAVE_NETINET_TCPIP_H
349 /* Define if you have the <netinet/udp_var.h> header file. */
350 #undef HAVE_NETINET_UDP_VAR_H
352 /* Define if you have the <sgtty.h> header file. */
353 #undef HAVE_SGTTY_H
355 /* Define if you have the <stdarg.h> header file. */
356 #define HAVE_STDARG_H 1
358 /* Define if you have the <stdlib.h> header file. */
359 #define HAVE_STDLIB_H 1
361 /* Define if you have the <string.h> header file. */
362 #define HAVE_STRING_H 1
364 /* Define if you have the <sys/conf.h> header file. */
365 #undef HAVE_SYS_CONF_H
367 /* Define if you have the <sys/dir.h> header file. */
368 #undef HAVE_SYS_DIR_H
370 /* Define if you have the <sys/dmap.h> header file. */
371 #undef HAVE_SYS_DMAP_H
373 /* Define if you have the <sys/file.h> header file. */
374 #undef HAVE_SYS_FILE_H
376 /* Define if you have the <sys/filio.h> header file. */
377 #undef HAVE_SYS_FILIO_H
379 /* Define if you have the <sys/fixpoint.h> header file. */
380 #undef HAVE_SYS_FIXPOINT_H
382 /* Define if you have the <sys/fs.h> header file. */
383 #undef HAVE_SYS_FS_H
385 /* Define if you have the <sys/stat.h> header file. */
386 #define HAVE_SYS_STAT_H 1
388 /* Define if you have the <sys/hashing.h> header file. */
389 #undef HAVE_SYS_HASHING_H
391 /* Define if you have the <sys/ioctl.h> header file. */
392 #undef HAVE_SYS_IOCTL_H
394 /* Define if you have the <sys/mbuf.h> header file. */
395 #undef HAVE_SYS_MBUF_H
397 /* Define if you have the <sys/mnttab.h> header file. */
398 #undef HAVE_SYS_MNTTAB_H
400 /* Define if you have the <sys/mount.h> header file. */
401 #undef HAVE_SYS_MOUNT_H
403 /* Define if you have the <sys/ndir.h> header file. */
404 #undef HAVE_SYS_NDIR_H
406 /* Define if you have the <sys/param.h> header file. */
407 #undef HAVE_SYS_PARAM_H
409 /* Define if you have the <sys/proc.h> header file. */
410 #undef HAVE_SYS_PROC_H
412 /* Define if you have the <sys/protosw.h> header file. */
413 #undef HAVE_SYS_PROTOSW_H
415 /* Define if you have the <sys/select.h> header file. */
416 #undef HAVE_SYS_SELECT_H
418 /* Define if you have the <sys/sockio.h> header file. */
419 #undef HAVE_SYS_SOCKIO_H
421 /* Define if you have the <sys/statvfs.h> header file. */
422 #undef HAVE_SYS_STATVFS_H
424 /* Define if you have the <sys/swap.h> header file. */
425 #undef HAVE_SYS_SWAP_H
427 /* Define if you have the <sys/sysctl.h> header file. */
428 #undef HAVE_SYS_SYSCTL_H
430 /* Define if you have the <sys/tcpipstats.h> header file. */
431 #undef HAVE_SYS_TCPIPSTATS_H
433 /* Define if you have the <sys/user.h> header file. */
434 #undef HAVE_SYS_USER_H
436 /* Define if you have the <sys/utsname.h> header file. */
437 #undef HAVE_SYS_UTSNAME_H
439 /* Define if you have the <sys/vfs.h> header file. */
440 #undef HAVE_SYS_VFS_H
442 /* Define if you have the <sys/vm.h> header file. */
443 #undef HAVE_SYS_VM_H
445 /* Define if you have the <sys/vmmac.h> header file. */
446 #undef HAVE_SYS_VMMAC_H
448 /* Define if you have the <sys/vmmeter.h> header file. */
449 #undef HAVE_SYS_VMMETER_H
451 /* Define if you have the <sys/vmparam.h> header file. */
452 #undef HAVE_SYS_VMPARAM_H
454 /* Define if you have the <sys/vmsystm.h> header file. */
455 #undef HAVE_SYS_VMSYSTM_H
457 /* Define if you have the <syslog.h> header file. */
458 #undef HAVE_SYSLOG_H
460 #ifndef LOG_DAEMON
461 #define LOG_DAEMON (3<<3) /* system daemons */
462 #endif
464 /* Define if you have the <ufs/ffs/fs.h> header file. */
465 #undef HAVE_UFS_FFS_FS_H
467 /* Define if you have the <ufs/fs.h> header file. */
468 #undef HAVE_UFS_FS_H
470 /* Define if you have the <ufs/ufs/dinode.h> header file. */
471 #undef HAVE_UFS_UFS_DINODE_H
473 /* Define if you have the <unistd.h> header file. */
474 #undef HAVE_UNISTD_H
476 /* Define if you have the <utsname.h> header file. */
477 #undef HAVE_UTSNAME_H
479 /* Define if you have the <vm/swap_pager.h> header file. */
480 #undef HAVE_VM_SWAP_PAGER_H
482 /* Define if you have the <vm/vm.h> header file. */
483 #undef HAVE_VM_VM_H
485 /* Define if you have the <xti.h> header file. */
486 #undef HAVE_XTI_H
488 /* Define if you have the crypto library (-lcrypto). */
489 #undef HAVE_LIBCRYPTO
491 /* Define if you have the elf library (-lelf). */
492 #undef HAVE_LIBELF
494 /* Define if you have the kstat library (-lkstat). */
495 #undef HAVE_LIBKSTAT
497 /* Define if you have the kvm library (-lkvm). */
498 #undef HAVE_LIBKVM
500 /* Define if you have the m library (-lm). */
501 #undef HAVE_LIBM
503 /* Define if you have the mld library (-lmld). */
504 #undef HAVE_LIBMLD
506 /* Define if you have the nsl library (-lnsl). */
507 #undef HAVE_LIBNSL
509 /* Define if you have the socket library (-lsocket). */
510 #undef HAVE_LIBSOCKET
512 /* ifnet structure tests */
513 #undef STRUCT_IFNET_HAS_IF_BAUDRATE
514 #undef STRUCT_IFNET_HAS_IF_TYPE
515 #undef STRUCT_IFNET_HAS_IF_IMCASTS
516 #undef STRUCT_IFNET_HAS_IF_IQDROPS
517 #undef STRUCT_IFNET_HAS_IF_LASTCHANGE_TV_SEC
518 #undef STRUCT_IFNET_HAS_IF_NOPROTO
519 #undef STRUCT_IFNET_HAS_IF_OMCASTS
520 #undef STRUCT_IFNET_HAS_IF_XNAME
521 #undef STRUCT_IFNET_HAS_IF_OBYTES
522 #undef STRUCT_IFNET_HAS_IF_IBYTES
523 #undef STRUCT_IFNET_HAS_IF_ADDRLIST
525 /* tcpstat.tcps_rcvmemdrop */
526 #undef STRUCT_TCPSTAT_HAS_TCPS_RCVMEMDROP
528 /* udpstat.udps_discard */
529 #undef STRUCT_UDPSTAT_HAS_UDPS_DISCARD
531 /* arphd.at_next */
532 #undef STRUCT_ARPHD_HAS_AT_NEXT
534 /* ifaddr.ifa_next */
535 #undef STRUCT_IFADDR_HAS_IFA_NEXT
537 /* ifnet.if_mtu */
538 #undef STRUCT_IFNET_HAS_IF_MTU
540 /* ifnet needs to have _KERNEL defined */
541 #undef IFNET_NEEDS_KERNEL
543 /* sysctl works to get boottime, etc... */
544 #undef CAN_USE_SYSCTL
546 /* define if your compiler (processor) defines __FUNCTION__ for you */
547 #undef HAVE_CPP_UNDERBAR_FUNCTION_DEFINED
549 /* mib pointer to the top of the extensible tree. This has been
550 assigned to UCDavis by the iana group. Optionally, point this to the
551 location in the tree your company/organization has been allocated. */
553 /* location of the extensible mib tree */
554 #define EXTENSIBLEMIB 1,3,6,1,4,1,2021
555 /* location of the extensible mib tree */
556 #define EXTENSIBLEDOTMIB 1.3.6.1.4.1.2021
557 /* count the above numbers */
558 #define EXTENSIBLENUM 7
560 /* the ErrorFlag is V1 accessable because HP Openview does not support
561 V2. You can make this list of pairs as long as you want, just make
562 sure to end it in -1.*/
564 #define SECURITYEXCEPTIONS {100,SNMPV1,-1} /* the ErrorFlag is V1 */
566 /* Mib-2 tree Info */
567 /* These are the system information variables. */
569 #define VERS_DESC "unknown" /* overridden at run time */
570 #define SYS_NAME "unknown" /* overridden at run time */
572 /* comment out the second define to turn off functionality for any of
573 these: (See README for details) */
575 /* proc PROCESSNAME [MAX] [MIN] */
576 #define PROCMIBNUM 2
577 #define USEPROCMIB
579 /* exec/shell NAME COMMAND */
580 #define SHELLMIBNUM 8
581 #define USESHELLMIB
583 /* swap MIN */
584 #define MEMMIBNUM 4
585 #if defined(hpux9) || defined(bsdi2)
586 #define USEMEMMIB
587 #endif
589 /* disk DISK MINSIZE */
590 #define DISKMIBNUM 9
591 #if (HAVE_FSTAB_H || HAVE_SYS_STATVFS_H)
592 #define USEDISKMIB
593 #endif
595 /* load 1 5 15 */
596 #define LOADAVEMIBNUM 10
597 #define USELOADAVEMIB
599 /* pass MIBOID command */
600 #define USEPASSMIB
602 /* which version are you using? This mibloc will tell you */
603 #define VERSIONMIBNUM 100
604 #define USEVERSIONMIB
606 /* Reports errors the agent runs into */
607 /* (typically its "can't fork, no mem" problems) */
608 #define ERRORMIBNUM 101
609 #define USEERRORMIB
611 /* The sub id of EXENSIBLEMIB returned to queries of
612 .iso.org.dod.internet.mgmt.mib-2.system.sysObjectID.0 */
613 #define AGENTID 250
615 /* This ID is returned after the AGENTID above. IE, the resulting
616 value returned by a query to sysObjectID is
617 EXTENSIBLEMIB.AGENTID.???, where ??? is defined below by OSTYPE */
619 #define HPUX9ID 1
620 #define SUNOS4ID 2
621 #define SOLARISID 3
622 #define OSFID 4
623 #define ULTRIXID 5
624 #define HPUX10ID 6
625 #define NETBSD1ID 7
626 #define FREEBSDID 8
627 #define IRIXID 9
628 #define LINUXID 10
629 #define BSDIID 11
630 #define OPENBSDID 12
631 #define UNKNOWNID 255
633 #ifdef hpux9
634 #define OSTYPE HPUX9ID
635 #endif
636 #ifdef hpux10
637 #define OSTYPE HPUX10ID
638 #endif
639 #ifdef sunos4
640 #define OSTYPE SUNOS4ID
641 #endif
642 #ifdef solaris2
643 #define OSTYPE SOLARISID
644 #endif
645 #if defined(osf3) || defined(osf4)
646 #define OSTYPE OSFID
647 #endif
648 #ifdef ultrix4
649 #define OSTYPE ULTRIXID
650 #endif
651 #ifdef netbsd1
652 #define OSTYPE NETBSD1ID
653 #endif
654 #ifdef freebsd2
655 #define OSTYPE FREEBSDID
656 #endif
657 #if defined(irix6) || defined(irix5)
658 #define OSTYPE IRIXID
659 #endif
660 #ifdef linux
661 #define OSTYPE LINUXID
662 #endif
663 #if defined(bsdi2) || defined(bsdi3)
664 #define OSTYPE BSDIID
665 #endif
666 #ifdef openbsd2
667 #define OSTYPE OPENBSDID
668 #endif
669 /* unknown */
670 #ifndef OSTYPE
671 #define OSTYPE UNKNOWNID
672 #endif
674 /* The enterprise number has been assigned by the IANA group. */
675 /* Optionally, this may point to the location in the tree your */
676 /* company/organization has been allocated. */
677 /* The assigned enterprise number for the NET_SNMP MIB modules. */
678 #define ENTERPRISE_OID 8072
679 #define ENTERPRISE_MIB 1,3,6,1,4,1,8072
680 #define ENTERPRISE_DOT_MIB 1.3.6.1.4.1.8072
681 #define ENTERPRISE_DOT_MIB_LENGTH 7
683 /* The assigned enterprise number for sysObjectID. */
684 #define SYSTEM_MIB 1,3,6,1,4,1,2021,AGENTID,OSTYPE
685 #define SYSTEM_DOT_MIB 1.3.6.1.4.1.2021.AGENTID.OSTYPE
686 #define SYSTEM_DOT_MIB_LENGTH 9
688 /* The assigned enterprise number for notifications. */
689 #define NOTIFICATION_MIB 1,3,6,1,4,1,2021,251
690 #define NOTIFICATION_DOT_MIB 1.3.6.1.4.1.2021.251
691 #define NOTIFICATION_DOT_MIB_LENGTH 8
693 /* this is the location of the ucdavis mib tree. It shouldn't be
694 changed, as the places it is used are expected to be constant
695 values or are directly tied to the UCD-SNMP-MIB. */
696 #define UCDAVIS_OID 2021
697 #define UCDAVIS_MIB 1,3,6,1,4,1,2021
698 #define UCDAVIS_DOT_MIB 1.3.6.1.4.1.2021
699 #define UCDAVIS_DOT_MIB_LENGTH 7
701 /* how long to wait (seconds) for error querys before reseting the error trap.*/
702 #define ERRORTIMELENGTH 600
704 /* Exec command to fix PROC problems */
705 /* %s will be replaced by the process name in error */
707 #define PROCFIXCMD "/usr/local/bin/perl /local/scripts/fixproc %s"
709 /* Exec command to fix EXEC problems */
710 /* %s will be replaced by the exec/script name in error */
712 #define EXECFIXCMD "/usr/local/bin/perl /local/scripts/fixproc %s"
714 /* Should exec output Cashing be used (speeds up things greatly), and
715 if so, After how many seconds should the cache re-newed? Note:
716 Don't define CASHETIME to disable cashing completely */
718 #define EXCACHETIME 30
719 #define CACHEFILE ".snmp-exec-cache"
720 #define MAXCACHESIZE (200*80) /* roughly 200 lines max */
722 #define MAXDISKS 10 /* can't scan more than this number */
724 /* misc defaults */
726 /* default of 100 meg minimum if the minimum size is not specified in
727 the config file */
728 #define DEFDISKMINIMUMSPACE 100000
730 #define DEFMAXLOADAVE 12.0 /* default maximum load average before error */
732 #define MAXREADCOUNT 20 /* max times to loop reading output from
733 execs. Because of sleep(1)s, this will also
734 be time to wait (in seconds) for exec to finish */
736 #define SNMPBLOCK 1 /* Set to 1 if you want snmpgets to block and never
737 timeout. Original CMU code had this
738 hardcoded into the code as = 1 */
740 #define RESTARTSLEEP 5 /* How long to wait after a snmpset to
741 EXTENSIBLEMIB.VERSIONMIBNUM.VERRESTARTAGENT
742 before restarting the agent. This is
743 necessary to finish the snmpset reply
744 before restarting. */
746 /* Number of community strings to store */
747 #define NUM_COMMUNITIES 5
749 /* UNdefine to allow specifying zero-length community string */
750 /* #define NO_ZEROLENGTH_COMMUNITY 1 */
752 /* #define EXIT_ON_BAD_KLREAD */
753 /* define to exit the agent on a bad kernel read */
755 #define LASTFIELD -1 /* internal define */
757 /* Define if you have the strdup function. */
758 #define HAVE_STRDUP 1
760 /* Define if you have the strerror function. */
761 #define HAVE_STRERROR 1
763 #ifndef HAVE_STRCHR
764 #ifdef HAVE_INDEX
765 # define strchr index
766 # define strrchr rindex
767 #endif
768 #endif
770 #ifndef HAVE_INDEX
771 #ifdef HAVE_STRCHR
772 # define index strchr
773 # define rindex strrchr
774 #endif
775 #endif
777 #ifndef HAVE_MEMCPY
778 #ifdef HAVE_BCOPY
779 # define memcpy(d, s, n) bcopy ((s), (d), (n))
780 # define memmove(d, s, n) bcopy ((s), (d), (n))
781 # define memcmp bcmp
782 #endif
783 #endif
785 #ifndef HAVE_MEMMOVE
786 #ifdef HAVE_MEMCPY
787 # define memmove memcpy
788 #endif
789 #endif
791 #ifndef HAVE_BCOPY
792 #ifdef HAVE_MEMCPY
793 # define bcopy(s, d, n) memcpy ((d), (s), (n))
794 # define bzero(p,n) memset((p),(0),(n))
795 # define bcmp memcmp
796 #endif
797 #endif
800 /* define random functions */
802 #ifndef HAVE_RANDOM
803 #ifdef HAVE_LRAND48
804 #define random lrand48
805 #define srandom(s) srand48(s)
806 #else
807 #ifdef HAVE_RAND
808 #define random rand
809 #define srandom(s) srand(s)
810 #endif
811 #endif
812 #endif
814 /* define signal if DNE */
816 #ifndef HAVE_SIGNAL
817 #ifdef HAVE_SIGSET
818 #define signal(a,b) sigset(a,b)
819 #endif
820 #endif
822 /* Not-to-be-compiled macros for use by configure only */
823 #define config_require(x)
824 #define config_arch_require(x,y)
825 #define config_parse_dot_conf(w,x,y,z)
826 #define config_add_mib(x)
828 #ifndef DONT_INC_STRUCTS
829 /*#include "agent/mibgroup/struct.h" */
830 #endif
832 #ifndef linux
833 #ifndef solaris2
834 #define bsdlike
835 #endif
836 #endif
838 #ifdef WIN32
840 #define HAVE_GETPID 1
842 int strcasecmp(const char *s1, const char *s2);
843 #define vsnprintf _vsnprintf
844 #define snprintf _snprintf
846 #define EADDRINUSE WSAEADDRINUSE
848 #define ENV_SEPARATOR ";"
849 #define ENV_SEPARATOR_CHAR ';'
852 #else
854 #define ENV_SEPARATOR ":"
855 #define ENV_SEPARATOR_CHAR ':'
857 #endif
859 typedef unsigned short mode_t;
861 #define AGENT_DIRECTORY_MODE 0700
863 /* reverse encoding BER packets is both faster and more efficient in space. */
864 #define USE_REVERSE_ASNENCODING 1
865 #define DEFAULT_ASNENCODING_DIRECTION 1 /* 1 = reverse, 0 = forwards */
867 #ifndef NETSNMP_INLINE
868 # define NETSNMP_NO_INLINE
869 # define NETSNMP_INLINE
870 #endif
872 #ifdef __cplusplus
874 #endif