OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [net/] [snmp/] [lib/] [current/] [include/] [config.h] - Blame information for rev 844

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
//==========================================================================
2
//
3
//      ./lib/current/include/config.h
4
//
5
//
6
//==========================================================================
7
// ####ECOSGPLCOPYRIGHTBEGIN####                                            
8
// -------------------------------------------                              
9
// This file is part of eCos, the Embedded Configurable Operating System.   
10
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
11
//
12
// eCos is free software; you can redistribute it and/or modify it under    
13
// the terms of the GNU General Public License as published by the Free     
14
// Software Foundation; either version 2 or (at your option) any later      
15
// version.                                                                 
16
//
17
// eCos is distributed in the hope that it will be useful, but WITHOUT      
18
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or    
19
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License    
20
// for more details.                                                        
21
//
22
// You should have received a copy of the GNU General Public License        
23
// along with eCos; if not, write to the Free Software Foundation, Inc.,    
24
// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.            
25
//
26
// As a special exception, if other files instantiate templates or use      
27
// macros or inline functions from this file, or you compile this file      
28
// and link it with other works to produce a work based on this file,       
29
// this file does not by itself cause the resulting work to be covered by   
30
// the GNU General Public License. However the source code for this file    
31
// must still be made available in accordance with section (3) of the GNU   
32
// General Public License v2.                                               
33
//
34
// This exception does not invalidate any other reasons why a work based    
35
// on this file might be covered by the GNU General Public License.         
36
// -------------------------------------------                              
37
// ####ECOSGPLCOPYRIGHTEND####                                              
38
//####UCDSNMPCOPYRIGHTBEGIN####
39
//
40
// -------------------------------------------
41
//
42
// Portions of this software may have been derived from the UCD-SNMP
43
// project,  <http://ucd-snmp.ucdavis.edu/>  from the University of
44
// California at Davis, which was originally based on the Carnegie Mellon
45
// University SNMP implementation.  Portions of this software are therefore
46
// covered by the appropriate copyright disclaimers included herein.
47
//
48
// The release used was version 4.1.2 of May 2000.  "ucd-snmp-4.1.2"
49
// -------------------------------------------
50
//
51
//####UCDSNMPCOPYRIGHTEND####
52
//==========================================================================
53
//#####DESCRIPTIONBEGIN####
54
//
55
// Author(s):    hmt
56
// Contributors: hmt
57
// Date:         2000-05-30
58
// Purpose:      Port of UCD-SNMP distribution to eCos.
59
// Description:  
60
//              
61
//
62
//####DESCRIPTIONEND####
63
//
64
//==========================================================================
65
/********************************************************************
66
       Copyright 1989, 1991, 1992 by Carnegie Mellon University
67
 
68
                          Derivative Work -
69
Copyright 1996, 1998, 1999, 2000 The Regents of the University of California
70
 
71
                         All Rights Reserved
72
 
73
Permission to use, copy, modify and distribute this software and its
74
documentation for any purpose and without fee is hereby granted,
75
provided that the above copyright notice appears in all copies and
76
that both that copyright notice and this permission notice appear in
77
supporting documentation, and that the name of CMU and The Regents of
78
the University of California not be used in advertising or publicity
79
pertaining to distribution of the software without specific written
80
permission.
81
 
82
CMU AND THE REGENTS OF THE UNIVERSITY OF CALIFORNIA DISCLAIM ALL
83
WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED
84
WARRANTIES OF MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL CMU OR
85
THE REGENTS OF THE UNIVERSITY OF CALIFORNIA BE LIABLE FOR ANY SPECIAL,
86
INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
87
FROM THE LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
88
CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
89
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
90
*********************************************************************/
91
/* config.h.  Generated automatically by configure.  */
92
/* config.h.in.  Generated automatically from configure.in by autoheader.  */
93
/* config.h:  a general config file */
94
 
95
 
96
#include <pkgconf/system.h>
97
#include <pkgconf/isoinfra.h>
98
#include <pkgconf/snmplib.h>
99
#include <pkgconf/snmpagent.h>
100
 
101
/* Define IN_UCD_SNMP_SOURCE if compiling inside the ucd-snmp source tree */
102
#define IN_UCD_SNMP_SOURCE 1
103
 
104
/* Our assigned enterprise number */
105
#define ENTERPRISE_NUMBER 2021
106
 
107
/* don't change these values! */
108
#define SNMPV1      0xAAAA       /* readable by anyone */
109
#define SNMPV2ANY   0xA000       /* V2 Any type (includes NoAuth) */
110
#define SNMPV2AUTH  0x8000       /* V2 Authenticated requests only */
111
 
112
/* default list of mibs to load */
113
 
114
//#define DEFAULT_MIBS "IP-MIB:IF-MIB:TCP-MIB:UDP-MIB:SNMPv2-MIB:RFC1213-MIB:UCD-SNMP-MIB:UCD-DEMO-MIB:SNMP-VIEW-BASED-ACM-MIB:SNMP-COMMUNITY-MIB:SNMP-FRAMEWORK-MIB:SNMP-MPD-MIB:SNMP-USER-BASED-SM-MIB"
115
 
116
//#define DEFAULT_MIBS "SNMPv2-MIB:RFC1213-MIB:UCD-SNMP-MIB"
117
#define DEFAULT_MIBS "all"
118
 
119
 
120
/* default location to look for mibs to load using the above tokens
121
   and/or those in the MIBS envrionment variable*/
122
 
123
#define DEFAULT_MIBDIRS "MIBS/"
124
 
125
/* default mib files to load, specified by path. */
126
 
127
/* #undef DEFAULT_MIBFILES */
128
 
129
/* should we compile to use special opaque types: float, double,
130
   counter64, i64, ui64, union? */
131
#define OPAQUE_SPECIAL_TYPES 1
132
 
133
/* comment the next line if you are compiling with libsnmp.h
134
   and are not using the UC-Davis SNMP library. */
135
#define UCD_SNMP_LIBRARY 1
136
 
137
/* define if you want to compile support for both authentication and
138
   privacy support. */
139
#define SCAPI_AUTHPRIV 1
140
 
141
/* define if you are using the MD5 code ...*/
142
#define USE_INTERNAL_MD5 1
143
 
144
/* ... or define this if you're using openssl support */
145
#ifdef CYGPKG_OPENSSL
146
#define USE_OPENSSL
147
#else
148
/* #undef USE_OPENSSL */
149
#endif
150
 
151
/* add in recent CMU library extensions (not complete) */
152
/* #undef CMU_COMPATIBLE */
153
 
154
/* add in recent resource lock functions (not complete) */
155
/* #undef _REENTRANT */
156
 
157
/* should "--" comments in mibs be a comment till the end of the line
158
   or also until another "--", the latter being the technically
159
   correct. */
160
/* #undef MIB_COMMENT_IS_EOL_TERMINATED */
161
 
162
/* debugging stuff */
163
#ifdef CYGDBG_NET_SNMPLIB_DEBUG
164
// #undef SNMP_NO_DEBUGGING
165
#else
166
#define SNMP_NO_DEBUGGING 1        /* if defined, we optimize the code
167
                                      to exclude all debugging calls. */
168
#endif
169
 
170
#define SNMP_ALWAYS_DEBUG 0        /* Always print debugging information and
171
                                      ignore the -D flag passed to the cmds */
172
 
173
/* PERSISTENT_DIRECTORY: If defined, the library is capabile of saving
174
   persisant information to this directory in the form of configuration
175
   lines: PERSISTENT_DIRECTORY/NAME.persistent.conf */
176
#ifdef CYGPKG_SNMPLIB_PERSISTENT_FILESYSTEM
177
#define PERSISTENT_DIRECTORY "/var/ucd-snmp"
178
#else
179
#define PERSISTENT_DIRECTORY "/dev/null"
180
#endif
181
 
182
/* PERSISTENT_MASK: the umask permissions to set up the persistent files with */
183
//#define PERSISTENT_MASK 077
184
 
185
/* AGENT_DIRECTORY_MODE: the mode the agents should use to create
186
   directories with. Since the data stored here is probably sensitive, it
187
   probably should be read-only by root/administrator. */
188
#define AGENT_DIRECTORY_MODE 0700
189
 
190
/* MAX_PERSISTENT_BACKUPS:
191
 *   The maximum number of persistent backups the library will try to
192
 *   read from the persistent cache directory.  If an application fails to
193
 *   close down successfully more than this number of times, data will be lost.
194
 */
195
#define MAX_PERSISTENT_BACKUPS 10
196
 
197
 
198
/* Define if on AIX 3.
199
   System headers sometimes define this.
200
   We just want to avoid a redefinition error message.  */
201
#ifndef _ALL_SOURCE
202
/* #undef _ALL_SOURCE */
203
#endif
204
 
205
/* Define if using alloca.c.  */
206
/* #undef C_ALLOCA */
207
 
208
/* Define to empty if the keyword does not work.  */
209
/* #undef const */
210
 
211
/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
212
   This function is required for alloca.c support on those systems.  */
213
/* #undef CRAY_STACKSEG_END */
214
 
215
/* Define if you have alloca, as a function or macro.  */
216
#define HAVE_ALLOCA 0
217
 
218
/* Define if you have <alloca.h> and it should be used (not on Ultrix).  */
219
#define HAVE_ALLOCA_H 0
220
 
221
/* Define if you have the getmntent function.  */
222
#define HAVE_GETMNTENT 0
223
 
224
/* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
225
#define HAVE_SYS_WAIT_H 0
226
 
227
/* Define to `long' if <sys/types.h> doesn't define.  */
228
/* #undef off_t */
229
 
230
/* Define to `int' if <sys/types.h> doesn't define.  */
231
/* #undef pid_t */
232
 
233
/* Define as the return type of signal handlers (int or void).  */
234
#define RETSIGTYPE void
235
 
236
/* If using the C implementation of alloca, define if you know the
237
   direction of stack growth for your system; otherwise it will be
238
   automatically deduced at run-time.
239
 STACK_DIRECTION > 0 => grows toward higher addresses
240
 STACK_DIRECTION < 0 => grows toward lower addresses
241
 STACK_DIRECTION = 0 => direction of growth unknown
242
 */
243
/* #undef STACK_DIRECTION */
244
 
245
/* Define if you have the ANSI C header files.  */
246
#define STDC_HEADERS 1
247
 
248
/* Define if you can safely include both <sys/time.h> and <time.h>.  */
249
#define TIME_WITH_SYS_TIME 1
250
 
251
/* Define if your processor stores words with the most significant
252
   byte first (like Motorola and SPARC, unlike Intel and VAX).  */
253
/* #undef WORDS_BIGENDIAN */
254
 
255
/* define the system type include file here */
256
//#define SYSTEM_INCLUDE_FILE "s/linux.h"
257
 
258
/* define the machine (cpu) type include file here */
259
//#define MACHINE_INCLUDE_FILE "m/generic.h"
260
 
261
#define SNMPLIBPATH   "/lib/snmp"
262
#define SNMPSHAREPATH "/share/snmp"
263
#define SNMPCONFPATH  "/etc/snmp"
264
 
265
/* LOGFILE:  If defined it closes stdout/err/in and opens this in out/err's
266
   place.  (stdin is closed so that sh scripts won't wait for it) */
267
 
268
//#define LOGFILE "/var/log/snmpd.log"
269
 
270
/* default system contact */
271
#ifdef CYGDAT_NET_SNMPAGENT_SYS_CONTACT
272
#define SYS_CONTACT CYGDAT_NET_SNMPAGENT_SYS_CONTACT
273
#else
274
#define SYS_CONTACT "nobody@dev.null"
275
#endif
276
 
277
/* system location */
278
#ifdef CYGDAT_NET_SNMPAGENT_SYS_LOC
279
#define SYS_LOC CYGDAT_NET_SNMPAGENT_SYS_LOC
280
#else
281
#define SYS_LOC "<unknown>"
282
#endif
283
 
284
/* Use libwrap to handle allow/deny hosts? */
285
/* #undef USE_LIBWRAP */
286
 
287
/* Use dmalloc to do malloc debugging? */
288
/* #undef HAVE_DMALLOC_H */
289
 
290
/* location of UNIX kernel */
291
#define KERNEL_LOC "unknown"
292
 
293
/* location of mount table list */
294
#define ETC_MNTTAB "/etc/mtab"
295
 
296
/* location of swap device (ok if not found) */
297
/* #undef DMEM_LOC */
298
 
299
//#define PSCMD "/bin/ps -e"
300
 
301
/* Where is the uname command */
302
//#define UNAMEPROG "/bin/uname"
303
 
304
/* testing code sections. */
305
/* #undef SNMP_TESTING_CODE */
306
 
307
/* If you don't want the agent to report on variables it doesn't have data for */
308
#define NO_DUMMY_VALUES 1
309
 
310
/* Define if statfs takes 2 args and the second argument has
311
   type struct fs_data. [Ultrix] */
312
/* #undef STAT_STATFS_FS_DATA */
313
 
314
/* Define if the TCP timer constants in <netinet/tcp_timer.h>
315
   depend on the integer variable `hz'.  [FreeBSD 4.x] */
316
/* #undef TCPTV_NEEDS_HZ */
317
 
318
/* Define if you have the bcopy function.  */
319
#define HAVE_BCOPY 1
320
 
321
/* Define if you have the execv function.  */
322
//#define HAVE_EXECV 1
323
 
324
/* Define if you have the fork function.  */
325
//#define HAVE_FORK 1
326
 
327
/* Define if you have the getdtablesize function.  */
328
//#define HAVE_GETDTABLESIZE 1
329
 
330
/* Define if you have the getfsstat function.  */
331
/* #undef HAVE_GETFSSTAT */
332
 
333
/* Define if you have the gethostname function.  */
334
//#define HAVE_GETHOSTNAME 1
335
 
336
/* Define if you have the getloadavg function.  */
337
/* #undef HAVE_GETLOADAVG */
338
 
339
/* Define if you have the getpagesize function.  */
340
//#define HAVE_GETPAGESIZE 1
341
 
342
/* Define if you have the getpid function.  */
343
//#define HAVE_GETPID 1
344
 
345
/* Define if you have the gettimeofday function.  */
346
#define HAVE_GETTIMEOFDAY 1
347
 
348
/* Define if you have the if_freenameindex function.  */
349
//#define HAVE_IF_FREENAMEINDEX 1
350
 
351
/* Define if you have the if_nameindex function.  */
352
//#define HAVE_IF_NAMEINDEX 1
353
 
354
/* Define if you have the index function.  */
355
//#define HAVE_INDEX 1
356
 
357
/* Define if you have the knlist function.  */
358
/* #undef HAVE_KNLIST */
359
 
360
/* Define if you have the kvm_getprocs function.  */
361
/* #undef HAVE_KVM_GETPROCS */
362
 
363
/* Define if you have the kvm_openfiles function.  */
364
/* #undef HAVE_KVM_OPENFILES */
365
 
366
/* Define if you have the lrand48 function.  */
367
//#define HAVE_LRAND48 1
368
 
369
/* Define if you have the memcpy function.  */
370
#define HAVE_MEMCPY 1
371
 
372
/* Define if you have the memmove function.  */
373
#define HAVE_MEMMOVE 1
374
 
375
/* Define if you have the nlist function.  */
376
//#define HAVE_NLIST 1
377
 
378
/* Define if you have the rand function.  */
379
#define HAVE_RAND 1
380
 
381
/* Define if you have the random function.  */
382
//#define HAVE_RANDOM 1
383
 
384
/* Define if you have the regcomp function.  */
385
//#define HAVE_REGCOMP 1
386
 
387
/* Define if you have the rpmGetPath function.  */
388
/* #undef HAVE_RPMGETPATH */
389
 
390
/* Define if you have the select function.  */
391
#define HAVE_SELECT 1
392
 
393
/* Define if you have the setenv function.  */
394
#define HAVE_SETENV 1
395
 
396
/* Define if you have the setlocale function.  */
397
//#define HAVE_SETLOCALE 1
398
 
399
/* Define if you have the setmntent function.  */
400
//#define HAVE_SETMNTENT 1
401
 
402
/* Define if you have the sigalrm function.  */
403
#define HAVE_SIGALRM 1
404
 
405
/* Define if you have the sigblock function.  */
406
//#define HAVE_SIGBLOCK 1
407
 
408
/* Define if you have the sighold function.  */
409
//#define HAVE_SIGHOLD 1
410
 
411
/* Define if you have the signal function.  */
412
#define HAVE_SIGNAL 1
413
 
414
/* Define if you have the sigset function.  */
415
#define HAVE_SIGSET 1
416
 
417
/* Define if you have the socket function.  */
418
#define HAVE_SOCKET 1
419
 
420
/* Define if you have the statfs function.  */
421
//#define HAVE_STATFS 1
422
 
423
/* Define if you have the statvfs function.  */
424
//#define HAVE_STATVFS 1
425
 
426
/* Define if you have the strcasestr function.  */
427
//#define HAVE_STRCASESTR 1
428
 
429
/* Define if you have the strchr function.  */
430
#define HAVE_STRCHR 1
431
 
432
/* Define if you have the strdup function.  */
433
//#define HAVE_STRDUP 1
434
 
435
/* Define if you have the strerror function.  */
436
#define HAVE_STRERROR 1
437
 
438
/* Define if you have the strncasecmp function.  */
439
//#define HAVE_STRNCASECMP 1
440
 
441
/* Define if you have the strtol function.  */
442
#define HAVE_STRTOL 1
443
 
444
/* Define if you have the system function.  */
445
//#define HAVE_SYSTEM 1
446
 
447
/* Define if you have the tcgetattr function.  */
448
//#define HAVE_TCGETATTR 1
449
 
450
/* Define if you have the uname function.  */
451
//#define HAVE_UNAME 1
452
 
453
/* Define if you have the usleep function.  */
454
//#define HAVE_USLEEP 1
455
 
456
/* Define if you have the vsnprintf function.  */
457
#define HAVE_VSNPRINTF 1
458
 
459
/* Define if you have the <arpa/inet.h> header file.  */
460
#define HAVE_ARPA_INET_H 1
461
 
462
/* Define if you have the <asm/page.h> header file.  */
463
//#define HAVE_ASM_PAGE_H 1
464
 
465
/* Define if you have the <dirent.h> header file.  */
466
//#define HAVE_DIRENT_H 1
467
 
468
/* Define if you have the <err.h> header file.  */
469
#define HAVE_ERR_H 1
470
 
471
/* Define if you have the <fcntl.h> header file.  */
472
//#define HAVE_FCNTL_H 1
473
 
474
/* Define if you have the <fstab.h> header file.  */
475
//#define HAVE_FSTAB_H 1
476
 
477
/* Define if you have the <getopt.h> header file.  */
478
//#define HAVE_GETOPT_H 1
479
 
480
/* Define if you have the <inet/mib2.h> header file.  */
481
/* #undef HAVE_INET_MIB2_H */
482
 
483
/* Define if you have the <io.h> header file.  */
484
/* #undef HAVE_IO_H */
485
 
486
/* Define if you have the <ioctls.h> header file.  */
487
/* #undef HAVE_IOCTLS_H */
488
 
489
/* Define if you have the <kstat.h> header file.  */
490
/* #undef HAVE_KSTAT_H */
491
 
492
/* Define if you have the <kvm.h> header file.  */
493
/* #undef HAVE_KVM_H */
494
 
495
/* Define if you have the <limits.h> header file.  */
496
#define HAVE_LIMITS_H 1
497
 
498
/* Define if you have the <linux/hdreg.h> header file.  */
499
//#define HAVE_LINUX_HDREG_H 1
500
 
501
/* Define if you have the <locale.h> header file.  */
502
#define HAVE_LOCALE_H 1
503
 
504
/* Define if you have the <machine/param.h> header file.  */
505
/* #undef HAVE_MACHINE_PARAM_H */
506
 
507
/* Define if you have the <machine/pte.h> header file.  */
508
/* #undef HAVE_MACHINE_PTE_H */
509
 
510
/* Define if you have the <machine/types.h> header file.  */
511
/* #undef HAVE_MACHINE_TYPES_H */
512
 
513
/* Define if you have the <malloc.h> header file.  */
514
//#define HAVE_MALLOC_H 1
515
 
516
/* Define if you have the <mntent.h> header file.  */
517
//#define HAVE_MNTENT_H 1
518
 
519
/* Define if you have the <mtab.h> header file.  */
520
/* #undef HAVE_MTAB_H */
521
 
522
/* Define if you have the <ndir.h> header file.  */
523
/* #undef HAVE_NDIR_H */
524
 
525
/* Define if you have the <net/if.h> header file.  */
526
#define HAVE_NET_IF_H 1
527
 
528
/* Define if you have the <net/if_dl.h> header file.  */
529
#define HAVE_NET_IF_DL_H 1
530
 
531
/* Define if you have the <net/if_mib.h> header file.  */
532
/* #undef HAVE_NET_IF_MIB_H */
533
 
534
/* Define if you have the <net/if_types.h> header file.  */
535
#define HAVE_NET_IF_TYPES_H 1
536
 
537
/* Define if you have the <net/if_var.h> header file.  */
538
/* #undef HAVE_NET_IF_VAR_H */
539
 
540
/* Define if you have the <net/route.h> header file.  */
541
#define HAVE_NET_ROUTE_H 1
542
 
543
/* Define if you have the <netdb.h> header file.  */
544
#define HAVE_NETDB_H 1
545
 
546
/* Define if you have the <netinet/icmp_var.h> header file.  */
547
#define HAVE_NETINET_ICMP_VAR_H 1
548
 
549
/* Define if you have the <netinet/if_ether.h> header file.  */
550
#define HAVE_NETINET_IF_ETHER_H 1
551
 
552
/* Define if you have the <netinet/in.h> header file.  */
553
#define HAVE_NETINET_IN_H 1
554
 
555
/* Define if you have the <netinet/in_pcb.h> header file.  */
556
#define HAVE_NETINET_IN_PCB_H 1
557
 
558
/* Define if you have the <netinet/in_systm.h> header file.  */
559
#define HAVE_NETINET_IN_SYSTM_H 1
560
 
561
/* Define if you have the <netinet/in_var.h> header file.  */
562
#define HAVE_NETINET_IN_VAR_H 1
563
 
564
/* Define if you have the <netinet/ip.h> header file.  */
565
#define HAVE_NETINET_IP_H 1
566
 
567
/* Define if you have the <netinet/ip6.h> header file.  */
568
#define HAVE_NETINET_IP6_H 1
569
 
570
/* Define if you have the <netinet/ip_var.h> header file.  */
571
#define HAVE_NETINET_IP_VAR_H 1
572
 
573
/* Define if you have the <netinet/tcp.h> header file.  */
574
#define HAVE_NETINET_TCP_H 1
575
 
576
/* Define if you have the <netinet/tcp_fsm.h> header file.  */
577
#define HAVE_NETINET_TCP_FSM_H 1
578
 
579
/* Define if you have the <netinet/tcp_timer.h> header file.  */
580
#define HAVE_NETINET_TCP_TIMER_H 1
581
 
582
/* Define if you have the <netinet/tcp_var.h> header file.  */
583
#define HAVE_NETINET_TCP_VAR_H 1
584
 
585
/* Define if you have the <netinet/tcpip.h> header file.  */
586
#define HAVE_NETINET_TCPIP_H 1
587
 
588
/* Define if you have the <netinet/udp.h> header file.  */
589
#define HAVE_NETINET_UDP_H 1
590
 
591
/* Define if you have the <netinet/udp_var.h> header file.  */
592
#define HAVE_NETINET_UDP_VAR_H 1
593
 
594
/* Define if you have the <netinet6/in6_pcb.h> header file.  */
595
/* #undef HAVE_NETINET6_IN6_PCB_H */
596
 
597
/* Define if you have the <netinet6/in6_var.h> header file.  */
598
/* #undef HAVE_NETINET6_IN6_VAR_H */
599
 
600
/* Define if you have the <netinet6/ip6_var.h> header file.  */
601
/* #undef HAVE_NETINET6_IP6_VAR_H */
602
 
603
/* Define if you have the <netinet6/nd6.h> header file.  */
604
/* #undef HAVE_NETINET6_ND6_H */
605
 
606
/* Define if you have the <netinet6/tcp6.h> header file.  */
607
/* #undef HAVE_NETINET6_TCP6_H */
608
 
609
/* Define if you have the <netinet6/tcp6_fsm.h> header file.  */
610
/* #undef HAVE_NETINET6_TCP6_FSM_H */
611
 
612
/* Define if you have the <netinet6/tcp6_timer.h> header file.  */
613
/* #undef HAVE_NETINET6_TCP6_TIMER_H */
614
 
615
/* Define if you have the <netinet6/tcp6_var.h> header file.  */
616
/* #undef HAVE_NETINET6_TCP6_VAR_H */
617
 
618
/* Define if you have the <nlist.h> header file.  */
619
/* #undef HAVE_NLIST_H */
620
 
621
/* Define if you have the <openssl/evp.h> header file.  */
622
/* #undef HAVE_OPENSSL_EVP_H */
623
 
624
/* Define if you have the <openssl/hmac.h> header file.  */
625
/* #undef HAVE_OPENSSL_HMAC_H */
626
 
627
/* Define if you have the <osreldate.h> header file.  */
628
/* #undef HAVE_OSRELDATE_H */
629
 
630
/* Define if you have the <pkglocs.h> header file.  */
631
/* #undef HAVE_PKGLOCS_H */
632
 
633
/* Define if you have the <pthread.h> header file.  */
634
//#define HAVE_PTHREAD_H 1
635
 
636
/* Define if you have the <regex.h> header file.  */
637
//#define HAVE_REGEX_H 1
638
 
639
/* Define if you have the <sgtty.h> header file.  */
640
//#define HAVE_SGTTY_H 1
641
 
642
/* Define if you have the <stdarg.h> header file.  */
643
#define HAVE_STDARG_H 1
644
 
645
/* Define if you have the <stdlib.h> header file.  */
646
#define HAVE_STDLIB_H 1
647
 
648
/* Define if you have the <string.h> header file.  */
649
#define HAVE_STRING_H 1
650
 
651
/* Define if you have the <sys/cdefs.h> header file.  */
652
#define HAVE_SYS_CDEFS_H 1
653
 
654
/* Define if you have the <sys/conf.h> header file.  */
655
/* #undef HAVE_SYS_CONF_H */
656
 
657
/* Define if you have the <sys/dir.h> header file.  */
658
/* #undef HAVE_SYS_DIR_H */
659
 
660
/* Define if you have the <sys/diskio.h> header file.  */
661
/* #undef HAVE_SYS_DISKIO_H */
662
 
663
/* Define if you have the <sys/disklabel.h> header file.  */
664
/* #undef HAVE_SYS_DISKLABEL_H */
665
 
666
/* Define if you have the <sys/dkio.h> header file.  */
667
/* #undef HAVE_SYS_DKIO_H */
668
 
669
/* Define if you have the <sys/dmap.h> header file.  */
670
/* #undef HAVE_SYS_DMAP_H */
671
 
672
/* Define if you have the <sys/file.h> header file.  */
673
//#define HAVE_SYS_FILE_H 1
674
 
675
/* Define if you have the <sys/filio.h> header file.  */
676
/* #undef HAVE_SYS_FILIO_H */
677
 
678
/* Define if you have the <sys/fixpoint.h> header file.  */
679
/* #undef HAVE_SYS_FIXPOINT_H */
680
 
681
/* Define if you have the <sys/fs.h> header file.  */
682
/* #undef HAVE_SYS_FS_H */
683
 
684
/* Define if you have the <sys/hashing.h> header file.  */
685
/* #undef HAVE_SYS_HASHING_H */
686
 
687
/* Define if you have the <sys/ioctl.h> header file.  */
688
#define HAVE_SYS_IOCTL_H 1
689
 
690
/* Define if you have the <sys/loadavg.h> header file.  */
691
/* #undef HAVE_SYS_LOADAVG_H */
692
 
693
/* Define if you have the <sys/mbuf.h> header file.  */
694
#define HAVE_SYS_MBUF_H 1
695
 
696
/* Define if you have the <sys/mntent.h> header file.  */
697
/* #undef HAVE_SYS_MNTENT_H */
698
 
699
/* Define if you have the <sys/mnttab.h> header file.  */
700
/* #undef HAVE_SYS_MNTTAB_H */
701
 
702
/* Define if you have the <sys/mount.h> header file.  */
703
//#define HAVE_SYS_MOUNT_H 1
704
 
705
/* Define if you have the <sys/ndir.h> header file.  */
706
/* #undef HAVE_SYS_NDIR_H */
707
 
708
/* Define if you have the <sys/param.h> header file.  */
709
#define HAVE_SYS_PARAM_H 1
710
 
711
/* Define if you have the <sys/pool.h> header file.  */
712
/* #undef HAVE_SYS_POOL_H */
713
 
714
/* Define if you have the <sys/proc.h> header file.  */
715
/* #undef HAVE_SYS_PROC_H */
716
 
717
/* Define if you have the <sys/protosw.h> header file.  */
718
#define HAVE_SYS_PROTOSW_H 1
719
 
720
/* Define if you have the <sys/pstat.h> header file.  */
721
/* #undef HAVE_SYS_PSTAT_H */
722
 
723
/* Define if you have the <sys/queue.h> header file.  */
724
#define HAVE_SYS_QUEUE_H 1
725
 
726
/* Define if you have the <sys/select.h> header file.  */
727
#define HAVE_SYS_SELECT_H 1
728
 
729
/* Define if you have the <sys/socket.h> header file.  */
730
#define HAVE_SYS_SOCKET_H 1
731
 
732
/* Define if you have the <sys/socketvar.h> header file.  */
733
#define HAVE_SYS_SOCKETVAR_H 1
734
 
735
/* Define if you have the <sys/sockio.h> header file.  */
736
#define HAVE_SYS_SOCKIO_H 1
737
 
738
/* Define if you have the <sys/stat.h> header file.  */
739
//#define HAVE_SYS_STAT_H 1
740
 
741
/* Define if you have the <sys/statfs.h> header file.  */
742
//#define HAVE_SYS_STATFS_H 1
743
 
744
/* Define if you have the <sys/statvfs.h> header file.  */
745
//#define HAVE_SYS_STATVFS_H 1
746
 
747
/* Define if you have the <sys/stream.h> header file.  */
748
/* #undef HAVE_SYS_STREAM_H */
749
 
750
/* Define if you have the <sys/swap.h> header file.  */
751
//#define HAVE_SYS_SWAP_H 1
752
 
753
/* Define if you have the <sys/sysctl.h> header file.  */
754
/* #undef HAVE_SYS_SYSCTL_H */
755
 
756
/* Define if you have the <sys/sysmp.h> header file.  */
757
/* #undef HAVE_SYS_SYSMP_H */
758
 
759
/* Define if you have the <sys/tcpipstats.h> header file.  */
760
/* #undef HAVE_SYS_TCPIPSTATS_H */
761
 
762
/* Define if you have the <sys/time.h> header file.  */
763
#define HAVE_SYS_TIME_H 1
764
 
765
/* Define if you have the <sys/un.h> header file.  */
766
//#define HAVE_SYS_UN_H 1
767
 
768
/* Define if you have the <sys/user.h> header file.  */
769
//#define HAVE_SYS_USER_H 1
770
 
771
/* Define if you have the <sys/utsname.h> header file.  */
772
//#define HAVE_SYS_UTSNAME_H 1
773
 
774
/* Define if you have the <sys/vfs.h> header file.  */
775
//#define HAVE_SYS_VFS_H 1
776
 
777
/* Define if you have the <sys/vm.h> header file.  */
778
/* #undef HAVE_SYS_VM_H */
779
 
780
/* Define if you have the <sys/vmmac.h> header file.  */
781
/* #undef HAVE_SYS_VMMAC_H */
782
 
783
/* Define if you have the <sys/vmmeter.h> header file.  */
784
/* #undef HAVE_SYS_VMMETER_H */
785
 
786
/* Define if you have the <sys/vmparam.h> header file.  */
787
/* #undef HAVE_SYS_VMPARAM_H */
788
 
789
/* Define if you have the <sys/vmsystm.h> header file.  */
790
/* #undef HAVE_SYS_VMSYSTM_H */
791
 
792
/* Define if you have the <sys/vnode.h> header file.  */
793
/* #undef HAVE_SYS_VNODE_H */
794
 
795
/* Define if you have the <syslog.h> header file.  */
796
//#define HAVE_SYSLOG_H 1
797
 
798
/* Define if you have the <ufs/ffs/fs.h> header file.  */
799
/* #undef HAVE_UFS_FFS_FS_H */
800
 
801
/* Define if you have the <ufs/fs.h> header file.  */
802
/* #undef HAVE_UFS_FS_H */
803
 
804
/* Define if you have the <ufs/ufs/dinode.h> header file.  */
805
/* #undef HAVE_UFS_UFS_DINODE_H */
806
 
807
/* Define if you have the <ufs/ufs/inode.h> header file.  */
808
/* #undef HAVE_UFS_UFS_INODE_H */
809
 
810
/* Define if you have the <ufs/ufs/quota.h> header file.  */
811
/* #undef HAVE_UFS_UFS_QUOTA_H */
812
 
813
/* Define if you have the <unistd.h> header file.  */
814
//#define HAVE_UNISTD_H 1
815
 
816
/* Define if you have the <utsname.h> header file.  */
817
/* #undef HAVE_UTSNAME_H */
818
 
819
/* Define if you have the <vm/swap_pager.h> header file.  */
820
/* #undef HAVE_VM_SWAP_PAGER_H */
821
 
822
/* Define if you have the <vm/vm.h> header file.  */
823
/* #undef HAVE_VM_VM_H */
824
 
825
/* Define if you have the <winsock.h> header file.  */
826
/* #undef HAVE_WINSOCK_H */
827
 
828
/* Define if you have the <xti.h> header file.  */
829
/* #undef HAVE_XTI_H */
830
 
831
/* Define if you have the crypto library (-lcrypto).  */
832
/* #undef HAVE_LIBCRYPTO */
833
 
834
/* Define if you have the efence library (-lefence).  */
835
/* #undef HAVE_LIBEFENCE */
836
 
837
/* Define if you have the elf library (-lelf).  */
838
//#define HAVE_LIBELF 1
839
 
840
/* Define if you have the kstat library (-lkstat).  */
841
/* #undef HAVE_LIBKSTAT */
842
 
843
/* Define if you have the kvm library (-lkvm).  */
844
/* #undef HAVE_LIBKVM */
845
 
846
/* Define if you have the m library (-lm).  */
847
#define HAVE_LIBM 1
848
 
849
/* Define if you have the mld library (-lmld).  */
850
/* #undef HAVE_LIBMLD */
851
 
852
/* Define if you have the nsl library (-lnsl).  */
853
/* #undef HAVE_LIBNSL */
854
 
855
/* Define if you have the z library (-lz).  */
856
//#define HAVE_LIBZ 1
857
 
858
/* define if you are using linux and /proc/net/dev has the compressed
859
   field, which exists in linux kernels 2.2 and greater. */
860
/* #undef PROC_NET_DEV_HAS_COMPRESSED */
861
 
862
/* define rtentry to ortentry on SYSV machines (alphas) */
863
//#define RTENTRY struct rtentry
864
 
865
/* Use BSD 4.4 routing table entries? */
866
/* #undef RTENTRY_4_4 */
867
 
868
/* Does struct sigaction have a sa_sigaction field? */
869
#define STRUCT_SIGACTION_HAS_SA_SIGACTION 1
870
 
871
/* Does struct sockaddr have a sa_len field? */
872
#define STRUCT_SOCKADDR_HAS_SA_LEN
873
 
874
/* Does struct sockaddr have a sa_family2 field? */
875
/* #undef STRUCT_SOCKADDR_HAS_SA_UNION_SA_GENERIC_SA_FAMILY2 */
876
 
877
/* rtentry structure tests */
878
/* #undef RTENTRY_RT_NEXT */
879
//#define STRUCT_RTENTRY_HAS_RT_DST 1
880
/* #undef STRUCT_RTENTRY_HAS_RT_UNIT */
881
/* #undef STRUCT_RTENTRY_HAS_RT_USE */
882
/* #undef STRUCT_RTENTRY_HAS_RT_REFCNT */
883
/* #undef STRUCT_RTENTRY_HAS_RT_HASH */
884
 
885
/* ifnet structure tests */
886
/* #undef STRUCT_IFNET_HAS_IF_BAUDRATE */
887
#define STRUCT_IFNET_HAS_IF_SPEED 1
888
#define STRUCT_IFNET_HAS_IF_TYPE 1
889
/* #undef STRUCT_IFNET_HAS_IF_IMCASTS */
890
/* #undef STRUCT_IFNET_HAS_IF_IQDROPS */
891
/* #undef STRUCT_IFNET_HAS_IF_LASTCHANGE_TV_SEC */
892
/* #undef STRUCT_IFNET_HAS_IF_NOPROTO */
893
/* #undef STRUCT_IFNET_HAS_IF_OMCASTS */
894
/* #undef STRUCT_IFNET_HAS_IF_XNAME */
895
#define STRUCT_IFNET_HAS_IF_OBYTES 1
896
#define STRUCT_IFNET_HAS_IF_IBYTES 1
897
/* #undef STRUCT_IFNET_HAS_IF_ADDRLIST */
898
 
899
/* tcpstat.tcps_rcvmemdrop */
900
/* #undef STRUCT_TCPSTAT_HAS_TCPS_RCVMEMDROP */
901
 
902
/* udpstat.udps_discard */
903
/* #undef STRUCT_UDPSTAT_HAS_UDPS_DISCARD */
904
 
905
/* arphd.at_next */
906
/* #undef STRUCT_ARPHD_HAS_AT_NEXT */
907
 
908
/* ifaddr.ifa_next */
909
#define STRUCT_IFADDR_HAS_IFA_NEXT 1
910
 
911
/* ifnet.if_mtu */
912
/* #undef STRUCT_IFNET_HAS_IF_MTU */
913
 
914
/* swdevt.sw_nblksenabled */
915
/* #undef STRUCT_SWDEVT_HAS_SW_NBLKSENABLED */
916
 
917
/* nlist.n_value */
918
/* #undef STRUCT_NLIST_HAS_N_VALUE */
919
 
920
/* vfsstat.f_frsize */
921
//#define STRUCT_STATVFS_HAS_F_FRSIZE 1
922
 
923
/* vfsstat.f_files */
924
//#define STRUCT_STATVFS_HAS_F_FILES 1
925
 
926
/* ifnet needs to have _KERNEL defined */
927
/* #undef IFNET_NEEDS_KERNEL */
928
 
929
/* sysctl works to get boottime, etc... */
930
/* #undef CAN_USE_SYSCTL */
931
 
932
/* type check for in_addr_t */
933
//#define in_addr_t u_int
934
 
935
/* define if SIOCGIFADDR exists in sys/ioctl.h */
936
#define SYS_IOCTL_H_HAS_SIOCGIFADDR 1
937
 
938
/* define if your compiler (processor) defines __FUNCTION__ for you */
939
#define HAVE_CPP_UNDERBAR_FUNCTION_DEFINED 1
940
 
941
/* mib pointer to the top of the extensible tree.  This has been
942
 assigned to UCDavis by the iana group.  Optionally, point this to the
943
 location in the tree your company/organization has been allocated. */
944
 
945
/* location of the extensible mib tree */
946
#define EXTENSIBLEMIB 1,3,6,1,4,1,2021
947
/* location of the extensible mib tree */
948
#define EXTENSIBLEDOTMIB 1.3.6.1.4.1.2021
949
/* count the above numbers */
950
#define EXTENSIBLENUM 7
951
 
952
/* Mib-2 tree Info */
953
/* These are the system information variables. */
954
 
955
#ifdef CYGDAT_NET_SNMPAGENT_VERS_DESC
956
#define VERS_DESC CYGDAT_NET_SNMPAGENT_VERS_DESC
957
#else
958
#define VERS_DESC   "unknown"             /* overridden at run time */
959
#endif
960
 
961
#ifdef CYGDAT_NET_SNMPAGENT_SYS_NAME
962
#define SYS_NAME CYGDAT_NET_SNMPAGENT_SYS_NAME
963
#else
964
#define SYS_NAME    "unknown"             /* overridden at run time */
965
#endif
966
 
967
/* comment out the second define to turn off functionality for any of
968
   these: (See README for details) */
969
 
970
/*   proc PROCESSNAME [MAX] [MIN] */
971
//#define PROCMIBNUM 2
972
 
973
/*   exec/shell NAME COMMAND      */
974
//#define SHELLMIBNUM 8
975
 
976
/*   swap MIN                     */
977
//#define MEMMIBNUM 4
978
 
979
/*   disk DISK MINSIZE            */
980
//#define DISKMIBNUM 9
981
 
982
/*   load 1 5 15                  */
983
//#define LOADAVEMIBNUM 10
984
 
985
/* which version are you using? This mibloc will tell you */
986
#define VERSIONMIBNUM 100
987
 
988
/* Reports errors the agent runs into */
989
/* (typically its "can't fork, no mem" problems) */
990
#define ERRORMIBNUM 101
991
 
992
/* The sub id of EXENSIBLEMIB returned to queries of
993
   .iso.org.dod.internet.mgmt.mib-2.system.sysObjectID.0 */
994
#define AGENTID 250
995
 
996
/* This ID is returned after the AGENTID above.  IE, the resulting
997
   value returned by a query to sysObjectID is
998
   EXTENSIBLEMIB.AGENTID.???, where ??? is defined below by OSTYPE */
999
 
1000
#define HPUX9ID 1
1001
#define SUNOS4ID 2 
1002
#define SOLARISID 3
1003
#define OSFID 4
1004
#define ULTRIXID 5
1005
#define HPUX10ID 6
1006
#define NETBSD1ID 7
1007
#define FREEBSDID 8
1008
#define IRIXID 9
1009
#define LINUXID 10
1010
#define BSDIID 11
1011
#define OPENBSDID 12
1012
#define UNKNOWNID 255
1013
 
1014
#ifdef hpux9
1015
#define OSTYPE HPUX9ID
1016
#endif
1017
#ifdef hpux10
1018
#define OSTYPE HPUX10ID
1019
#endif
1020
#ifdef sunos4
1021
#define OSTYPE SUNOS4ID
1022
#endif
1023
#ifdef solaris2
1024
#define OSTYPE SOLARISID
1025
#endif
1026
#if defined(osf3) || defined(osf4)
1027
#define OSTYPE OSFID
1028
#endif
1029
#ifdef ultrix4
1030
#define OSTYPE ULTRIXID
1031
#endif
1032
#ifdef netbsd1
1033
#define OSTYPE NETBSD1ID
1034
#endif
1035
#ifdef freebsd2
1036
#define OSTYPE FREEBSDID
1037
#endif
1038
#if defined(irix6) || defined(irix5)
1039
#define OSTYPE IRIXID
1040
#endif
1041
#ifdef linux
1042
#define OSTYPE LINUXID
1043
#endif
1044
#if defined(bsdi2) || defined(bsdi3)
1045
#define OSTYPE BSDIID
1046
#endif
1047
#ifdef openbsd2
1048
#define OSTYPE OPENBSDID
1049
#endif
1050
/* unknown */
1051
#ifndef OSTYPE
1052
#define OSTYPE UNKNOWNID
1053
#endif
1054
 
1055
/* how long to wait (seconds) for error querys before reseting the error trap.*/
1056
#define ERRORTIMELENGTH 600 
1057
 
1058
/* Exec command to fix PROC problems */
1059
/* %s will be replaced by the process name in error */
1060
 
1061
/* #define PROCFIXCMD "/usr/bin/perl /local/scripts/fixproc %s" */
1062
 
1063
/* Exec command to fix EXEC problems */
1064
/* %s will be replaced by the exec/script name in error */
1065
 
1066
/* #define EXECFIXCMD "/usr/bin/perl /local/scripts/fixproc %s" */
1067
 
1068
/* Should exec output Cashing be used (speeds up things greatly), and
1069
   if so, After how many seconds should the cache re-newed?  Note:
1070
   Don't define CASHETIME to disable cashing completely */
1071
 
1072
//#define EXCACHETIME 30
1073
#define CACHEFILE "/tmp/.snmp-exec-cache"
1074
#define MAXCACHESIZE (200*80)   /* roughly 200 lines max */
1075
 
1076
#define MAXDISKS 50                      /* can't scan more than this number */
1077
 
1078
/* misc defaults */
1079
 
1080
/* default of 100 meg minimum if the minimum size is not specified in
1081
   the config file */
1082
#define DEFDISKMINIMUMSPACE 100000
1083
 
1084
#define DEFMAXLOADAVE 12.0      /* default maximum load average before error */
1085
 
1086
#define MAXREADCOUNT 100   /* max times to loop reading output from
1087
                              execs.  Because of sleep(1)s, this will also
1088
                              be time to wait (in seconds) for exec to finish */
1089
 
1090
#define SNMPBLOCK 1       /* Set to 1 if you want snmpgets to block and never
1091
                             timeout.  Original CMU code had this
1092
                             hardcoded into the code as = 1 */
1093
 
1094
#define RESTARTSLEEP 5    /* How long to wait after a snmpset to
1095
                             EXTENSIBLEMIB.VERSIONMIBNUM.VERRESTARTAGENT
1096
                             before restarting the agent.  This is
1097
                             necessary to finish the snmpset reply
1098
                             before restarting. */
1099
 
1100
/* Number of community strings to store */
1101
#define NUM_COMMUNITIES 5
1102
 
1103
/* UNdefine to allow specifying zero-length community string */
1104
/* #define NO_ZEROLENGTH_COMMUNITY 1 */
1105
 
1106
/* #define EXIT_ON_BAD_KLREAD  */
1107
/* define to exit the agent on a bad kernel read */
1108
 
1109
#define LASTFIELD -1      /* internal define */
1110
 
1111
/* configure options specified */
1112
#define CONFIGURE_OPTIONS "<manually hacked for eCos>"
1113
 
1114
#ifndef HAVE_STRCHR
1115
#ifdef HAVE_INDEX
1116
# define strchr index
1117
# define strrchr rindex
1118
#endif
1119
#endif
1120
 
1121
#ifndef HAVE_INDEX
1122
#ifdef HAVE_STRCHR
1123
# define index strchr
1124
# define rindex strrchr
1125
#endif
1126
#endif
1127
 
1128
#ifndef HAVE_MEMCPY
1129
#ifdef HAVE_BCOPY
1130
# define memcpy(d, s, n) bcopy ((s), (d), (n))
1131
# define memmove(d, s, n) bcopy ((s), (d), (n))
1132
# define memcmp bcmp
1133
#endif
1134
#endif
1135
 
1136
#ifndef HAVE_MEMMOVE
1137
#ifdef HAVE_MEMCPY
1138
# define memmove memcpy
1139
#endif
1140
#endif
1141
 
1142
#ifndef HAVE_BCOPY
1143
#ifdef HAVE_MEMCPY
1144
# define bcopy(s, d, n) memcpy ((d), (s), (n))
1145
# define bzero(p,n) memset((p),(0),(n))
1146
# define bcmp memcmp
1147
#endif
1148
#endif
1149
 
1150
 
1151
/* define random functions */
1152
 
1153
#ifndef HAVE_RANDOM
1154
#ifdef HAVE_LRAND48
1155
#define random lrand48
1156
#define srandom(s) srand48(s)
1157
#else
1158
#ifdef HAVE_RAND
1159
#ifdef __ECOS
1160
#include <pkgconf/system.h>
1161
#ifndef CYGPKG_NET_FREEBSD_STACK
1162
 
1163
#define random rand
1164
 
1165
#endif //CYGPKG_NET_FREEBSD_STACK
1166
#endif // __ECOS
1167
#define srandom(s) srand(s)
1168
#endif
1169
#endif
1170
#endif
1171
 
1172
/* define signal if DNE */
1173
 
1174
#ifndef HAVE_SIGNAL
1175
#ifdef HAVE_SIGSET
1176
#define signal(a,b) sigset(a,b)
1177
#endif
1178
#endif
1179
 
1180
/* define if you have librpm and libdb */
1181
#define HAVE_LIBDB 1
1182
#define HAVE_LIBRPM 1
1183
 
1184
/* define if you have gethostbyname */
1185
#ifdef CYGINT_ISO_DNS
1186
# define HAVE_GETHOSTBYNAME 1
1187
#endif
1188
 
1189
/* define if you have getservbyname */
1190
#define HAVE_GETSERVBYNAME 1
1191
 
1192
/* Not-to-be-compiled macros for use by configure only */
1193
#define config_require(x)
1194
#define config_arch_require(x,y)
1195
#define config_parse_dot_conf(w,x,y,z)
1196
#define config_add_mib(x)
1197
 
1198
#ifdef WIN32
1199
#define ENV_SEPARATOR ";"
1200
#define ENV_SEPARATOR_CHAR ';'
1201
#else
1202
#define ENV_SEPARATOR ":"
1203
#define ENV_SEPARATOR_CHAR ':'
1204
#endif
1205
 
1206
//#include SYSTEM_INCLUDE_FILE
1207
//#include MACHINE_INCLUDE_FILE
1208
 
1209
#if defined(HAVE_NLIST) && defined(STRUCT_NLIST_HAS_N_VALUE) && !defined(DONT_USE_NLIST)
1210
#define CAN_USE_NLIST
1211
#endif
1212
 
1213
/* #undef INET6 */
1214
 
1215
// Be rid of lots of warning because of use of #if instead of #ifdef:
1216
#define HAVE_SYSLOG_H                           0
1217
#define HAVE_WINSOCK_H                          0
1218
#define HAVE_DMALLOC_H                          0
1219
#define SNMP_TESTING_CODE                       0
1220
#define HAVE_DIRENT_H                           0
1221
#define HAVE_SYS_NDIR_H                         0
1222
#define HAVE_SYS_DIR_H                          0
1223
#define HAVE_NDIR_H                             0
1224
#define HAVE_UNISTD_H                           0
1225
#define HAVE_FCNTL_H                            0
1226
#define HAVE_MALLOC_H                           0
1227
#define HAVE_SYS_FILE_H                         0
1228
#define HAVE_KSTAT_H                            0
1229
#define HAVE_SYS_UN_H                           0
1230
#define SOCK_MAXADDRLEN                         255
1231
#define HAVE_SYS_STREAM_H                       0
1232
#define HAVE_INET_MIB2_H                        0
1233
#define HAVE_GETPID                             0
1234
#define HAVE_FORK                               0
1235
 
1236
 
1237
 
1238
#define ECOSFIXME_NEEDFILESYSTEM                1
1239
 
1240
 
1241
 
1242
#define __time_t_defined 
1243
 
1244
#include <stddef.h>
1245
#include <time.h>
1246
#include <sys/types.h>
1247
 
1248
 
1249
#include <system.h>
1250
 
1251
#include <network.h>
1252
 
1253
 
1254
 
1255
 

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.