and added files
[bcm963xx.git] / userapps / opensource / net-snmp / include / net-snmp / net-snmp-config.h
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
5
6 /* config.h:  a general config file */
7
8 /* Default (SNMP) version number for the tools to use */
9 #define DEFAULT_SNMP_VERSION 2
10
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 */
15
16 /* default list of mibs to load */
17
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"
20
21 /* default location to look for mibs to load using the above tokens
22    and/or those in the MIBS envrionment variable*/
23
24 #define DEFAULT_MIBDIRS "$HOME/.snmp/mibs:/usr/local/share/snmp/mibs"
25
26 /* default mib files to load, specified by path. */
27
28 /* #undef DEFAULT_MIBFILES */
29
30 /* should we compile to use special opaque types: float, double,
31    counter64, i64, ui64, union? */
32 /* brcm */
33 //#define OPAQUE_SPECIAL_TYPES 1
34
35 /* comment the next line if you are compiling with libsnmp.h 
36    and are not using the UC-Davis SNMP library. */
37 /* brcm */
38 //#define UCD_SNMP_LIBRARY 1
39
40 /* define if you want to compile support for both authentication and
41    privacy support. */
42 /* brcm */
43 //#define SCAPI_AUTHPRIV 1
44
45 /* define if you are using the MD5 code ...*/
46 /* #undef USE_INTERNAL_MD5 */
47
48 /* add in recent CMU library extensions (not complete) */
49 /* #undef CMU_COMPATIBLE */
50
51 /* add in recent resource lock functions (not complete) */
52 /* #undef _REENTRANT */
53
54 /* debugging stuff */
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 */
59
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 */
63
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"
68
69 /* PERSISTENT_MASK: the umask permissions to set up the persistent files with */
70 #define PERSISTENT_MASK 077
71
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
76
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.
81  */
82 #define MAX_PERSISTENT_BACKUPS 10
83
84
85 /* Define if on AIX 3.
86    System headers sometimes define this.
87    We just want to avoid a redefinition error message.  */
88 #ifndef _ALL_SOURCE
89 /* #undef _ALL_SOURCE */
90 #endif
91
92 /* Define if using alloca.c.  */
93 /* #undef C_ALLOCA */
94
95 /* Define to empty if the keyword does not work.  */
96 /* #undef const */
97
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 */
101
102 /* Define if you have alloca, as a function or macro.  */
103 #define HAVE_ALLOCA 1
104
105 /* Define if you have <alloca.h> and it should be used (not on Ultrix).  */
106 #define HAVE_ALLOCA_H 1
107
108 /* Define if you have the getmntent function.  */
109 #define HAVE_GETMNTENT 1
110
111 /* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
112 #define HAVE_SYS_WAIT_H 1
113
114 /* Define as __inline if that's what the C compiler calls it.  */
115 /* #undef inline */
116
117 /* Define to `long' if <sys/types.h> doesn't define.  */
118 /* #undef off_t */
119
120 /* Define to `int' if <sys/types.h> doesn't define.  */
121 /* #undef pid_t */
122
123 /* Define as the return type of signal handlers (int or void).  */
124 #define RETSIGTYPE void
125
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
132  */
133 /* #undef STACK_DIRECTION */
134
135 /* Define if you have the ANSI C header files.  */
136 #define STDC_HEADERS 1
137
138 /* Define if you can safely include both <sys/time.h> and <time.h>.  */
139 #define TIME_WITH_SYS_TIME 1
140
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 */
144
145 /* define if you are embedding perl in the main agent */
146 /* #undef NETSNMP_EMBEDDED_PERL */
147
148 /* define the system type include file here */
149 #define SYSTEM_INCLUDE_FILE "net-snmp/system/linux.h"
150
151 /* define the machine (cpu) type include file here */
152 #define MACHINE_INCLUDE_FILE "net-snmp/machine/generic.h"
153
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"
158
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) */
161
162 #define LOGFILE "/var/log/snmpd.log"
163
164 /* default system contact */
165 #define SYS_CONTACT "unknown"
166
167 /* system location */
168 #define SYS_LOC "Unknown"
169
170 /* Use libwrap to handle allow/deny hosts? */
171 /* #undef USE_LIBWRAP */
172
173 /* Use dmalloc to do malloc debugging? */
174 /* #undef HAVE_DMALLOC_H */
175
176 /* location of UNIX kernel */
177 #define KERNEL_LOC "unknown"
178
179 /* location of mount table list */
180 #define ETC_MNTTAB "/etc/mtab"
181
182 /* location of swap device (ok if not found) */
183 /* #undef DMEM_LOC */
184
185 #define PSCMD "/bin/ps -e"
186
187 /* Where is the uname command */
188 #define UNAMEPROG "/bin/uname"
189
190 /* testing code sections. */
191 /* #undef SNMP_TESTING_CODE */ 
192
193 /* If you don't have root access don't exit upon kmem errors */
194 /* #undef NO_ROOT_ACCESS */
195
196 /* If we don't want to use kmem. */
197 /* #undef NO_KMEM_USAGE */
198
199 /* If you don't want the agent to report on variables it doesn't have data for */
200 /* brcm */
201 //#define NO_DUMMY_VALUES 1
202
203 /* Define if statfs takes 2 args and the second argument has
204    type struct fs_data. [Ultrix] */
205 /* #undef STAT_STATFS_FS_DATA */
206
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 */
210
211 /* Define if you have the AES_cfb128_encrypt function.  */
212 /* #undef HAVE_AES_CFB128_ENCRYPT */
213
214 /* Define if you have the bcopy function.  */
215 #define HAVE_BCOPY 1
216
217 /* Define if you have the cgetnext function.  */
218 /* #undef HAVE_CGETNEXT */
219
220 /* Define if you have the dlopen function.  */
221 /* #undef HAVE_DLOPEN */
222
223 /* Define if you have the eval_pv function.  */
224 /* #undef HAVE_EVAL_PV */
225
226 /* Define if you have the execv function.  */
227 /* brcm */
228 //#define HAVE_EXECV 1
229
230 /* Define if you have the fork function.  */
231 /* brcm */
232 //#define HAVE_FORK 1
233
234 /* Define if you have the getaddrinfo function.  */
235 #define HAVE_GETADDRINFO 1
236
237 /* Define if you have the getdtablesize function.  */
238 #define HAVE_GETDTABLESIZE 1
239
240 /* Define if you have the getfsstat function.  */
241 /* #undef HAVE_GETFSSTAT */
242
243 /* Define if you have the getgrnam function.  */
244 #define HAVE_GETGRNAM 1
245
246 /* Define if you have the gethostname function.  */
247 #define HAVE_GETHOSTNAME 1
248
249 /* Define if you have the getipnodebyname function.  */
250 /* #undef HAVE_GETIPNODEBYNAME */
251
252 /* Define if you have the getloadavg function.  */
253 /* brcm */
254 //#define HAVE_GETLOADAVG 1
255
256 /* Define if you have the getpagesize function.  */
257 #define HAVE_GETPAGESIZE 1
258
259 /* Define if you have the getpid function.  */
260 //#define HAVE_GETPID 1
261
262 /* Define if you have the getpwnam function.  */
263 #define HAVE_GETPWNAM 1
264
265 /* Define if you have the gettimeofday function.  */
266 #define HAVE_GETTIMEOFDAY 1
267
268 /* Define if you have the if_freenameindex function.  */
269 #define HAVE_IF_FREENAMEINDEX 1
270
271 /* Define if you have the if_nameindex function.  */
272 #define HAVE_IF_NAMEINDEX 1
273
274 /* Define if you have the index function.  */
275 #define HAVE_INDEX 1
276
277 /* Define if you have the knlist function.  */
278 /* #undef HAVE_KNLIST */
279
280 /* Define if you have the kvm_getprocs function.  */
281 /* #undef HAVE_KVM_GETPROCS */
282
283 /* Define if you have the kvm_openfiles function.  */
284 /* #undef HAVE_KVM_OPENFILES */
285
286 /* Define if you have the lrand48 function.  */
287 #define HAVE_LRAND48 1
288
289 /* Define if you have the memcpy function.  */
290 #define HAVE_MEMCPY 1
291
292 /* Define if you have the memmove function.  */
293 #define HAVE_MEMMOVE 1
294
295 /* Define if you have the mkstemp function.  */
296 #define HAVE_MKSTEMP 1
297
298 /* Define if you have the nlist function.  */
299 /* brcm */
300 //#define HAVE_NLIST 1
301
302 /* Define if you have the perl_eval_pv function.  */
303 /* #undef HAVE_PERL_EVAL_PV */
304
305 /* Define if you have the rand function.  */
306 #define HAVE_RAND 1
307
308 /* Define if you have the random function.  */
309 #define HAVE_RANDOM 1
310
311 /* Define if you have the regcomp function.  */
312 #define HAVE_REGCOMP 1
313
314 /* Define if you have the rpmGetPath function.  */
315 /* #undef HAVE_RPMGETPATH */
316
317 /* Define if you have the select function.  */
318 #define HAVE_SELECT 1
319
320 /* Define if you have the setenv function.  */
321 #define HAVE_SETENV 1
322
323 /* Define if you have the setgid function.  */
324 #define HAVE_SETGID 1
325
326 /* Define if you have the setgroups function.  */
327 #define HAVE_SETGROUPS 1
328
329 /* Define if you have the setitimer function.  */
330 #define HAVE_SETITIMER 1
331
332 /* Define if you have the setlocale function.  */
333 #define HAVE_SETLOCALE 1
334
335 /* Define if you have the setmntent function.  */
336 #define HAVE_SETMNTENT 1
337
338 /* Define if you have the setsid function.  */
339 #define HAVE_SETSID 1
340
341 /* Define if you have the setuid function.  */
342 #define HAVE_SETUID 1
343
344 /* Define if you have the sigaction function.  */
345 #define HAVE_SIGACTION 1
346
347 /* Define if you have the sigalrm function.  */
348 /* #undef HAVE_SIGALRM */
349
350 /* Define if you have the sigblock function.  */
351 #define HAVE_SIGBLOCK 1
352
353 /* Define if you have the sighold function.  */
354 #define HAVE_SIGHOLD 1
355
356 /* Define if you have the signal function.  */
357 #define HAVE_SIGNAL 1
358
359 /* Define if you have the sigset function.  */
360 #define HAVE_SIGSET 1
361
362 /* Define if you have the snprintf function.  */
363 #define HAVE_SNPRINTF 1
364
365 /* Define if you have the socket function.  */
366 #define HAVE_SOCKET 1
367
368 /* Define if you have the statfs function.  */
369 #define HAVE_STATFS 1
370
371 /* Define if you have the statvfs function.  */
372 #define HAVE_STATVFS 1
373
374 /* Define if you have the strcasestr function.  */
375 #define HAVE_STRCASESTR 1
376
377 /* Define if you have the strchr function.  */
378 #define HAVE_STRCHR 1
379
380 /* Define if you have the strdup function.  */
381 #define HAVE_STRDUP 1
382
383 /* Define if you have the strerror function.  */
384 #define HAVE_STRERROR 1
385
386 /* Define if you have the strncasecmp function.  */
387 #define HAVE_STRNCASECMP 1
388
389 /* Define if you have the strtol function.  */
390 #define HAVE_STRTOL 1
391
392 /* Define if you have the strtoul function.  */
393 #define HAVE_STRTOUL 1
394
395 /* Define if you have the system function.  */
396 #define HAVE_SYSTEM 1
397
398 /* Define if you have the tcgetattr function.  */
399 #define HAVE_TCGETATTR 1
400
401 /* Define if you have the uname function.  */
402 #define HAVE_UNAME 1
403
404 /* Define if you have the usleep function.  */
405 #define HAVE_USLEEP 1
406
407 /* Define if you have the vsnprintf function.  */
408 #define HAVE_VSNPRINTF 1
409
410 /* Define if you have the <arpa/inet.h> header file.  */
411 #define HAVE_ARPA_INET_H 1
412
413 /* Define if you have the <asm/page.h> header file.  */
414 #define HAVE_ASM_PAGE_H 1
415
416 /* Define if you have the <dirent.h> header file.  */
417 #define HAVE_DIRENT_H 1
418
419 /* Define if you have the <dlfcn.h> header file.  */
420 #define HAVE_DLFCN_H 1
421
422 /* Define if you have the <err.h> header file.  */
423 #define HAVE_ERR_H 1
424
425 /* Define if you have the <fcntl.h> header file.  */
426 #define HAVE_FCNTL_H 1
427
428 /* Define if you have the <fstab.h> header file.  */
429 /* brcm */
430 //#define HAVE_FSTAB_H 1
431
432 /* Define if you have the <getopt.h> header file.  */
433 #define HAVE_GETOPT_H 1
434
435 /* Define if you have the <grp.h> header file.  */
436 #define HAVE_GRP_H 1
437
438 /* Define if you have the <inet/mib2.h> header file.  */
439 /* #undef HAVE_INET_MIB2_H */
440
441 /* Define if you have the <io.h> header file.  */
442 /* #undef HAVE_IO_H */
443
444 /* Define if you have the <ioctls.h> header file.  */
445 /* #undef HAVE_IOCTLS_H */
446
447 /* Define if you have the <kstat.h> header file.  */
448 /* #undef HAVE_KSTAT_H */
449
450 /* Define if you have the <kvm.h> header file.  */
451 /* #undef HAVE_KVM_H */
452
453 /* Define if you have the <limits.h> header file.  */
454 #define HAVE_LIMITS_H 1
455
456 /* Define if you have the <linux/hdreg.h> header file.  */
457 #define HAVE_LINUX_HDREG_H 1
458
459 /* Define if you have the <linux/tasks.h> header file.  */
460 /* #undef HAVE_LINUX_TASKS_H */
461
462 /* Define if you have the <locale.h> header file.  */
463 #define HAVE_LOCALE_H 1
464
465 /* Define if you have the <machine/param.h> header file.  */
466 /* #undef HAVE_MACHINE_PARAM_H */
467
468 /* Define if you have the <machine/pte.h> header file.  */
469 /* #undef HAVE_MACHINE_PTE_H */
470
471 /* Define if you have the <machine/types.h> header file.  */
472 /* #undef HAVE_MACHINE_TYPES_H */
473
474 /* Define if you have the <malloc.h> header file.  */
475 #define HAVE_MALLOC_H 1
476
477 /* Define if you have the <mntent.h> header file.  */
478 #define HAVE_MNTENT_H 1
479
480 /* Define if you have the <mtab.h> header file.  */
481 /* #undef HAVE_MTAB_H */
482
483 /* Define if you have the <ndir.h> header file.  */
484 /* #undef HAVE_NDIR_H */
485
486 /* Define if you have the <net/if.h> header file.  */
487 #define HAVE_NET_IF_H 1
488
489 /* Define if you have the <net/if_dl.h> header file.  */
490 /* #undef HAVE_NET_IF_DL_H */
491
492 /* Define if you have the <net/if_mib.h> header file.  */
493 /* #undef HAVE_NET_IF_MIB_H */
494
495 /* Define if you have the <net/if_types.h> header file.  */
496 /* #undef HAVE_NET_IF_TYPES_H */
497
498 /* Define if you have the <net/if_var.h> header file.  */
499 /* #undef HAVE_NET_IF_VAR_H */
500
501 /* Define if you have the <net/route.h> header file.  */
502 #define HAVE_NET_ROUTE_H 1
503
504 /* Define if you have the <netdb.h> header file.  */
505 #define HAVE_NETDB_H 1
506
507 /* Define if you have the <netinet/icmp_var.h> header file.  */
508 /* #undef HAVE_NETINET_ICMP_VAR_H */
509
510 /* Define if you have the <netinet/if_ether.h> header file.  */
511 #define HAVE_NETINET_IF_ETHER_H 1
512
513 /* Define if you have the <netinet/in.h> header file.  */
514 #define HAVE_NETINET_IN_H 1
515
516 /* Define if you have the <netinet/in_systm.h> header file.  */
517 #define HAVE_NETINET_IN_SYSTM_H 1
518
519 /* Define if you have the <netinet/in_var.h> header file.  */
520 /* #undef HAVE_NETINET_IN_VAR_H */
521
522 /* Define if you have the <netinet/ip.h> header file.  */
523 #define HAVE_NETINET_IP_H 1
524
525 /* Define if you have the <netinet/ip6.h> header file.  */
526 /* brcm */
527 //#define HAVE_NETINET_IP6_H 1
528
529 /* Define if you have the <netinet/ip_icmp.h> header file.  */
530 #define HAVE_NETINET_IP_ICMP_H 1
531
532 /* Define if you have the <netinet/ip_var.h> header file.  */
533 /* #undef HAVE_NETINET_IP_VAR_H */
534
535 /* Define if you have the <netinet/tcp.h> header file.  */
536 #define HAVE_NETINET_TCP_H 1
537
538 /* Define if you have the <netinet/tcp_fsm.h> header file.  */
539 /* #undef HAVE_NETINET_TCP_FSM_H */
540
541 /* Define if you have the <netinet/tcp_timer.h> header file.  */
542 /* #undef HAVE_NETINET_TCP_TIMER_H */
543
544 /* Define if you have the <netinet/tcp_var.h> header file.  */
545 /* #undef HAVE_NETINET_TCP_VAR_H */
546
547 /* Define if you have the <netinet/tcpip.h> header file.  */
548 /* #undef HAVE_NETINET_TCPIP_H */
549
550 /* Define if you have the <netinet/udp.h> header file.  */
551 #define HAVE_NETINET_UDP_H 1
552
553 /* Define if you have the <netinet/udp_var.h> header file.  */
554 /* #undef HAVE_NETINET_UDP_VAR_H */
555
556 /* Define if you have the <netinet6/in6_pcb.h> header file.  */
557 /* #undef HAVE_NETINET6_IN6_PCB_H */
558
559 /* Define if you have the <netinet6/in6_var.h> header file.  */
560 /* #undef HAVE_NETINET6_IN6_VAR_H */
561
562 /* Define if you have the <netinet6/ip6_var.h> header file.  */
563 /* #undef HAVE_NETINET6_IP6_VAR_H */
564
565 /* Define if you have the <netinet6/nd6.h> header file.  */
566 /* #undef HAVE_NETINET6_ND6_H */
567
568 /* Define if you have the <netinet6/tcp6.h> header file.  */
569 /* #undef HAVE_NETINET6_TCP6_H */
570
571 /* Define if you have the <netinet6/tcp6_fsm.h> header file.  */
572 /* #undef HAVE_NETINET6_TCP6_FSM_H */
573
574 /* Define if you have the <netinet6/tcp6_timer.h> header file.  */
575 /* #undef HAVE_NETINET6_TCP6_TIMER_H */
576
577 /* Define if you have the <netinet6/tcp6_var.h> header file.  */
578 /* #undef HAVE_NETINET6_TCP6_VAR_H */
579
580 /* Define if you have the <netipx/ipx.h> header file.  */
581 #define HAVE_NETIPX_IPX_H 1
582
583 /* Define if you have the <nlist.h> header file.  */
584 /* #undef HAVE_NLIST_H */
585
586 /* Define if you have the <openssl/aes.h> header file.  */
587 /* #undef HAVE_OPENSSL_AES_H */
588
589 /* Define if you have the <openssl/des.h> header file.  */
590 #define HAVE_OPENSSL_DES_H 1
591
592 /* Define if you have the <openssl/evp.h> header file.  */
593 #define HAVE_OPENSSL_EVP_H 1
594
595 /* Define if you have the <openssl/hmac.h> header file.  */
596 #define HAVE_OPENSSL_HMAC_H 1
597
598 /* Define if you have the <osreldate.h> header file.  */
599 /* #undef HAVE_OSRELDATE_H */
600
601 /* Define if you have the <pkginfo.h> header file.  */
602 /* #undef HAVE_PKGINFO_H */
603
604 /* Define if you have the <pkglocs.h> header file.  */
605 /* #undef HAVE_PKGLOCS_H */
606
607 /* Define if you have the <pthread.h> header file.  */
608 #define HAVE_PTHREAD_H 1
609
610 /* Define if you have the <pwd.h> header file.  */
611 #define HAVE_PWD_H 1
612
613 /* Define if you have the <regex.h> header file.  */
614 #define HAVE_REGEX_H 1
615
616 /* Define if you have the <rpmio.h> header file.  */
617 /* #undef HAVE_RPMIO_H */
618
619 /* Define if you have the <search.h> header file.  */
620 #define HAVE_SEARCH_H 1
621
622 /* Define if you have the <sgtty.h> header file.  */
623 #define HAVE_SGTTY_H 1
624
625 /* Define if you have the <stdarg.h> header file.  */
626 #define HAVE_STDARG_H 1
627
628 /* Define if you have the <stdlib.h> header file.  */
629 #define HAVE_STDLIB_H 1
630
631 /* Define if you have the <string.h> header file.  */
632 #define HAVE_STRING_H 1
633
634 /* Define if you have the <sys/cdefs.h> header file.  */
635 #define HAVE_SYS_CDEFS_H 1
636
637 /* Define if you have the <sys/conf.h> header file.  */
638 /* #undef HAVE_SYS_CONF_H */
639
640 /* Define if you have the <sys/dir.h> header file.  */
641 /* #undef HAVE_SYS_DIR_H */
642
643 /* Define if you have the <sys/diskio.h> header file.  */
644 /* #undef HAVE_SYS_DISKIO_H */
645
646 /* Define if you have the <sys/dkio.h> header file.  */
647 /* #undef HAVE_SYS_DKIO_H */
648
649 /* Define if you have the <sys/dmap.h> header file.  */
650 /* #undef HAVE_SYS_DMAP_H */
651
652 /* Define if you have the <sys/file.h> header file.  */
653 #define HAVE_SYS_FILE_H 1
654
655 /* Define if you have the <sys/filio.h> header file.  */
656 /* #undef HAVE_SYS_FILIO_H */
657
658 /* Define if you have the <sys/fixpoint.h> header file.  */
659 /* #undef HAVE_SYS_FIXPOINT_H */
660
661 /* Define if you have the <sys/fs.h> header file.  */
662 /* #undef HAVE_SYS_FS_H */
663
664 /* Define if you have the <sys/hashing.h> header file.  */
665 /* #undef HAVE_SYS_HASHING_H */
666
667 /* Define if you have the <sys/ioctl.h> header file.  */
668 #define HAVE_SYS_IOCTL_H 1
669
670 /* Define if you have the <sys/loadavg.h> header file.  */
671 /* #undef HAVE_SYS_LOADAVG_H */
672
673 /* Define if you have the <sys/mbuf.h> header file.  */
674 /* #undef HAVE_SYS_MBUF_H */
675
676 /* Define if you have the <sys/mntent.h> header file.  */
677 /* #undef HAVE_SYS_MNTENT_H */
678
679 /* Define if you have the <sys/mnttab.h> header file.  */
680 /* #undef HAVE_SYS_MNTTAB_H */
681
682 /* Define if you have the <sys/mount.h> header file.  */
683 #define HAVE_SYS_MOUNT_H 1
684
685 /* Define if you have the <sys/ndir.h> header file.  */
686 /* #undef HAVE_SYS_NDIR_H */
687
688 /* Define if you have the <sys/param.h> header file.  */
689 #define HAVE_SYS_PARAM_H 1
690
691 /* Define if you have the <sys/pool.h> header file.  */
692 /* #undef HAVE_SYS_POOL_H */
693
694 /* Define if you have the <sys/proc.h> header file.  */
695 /* #undef HAVE_SYS_PROC_H */
696
697 /* Define if you have the <sys/protosw.h> header file.  */
698 /* #undef HAVE_SYS_PROTOSW_H */
699
700 /* Define if you have the <sys/pstat.h> header file.  */
701 /* #undef HAVE_SYS_PSTAT_H */
702
703 /* Define if you have the <sys/queue.h> header file.  */
704 #define HAVE_SYS_QUEUE_H 1
705
706 /* Define if you have the <sys/select.h> header file.  */
707 #define HAVE_SYS_SELECT_H 1
708
709 /* Define if you have the <sys/socket.h> header file.  */
710 #define HAVE_SYS_SOCKET_H 1
711
712 /* Define if you have the <sys/socketvar.h> header file.  */
713 #define HAVE_SYS_SOCKETVAR_H 1
714
715 /* Define if you have the <sys/sockio.h> header file.  */
716 /* #undef HAVE_SYS_SOCKIO_H */
717
718 /* Define if you have the <sys/stat.h> header file.  */
719 #define HAVE_SYS_STAT_H 1
720
721 /* Define if you have the <sys/statfs.h> header file.  */
722 #define HAVE_SYS_STATFS_H 1
723
724 /* Define if you have the <sys/statvfs.h> header file.  */
725 #define HAVE_SYS_STATVFS_H 1
726
727 /* Define if you have the <sys/stream.h> header file.  */
728 /* #undef HAVE_SYS_STREAM_H */
729
730 /* Define if you have the <sys/swap.h> header file.  */
731 #define HAVE_SYS_SWAP_H 1
732
733 /* Define if you have the <sys/sysctl.h> header file.  */
734 #define HAVE_SYS_SYSCTL_H 1
735
736 /* Define if you have the <sys/sysmp.h> header file.  */
737 /* #undef HAVE_SYS_SYSMP_H */
738
739 /* Define if you have the <sys/tcpipstats.h> header file.  */
740 /* #undef HAVE_SYS_TCPIPSTATS_H */
741
742 /* Define if you have the <sys/time.h> header file.  */
743 #define HAVE_SYS_TIME_H 1
744
745 /* Define if you have the <sys/un.h> header file.  */
746 #define HAVE_SYS_UN_H 1
747
748 /* Define if you have the <sys/user.h> header file.  */
749 #define HAVE_SYS_USER_H 1
750
751 /* Define if you have the <sys/utsname.h> header file.  */
752 #define HAVE_SYS_UTSNAME_H 1
753
754 /* Define if you have the <sys/vfs.h> header file.  */
755 #define HAVE_SYS_VFS_H 1
756
757 /* Define if you have the <sys/vm.h> header file.  */
758 /* #undef HAVE_SYS_VM_H */
759
760 /* Define if you have the <sys/vmmac.h> header file.  */
761 /* #undef HAVE_SYS_VMMAC_H */
762
763 /* Define if you have the <sys/vmmeter.h> header file.  */
764 /* #undef HAVE_SYS_VMMETER_H */
765
766 /* Define if you have the <sys/vmparam.h> header file.  */
767 /* #undef HAVE_SYS_VMPARAM_H */
768
769 /* Define if you have the <sys/vmsystm.h> header file.  */
770 /* #undef HAVE_SYS_VMSYSTM_H */
771
772 /* Define if you have the <sys/vnode.h> header file.  */
773 /* #undef HAVE_SYS_VNODE_H */
774
775 /* Define if you have the <syslog.h> header file.  */
776 #define HAVE_SYSLOG_H 1
777
778 /* Define if you have the <ufs/ffs/fs.h> header file.  */
779 /* #undef HAVE_UFS_FFS_FS_H */
780
781 /* Define if you have the <ufs/fs.h> header file.  */
782 /* #undef HAVE_UFS_FS_H */
783
784 /* Define if you have the <ufs/ufs/dinode.h> header file.  */
785 /* #undef HAVE_UFS_UFS_DINODE_H */
786
787 /* Define if you have the <ufs/ufs/inode.h> header file.  */
788 /* #undef HAVE_UFS_UFS_INODE_H */
789
790 /* Define if you have the <ufs/ufs/quota.h> header file.  */
791 /* #undef HAVE_UFS_UFS_QUOTA_H */
792
793 /* Define if you have the <unistd.h> header file.  */
794 #define HAVE_UNISTD_H 1
795
796 /* Define if you have the <utmpx.h> header file.  */
797 #define HAVE_UTMPX_H 1
798
799 /* Define if you have the <utsname.h> header file.  */
800 /* #undef HAVE_UTSNAME_H */
801
802 /* Define if you have the <uvm/uvm_extern.h> header file.  */
803 /* #undef HAVE_UVM_UVM_EXTERN_H */
804
805 /* Define if you have the <uvm/uvm_param.h> header file.  */
806 /* #undef HAVE_UVM_UVM_PARAM_H */
807
808 /* Define if you have the <vm/swap_pager.h> header file.  */
809 /* #undef HAVE_VM_SWAP_PAGER_H */
810
811 /* Define if you have the <vm/vm.h> header file.  */
812 /* #undef HAVE_VM_VM_H */
813
814 /* Define if you have the <vm/vm_extern.h> header file.  */
815 /* #undef HAVE_VM_VM_EXTERN_H */
816
817 /* Define if you have the <vm/vm_param.h> header file.  */
818 /* #undef HAVE_VM_VM_PARAM_H */
819
820 /* Define if you have the <winsock.h> header file.  */
821 /* #undef HAVE_WINSOCK_H */
822
823 /* Define if you have the <xti.h> header file.  */
824 /* #undef HAVE_XTI_H */
825
826 /* Define if you have the RSAglue library (-lRSAglue).  */
827 /* #undef HAVE_LIBRSAGLUE */
828
829 /* Define if you have the crypto library (-lcrypto).  */
830 /* brcm */
831 //#define HAVE_LIBCRYPTO 1
832
833 /* Define if you have the dl library (-ldl).  */
834 /* brcm */
835 //#define HAVE_LIBDL 1
836
837 /* Define if you have the efence library (-lefence).  */
838 /* #undef HAVE_LIBEFENCE */
839
840 /* Define if you have the elf library (-lelf).  */
841 //#define HAVE_LIBELF 1
842
843 /* Define if you have the kstat library (-lkstat).  */
844 /* #undef HAVE_LIBKSTAT */
845
846 /* Define if you have the kvm library (-lkvm).  */
847 /* #undef HAVE_LIBKVM */
848
849 /* Define if you have the m library (-lm).  */
850 //#define HAVE_LIBM 1
851
852 /* Define if you have the mld library (-lmld).  */
853 /* #undef HAVE_LIBMLD */
854
855 /* Define if you have the nsl library (-lnsl).  */
856 /* #undef HAVE_LIBNSL */
857
858 /* Define if you have the rsaref library (-lrsaref).  */
859 /* #undef HAVE_LIBRSAREF */
860
861 /* Define if you have the z library (-lz).  */
862 /* #undef HAVE_LIBZ */
863
864 /* define if you have getdevs() */
865 /* #undef HAVE_GETDEVS */
866
867 /* define if you have <netinet/in_pcb.h> */
868 /* #undef HAVE_NETINET_IN_PCB_H */
869
870 /* define if you have <sys/disklabel.h> */
871 /* #undef HAVE_SYS_DISKLABEL_H */
872
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 */
876
877 /* define rtentry to ortentry on SYSV machines (alphas) */
878 #define RTENTRY struct rtentry
879
880 /* Use BSD 4.4 routing table entries? */
881 /* #undef RTENTRY_4_4 */
882
883 /* Does struct sigaction have a sa_sigaction field? */
884 #define STRUCT_SIGACTION_HAS_SA_SIGACTION 1
885
886 /* Does struct sockaddr have a sa_len field? */
887 /* #undef STRUCT_SOCKADDR_HAS_SA_LEN */
888
889 /* Does struct sockaddr have a sa_family2 field? */
890 /* #undef STRUCT_SOCKADDR_HAS_SA_UNION_SA_GENERIC_SA_FAMILY2 */
891
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 */
899
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 */
914
915 /* tcpstat.tcps_rcvmemdrop */
916 /* #undef STRUCT_TCPSTAT_HAS_TCPS_RCVMEMDROP */
917
918 /* udpstat.udps_discard */
919 /* #undef STRUCT_UDPSTAT_HAS_UDPS_DISCARD */
920
921 /* udpstat.udps_discard */
922 /* #undef STRUCT_UDPSTAT_HAS_UDPS_NOPORT */
923
924 /* udpstat.udps_discard */
925 /* #undef STRUCT_UDPSTAT_HAS_UDPS_NOPORTBCAST */
926
927 /* udpstat.udps_discard */
928 /* #undef STRUCT_UDPSTAT_HAS_UDPS_FULLSOCK */
929
930 /* arphd.at_next */
931 /* #undef STRUCT_ARPHD_HAS_AT_NEXT */
932
933 /* ifaddr.ifa_next */
934 #define STRUCT_IFADDR_HAS_IFA_NEXT 1
935
936 /* ifnet.if_mtu */
937 /* #undef STRUCT_IFNET_HAS_IF_MTU */
938
939 /* swdevt.sw_nblksenabled */
940 /* #undef STRUCT_SWDEVT_HAS_SW_NBLKSENABLED */
941
942 /* nlist.n_value */
943 /* #undef STRUCT_NLIST_HAS_N_VALUE */
944
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 */
957
958 /* vfsstat.f_frsize */
959 #define STRUCT_STATVFS_HAS_F_FRSIZE 1
960
961 /* vfsstat.f_files */
962 #define STRUCT_STATVFS_HAS_F_FILES 1
963
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 */
968
969 /* des_ks_struct.weak_key */
970 //#define STRUCT_DES_KS_STRUCT_HAS_WEAK_KEY 1
971
972 /* ifnet needs to have _KERNEL defined */
973 /* #undef IFNET_NEEDS_KERNEL */
974
975 /* sysctl works to get boottime, etc... */
976 /* #undef CAN_USE_SYSCTL */
977
978 /* type check for in_addr_t */
979 /* #undef in_addr_t */
980
981 /* define if SIOCGIFADDR exists in sys/ioctl.h */
982 #define SYS_IOCTL_H_HAS_SIOCGIFADDR 1
983
984 /* define if your compiler (processor) defines __FUNCTION__ for you */
985 #define HAVE_CPP_UNDERBAR_FUNCTION_DEFINED 1
986
987 /* Mib-2 tree Info */
988 /* These are the system information variables. */
989
990 #define VERS_DESC   "unknown"             /* overridden at run time */
991 #define SYS_NAME    "unknown"             /* overridden at run time */
992
993 /* comment out the second define to turn off functionality for any of
994    these: (See README for details) */
995
996 /*   proc PROCESSNAME [MAX] [MIN] */
997 #define PROCMIBNUM 2
998
999 /*   exec/shell NAME COMMAND      */
1000 #define SHELLMIBNUM 8
1001
1002 /*   swap MIN                     */
1003 #define MEMMIBNUM 4
1004
1005 /*   disk DISK MINSIZE            */
1006 #define DISKMIBNUM 9
1007
1008 /*   load 1 5 15                  */
1009 #define LOADAVEMIBNUM 10
1010
1011 /* which version are you using? This mibloc will tell you */
1012 #define VERSIONMIBNUM 100
1013
1014 /* Reports errors the agent runs into */
1015 /* (typically its "can't fork, no mem" problems) */
1016 #define ERRORMIBNUM 101
1017
1018 /* The sub id of EXENSIBLEMIB returned to queries of
1019    .iso.org.dod.internet.mgmt.mib-2.system.sysObjectID.0 */
1020 #define AGENTID 250
1021
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 */
1025
1026 #define HPUX9ID 1
1027 #define SUNOS4ID 2 
1028 #define SOLARISID 3
1029 #define OSFID 4
1030 #define ULTRIXID 5
1031 #define HPUX10ID 6
1032 #define NETBSD1ID 7
1033 #define FREEBSDID 8
1034 #define IRIXID 9
1035 #define LINUXID 10
1036 #define BSDIID 11
1037 #define OPENBSDID 12
1038 #define WIN32ID 13
1039 #define HPUX11ID 14
1040 #define UNKNOWNID 255
1041
1042 #ifdef hpux9
1043 #define OSTYPE HPUX9ID
1044 #endif
1045 #ifdef hpux10
1046 #define OSTYPE HPUX10ID
1047 #endif
1048 #ifdef hpux11
1049 #define OSTYPE HPUX11ID
1050 #endif
1051 #ifdef sunos4
1052 #define OSTYPE SUNOS4ID
1053 #endif
1054 #ifdef solaris2
1055 #define OSTYPE SOLARISID
1056 #endif
1057 #if defined(osf3) || defined(osf4)
1058 #define OSTYPE OSFID
1059 #endif
1060 #ifdef ultrix4
1061 #define OSTYPE ULTRIXID
1062 #endif
1063 #ifdef netbsd1
1064 #define OSTYPE NETBSD1ID
1065 #endif
1066 #ifdef freebsd2
1067 #define OSTYPE FREEBSDID
1068 #endif
1069 #if defined(irix6) || defined(irix5)
1070 #define OSTYPE IRIXID
1071 #endif
1072 #ifdef linux
1073 #define OSTYPE LINUXID
1074 #endif
1075 #if defined(bsdi2) || defined(bsdi3) || defined(bsdi4)
1076 #define OSTYPE BSDIID
1077 #endif
1078 #ifdef openbsd2
1079 #define OSTYPE OPENBSDID
1080 #endif
1081 /* unknown */
1082 #ifndef OSTYPE
1083 #define OSTYPE UNKNOWNID
1084 #endif
1085
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
1096
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
1101
1102 #else
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
1107
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 */
1113
1114
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
1119
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
1127
1128 /* how long to wait (seconds) for error querys before reseting the error trap.*/
1129 #define ERRORTIMELENGTH 600 
1130
1131 /* Exec command to fix PROC problems */
1132 /* %s will be replaced by the process name in error */
1133
1134 /* #define PROCFIXCMD "/usr/bin/perl /local/scripts/fixproc %s" */
1135
1136 /* Exec command to fix EXEC problems */
1137 /* %s will be replaced by the exec/script name in error */
1138
1139 /* #define EXECFIXCMD "/usr/bin/perl /local/scripts/fixproc %s" */
1140
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 */
1144
1145 #define EXCACHETIME 30
1146 #define CACHEFILE ".snmp-exec-cache"
1147 #define MAXCACHESIZE (200*80)   /* roughly 200 lines max */
1148
1149 #define MAXDISKS 50                      /* can't scan more than this number */
1150
1151 /* misc defaults */
1152
1153 /* default of 100 meg minimum if the minimum size is not specified in
1154    the config file */
1155 #define DEFDISKMINIMUMSPACE 100000
1156
1157 #define DEFMAXLOADAVE 12.0      /* default maximum load average before error */
1158
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 */
1162
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 */
1166
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. */
1172
1173 /* Number of community strings to store */
1174 #define NUM_COMMUNITIES 5
1175
1176 /* UNdefine to allow specifying zero-length community string */
1177 /* #define NO_ZEROLENGTH_COMMUNITY 1 */
1178
1179 /* #define EXIT_ON_BAD_KLREAD  */
1180 /* define to exit the agent on a bad kernel read */
1181
1182 #define LASTFIELD -1      /* internal define */
1183
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'\""
1186
1187 /* got socklen_t? */
1188 #define HAVE_SOCKLEN_T 1
1189
1190 /* got in_addr_t? */
1191 #define HAVE_IN_ADDR_T 1
1192
1193 #ifndef HAVE_STRCHR
1194 #ifdef HAVE_INDEX
1195 # define strchr index
1196 # define strrchr rindex
1197 #endif
1198 #endif
1199
1200 #ifndef HAVE_INDEX
1201 #ifdef HAVE_STRCHR
1202 # define index strchr
1203 # define rindex strrchr
1204 #endif
1205 #endif
1206
1207 #ifndef HAVE_MEMCPY
1208 #ifdef HAVE_BCOPY
1209 # define memcpy(d, s, n) bcopy ((s), (d), (n))
1210 # define memmove(d, s, n) bcopy ((s), (d), (n))
1211 # define memcmp bcmp
1212 #endif
1213 #endif
1214
1215 #ifndef HAVE_MEMMOVE
1216 #ifdef HAVE_MEMCPY
1217 # define memmove memcpy
1218 #endif
1219 #endif
1220
1221 #ifndef HAVE_BCOPY
1222 #ifdef HAVE_MEMCPY
1223 # define bcopy(s, d, n) memcpy ((d), (s), (n))
1224 # define bzero(p,n) memset((p),(0),(n))
1225 # define bcmp memcmp
1226 #endif
1227 #endif
1228
1229 /* If you have openssl 0.9.7 or above, you likely have AES support. */
1230 /* brcm */
1231 //#define USE_OPENSSL 1
1232 #if defined(USE_OPENSSL) && defined(HAVE_OPENSSL_AES_H) && defined(HAVE_AES_CFB128_ENCRYPT)
1233 #define HAVE_AES 1
1234 #endif
1235
1236 /* define random functions */
1237
1238 #ifndef HAVE_RANDOM
1239 #ifdef HAVE_LRAND48
1240 #define random lrand48
1241 #define srandom(s) srand48(s)
1242 #else
1243 #ifdef HAVE_RAND
1244 #define random rand
1245 #define srandom(s) srand(s)
1246 #endif
1247 #endif
1248 #endif
1249
1250 /* define signal if DNE */
1251
1252 #ifndef HAVE_SIGNAL
1253 #ifdef HAVE_SIGSET
1254 #define signal(a,b) sigset(a,b)
1255 #endif
1256 #endif
1257
1258 /* define if you have librpm and libdb */
1259 /* #undef HAVE_LIBDB */
1260 /* #undef HAVE_LIBRPM */
1261
1262 /* define if you have pkginfo */
1263 /* #undef HAVE_PKGINFO */
1264
1265 /* define if you have gethostbyname */
1266 #define HAVE_GETHOSTBYNAME 1
1267
1268 /* define if you have getservbyname */
1269 #define HAVE_GETSERVBYNAME 1
1270
1271 /* printing system */
1272 //#define HAVE_LPSTAT 1
1273 //#define LPSTAT_PATH "/usr/bin/lpstat"
1274 #define HAVE_PRINTCAP 1
1275
1276 /*  Pluggable transports.  */
1277
1278 /*  This is defined if support for the UDP/IP transport domain is
1279     available.   */
1280 #define SNMP_TRANSPORT_UDP_DOMAIN 1
1281
1282 /*  This is defined if support for the TCP/IP transport domain is
1283     available.  */
1284 /* #undef SNMP_TRANSPORT_TCP_DOMAIN */
1285
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
1290
1291 /*  This is defined if support for the AAL5 PVC transport domain is
1292     available.  */
1293 #define SNMP_TRANSPORT_AAL5PVC_DOMAIN
1294
1295 /*  This is defined if support for the IPX transport domain is
1296     available.  */
1297 /* #undef SNMP_TRANSPORT_IPX_DOMAIN */
1298
1299 /*  This is defined if support for the UDP/IPv6 transport domain is
1300     available.  */
1301 /* #undef SNMP_TRANSPORT_UDPIPV6_DOMAIN */
1302
1303 /*  This is defined if support for the TCP/IPv6 transport domain is
1304     available.  */
1305 /* #undef SNMP_TRANSPORT_TCPIPV6_DOMAIN */
1306
1307 /* define this if the USM security module is available */
1308 #define SNMP_SECMOD_USM 1
1309
1310 /* define this if the KSM (kerberos based snmp) security module is available */
1311 /* #undef SNMP_SECMOD_KSM */
1312
1313 /* define this if we're using the new MIT crypto API */
1314 /* #undef MIT_NEW_CRYPTO */
1315
1316 /* define if you want to build with reentrant/threaded code */
1317 /* #undef NS_REENTRANT */
1318
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)
1324   
1325 #ifdef WIN32
1326 #define ENV_SEPARATOR ";"
1327 #define ENV_SEPARATOR_CHAR ';'
1328 #else
1329 #define ENV_SEPARATOR ":"
1330 #define ENV_SEPARATOR_CHAR ':'
1331 #endif
1332
1333 #include SYSTEM_INCLUDE_FILE
1334 #include MACHINE_INCLUDE_FILE
1335
1336 #if defined(HAVE_NLIST) && defined(STRUCT_NLIST_HAS_N_VALUE) && !defined(DONT_USE_NLIST) && !defined(NO_KMEM_USAGE)
1337 #define CAN_USE_NLIST
1338 #endif
1339
1340 #if HAVE_DMALLOC_H
1341 #define DMALLOC_FUNC_CHECK
1342 #endif
1343
1344 /* #undef INET6 */
1345
1346 #ifndef NETSNMP_INLINE
1347 #   define NETSNMP_NO_INLINE
1348 #   define NETSNMP_INLINE
1349 #endif
1350
1351 #endif /* NET_SNMP_CONFIG_H */