1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
|
/* Sniffit Config File */
/* - By: Brecht Claerhout */
/* Because of the use of GNU autoconfig, this file manages pretty much */
/* itself, you could however still add your personal touch in some parts */
#define INCLUDE_INTERFACE /* By default */
#ifndef HAVE_SHMGET /* No Shared memory */
#undef INCLUDE_INTERFACE
#endif
#ifndef HAVE_LIBNCURSES /* ncurses not found */
#undef INCLUDE_INTERFACE
#endif
#ifndef HAVE_NCURSES_H /* ncurses not found */
#undef INCLUDE_INTERFACE
#endif
#ifdef IRIX /* No interface on IRIX */
#undef INCLUDE_INTERFACE
#endif
/* Not supported yet */
#ifdef BSDI
#undef INCLUDE_INTERFACE
#endif
#ifdef HAVE_ATEXIT
#define exit_func(x) atexit(x)
#else
#define exit_func(x) on_exit (x,0)
#endif
/***************************************************************************/
/* If you want to allow the program to be used 'set user id' */
/* #define ALLOW_SUID */
#undef ALLOW_SUID
/***************************************************************************/
/* Following parameters describe the connections that can be handled at */
/* once, MAXCOUNT stands for connections handled in normal mode. As */
/* memory in normal mode is now handled dynamically, you can pump this */
/* number up without having to much trouble (Watch it, the machine */
/* could be slowed down a lot, and packets could get missed) */
/* CONNECTION_CAPACITY is the same, except in interactive mode, this is */
/* more dangerous to change, if you machine goes to slow (when sniffing */
/* in interactive mode), lower this number. */
#define MAXCOUNT 500
#ifdef INCLUDE_INTERFACE
#define CONNECTION_CAPACITY 100
#endif
/* This is the interval time for the netstatistics */
#define INFO_TIMER 3 /* In seconds */
/***************************************************************************/
/* Enable/Disable Packet generation function */
#undef GENERATION
#ifdef INCLUDE_INTERFACE
#define GENERATION
/* #undef GENERATION */
#endif
/***************************************************************************/
/* Read about forcing the sniff device in the README.FIRST file */
#define FORCED_HEAD_LENGTH 14 /* default */
/* MTU: this could need a change on interfaces different from ethernet or on non-standard */
/* configured systems. Get the info out of 'ifconfig'. */
/* But 1500 is a standard. */
#define MTU 5000
/*************** Don't change anything below this line *********************/
#undef DEBUG /* Debugging (to tty) - sigh */
/* #define DEBUG */
#define DEBUG_DEVICE "/dev/ttyp6"
#undef DEBUG_ONSCREEN /* Debugging (to screen) - sigh */
/* #define DEBUG_ONSCREEN */
#ifdef DEBUG
void close_debug_device (void);
void debug_msg(char *);
#endif
|