36 lines
811 B
C
36 lines
811 B
C
|
/******************************************************************************
|
||
|
*
|
||
|
* wormulon.h
|
||
|
*
|
||
|
* application specific defines. You should never need to tune anything here
|
||
|
*
|
||
|
******************************************************************************
|
||
|
* $Id: wormulon.h,v 1.1 2003/08/24 20:02:29 bwalle Exp $
|
||
|
*****************************************************************************/
|
||
|
|
||
|
#ifndef _WORMULON_H
|
||
|
|
||
|
#ifndef TRUE
|
||
|
#define TRUE 1
|
||
|
#endif
|
||
|
#ifndef FALSE
|
||
|
#define FALSE 0
|
||
|
#endif
|
||
|
|
||
|
#define SAMPLE_TIME 1 /* one second default sample time */
|
||
|
|
||
|
#ifdef __linux__
|
||
|
#define PATH_NET_DEV "/proc/net/dev"
|
||
|
static FILE *proc_net_dev;
|
||
|
#endif
|
||
|
|
||
|
/* define possible options */
|
||
|
#define OPT_NONE 0x0000
|
||
|
#define OPT_MRTG 0x0001
|
||
|
#define OPT_FULLMRTG 0x0002
|
||
|
#ifdef CUSTOM_MODE
|
||
|
#define OPT_CUSTOM 0x0004
|
||
|
#endif
|
||
|
|
||
|
#endif
|