/*
** CBLM v3
** $Id: cblm.h,v 1.6 2006/06/20 22:48:48 sella Exp $
** Copyright (c) 2004 James M. Sella. All Rights Reserved.
** Released under the GPL Version 2 License.
** http://www.digitalgenesis.com
** 
** Cheap Bastard Latency Monitor v3
*/

#ifndef __DGS_CBLM_H
#define __DGS_CBLM_H

#ifdef HAVE_CONFIG_H
	#include <config.h>
#endif

#ifndef __USE_BSD
	#define __USE_BSD
#endif
#include <netinet/ip.h>
#ifndef __FAVOR_BSD
	#define __FAVOR_BSD
#endif
#include <netinet/udp.h>

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <arpa/inet.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>

#include <syslog.h>

#include <fcntl.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/ioctl.h>
#include <net/if.h> 
#include <errno.h>
#include <pthread.h>

#include <mysql/mysql.h>

#include <assert.h>

#define PROGRAM_PKGN CBLM_PACKAGE
#define PROGRAM_NAME CBLM_PROGRAM
#define PROGRAM_VERS CBLM_VERSION
#define PROGRAM_BUGS CBLM_BUGREPORT

#define DB_RECON_WAIT (300 * 1000000) /* 5 min */
#define DEF_SYSLOG_FACILITY LOG_LOCAL0

#define DEBUG_ERROR		1 /* Near fatal condition. */
#define DEBUG_WARNING	3 /* Non-normal significant condition. */
#define DEBUG_NOTICE		5 /* Notice: Normal, but significant condition. */
#define DEBUG_INTERNAL	7 /* Intertnal debugging information. Low traffic. */
#define DEBUG_SQL			8 /* SQL statements. Medium traffic. */
#define DEBUG_DUMP		9 /* Dump of internal raw data. High traffic. */
#define DEBUG_MAXVAL		9

/* Function definitions. */
void sighandler(int sig);

int hash_test();

#endif

/*
** Local Variables:
** c-basic-offset: 3
** tab-width: 3
** End:
** vim: noet ts=3 sw=3
*/
