Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

netIDS Class Reference

#include <ids.h>

List of all members.

Public Methods

 netIDS ()
 ~netIDS ()
int startSniffer (void *device)
int stopSniffer ()
int loadProtocolHandler (proHan *pro_handler)
int unloadProtocolHandler (int pro)

Private Methods

pcap_t* open (char *pcap_device)

Private Attributes

unsigned int protocols_loaded
pcap_t* pcap_structure
char pcap_error [10000]
void* protocol []


Detailed Description

Class will handle the setup and execution of network sniffer and protocol handlers.
Todo:
Finish this implementation

Implement a way for protocol handlers to be pluggable

Add a way to keep track of all the protocol handlers

NONE OF THESE FUNCTIONS ARE IMPLEMENTED.

Definition at line 53 of file ids.h.


Constructor & Destructor Documentation

netIDS::netIDS ( )
 

netIDS::~netIDS ( )
 


Member Function Documentation

int netIDS::loadProtocolHandler ( proHan * pro_handler )
 

pcap_t * netIDS::open ( char * pcap_device ) [private]
 

int netIDS::startSniffer ( void * device )
 

int netIDS::stopSniffer ( )
 

int netIDS::unloadProtocolHandler ( int pro )
 


Member Data Documentation

char netIDS::pcap_error [private]
 

last pcap error

Definition at line 70 of file ids.h.

pcap_t * netIDS::pcap_structure [private]
 

our pcap structure

Definition at line 68 of file ids.h.

void * netIDS::protocol [private]
 

array of protocol handler pointers?

Definition at line 72 of file ids.h.

unsigned int netIDS::protocols_loaded [private]
 

Number of protocol handlers loaded

Definition at line 66 of file ids.h.


The documentation for this class was generated from the following file:
Generated at Thu May 30 15:12:34 2002 for Freeagent by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001