/*
** SellaNMS
** $Id: bgp.h,v 1.4 2005/11/26 06:48:45 sella Exp $
** Copyright (c) 2001-2005 Digital Genesis Software, LLC. All Rights Reserved.
** Released under the GPL Version 2 License.
** http://www.digitalgenesis.com
*/

#ifndef __DGS_MONITOR_BGP_H
#define __DGS_MONITOR_BGP_H

#ifdef HAVE_CONFIG_H
	#include "config.h"
#endif

#include "defaults.h"
#include "bgp.h"
#include "common/util.h"
#include "common/netblock.h"
#include "storage/storagedata.h"
#include "policy_framework/policy_framework.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>
#include <arpa/inet.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/ip.h>
#include <netinet/ip_icmp.h>
#include <stl/list>
#include <stl/queue>
#include <stl/list>
#include <stl/string>

class BGP {
	public:
		BGP();
		~BGP();
		virtual RESULT execute();
		virtual RESULT readConfig();

	protected:
		void update(const char *table);

	private:
		virtual void printConfig();

		Vector<string> allowVector;
		Vector<string> neighborVector;
		HashMap<thread_id, Neighbor> neighborhood;

		time_t timestamp;
		unsigned long interval;
		PolicyFramework outputPolicy;
		Storage storage;
};

#endif

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