Logo Search packages:      
Sourcecode: ulog-acctd version File versions  Download package

config.h

/*
  ulog-acctd

  (C) 2002 Hilko Bengen

  $Id: config.h,v 1.13 2004/04/06 08:49:35 bengen Exp $
*/

struct config
{
  char *acct_file;
  char *dump_file;
  char *dbg_file;
  char *pid_file;
  char *acct_format;
  char *date_format;
  int flush; /* in seconds */
  int fdelay; /* in seconds */
  int err_delay; /* how many cycles to delay on error ? */
  int mcast_group;
  int output, debug; /* bitmasks */
  size_t so_rcvbuf;
  unsigned int hash_table_size;
  unsigned int hash_mask;
  unsigned int hash_initval;
  int logger_nice_value;
  char empty_iface[32];
  char empty_prefix[32];
};

extern struct config *cfg; 

extern int acct_file;
extern int dump_file;
extern int dbg_file;

extern char *fname;

#define DEFAULT_CONFFILE "/etc/ulog-acctd.conf"
#define DEFAULT_DATEFORMAT "%d/%m/%y %H:%M:%S"

/* default settings for naccttab */
#define DEFAULT_FLUSH 300
#define DEFAULT_ERR_DELAY 3
#define DEFAULT_FDELAY 60

#define FORCE_STAT_TIME 5

#define VERSION "0.4.2"

/* config.c */
struct config *read_config(char *fname);

Generated by  Doxygen 1.6.0   Back to index