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

net/ids.cpp

Go to the documentation of this file.
00001 
00022 #include "ids.h"
00023 #include "con/print.cpp"
00024 
00025 #ifndef _NET_IDS_CPP_
00026 #define _NET_IDS_CPP_
00027 
00028 // XXX Move this to config.h
00029 #define DEBUG
00030 // XXX
00031 
00032 static const char idsid[] = "\100$ Free Agent: ids.cpp, v 0.1 2002/05/29 red0x Exp $";
00033 
00034 #ifdef DEBUG
00035 unsigned long int icmp = 0, udp = 0, tcp = 0, ip = 0;
00036 unsigned long int max_icmp = 0, max_udp = 0, max_tcp = 0, max_ip=0;
00037 #endif
00038 
00039 /*
00040 void agent_packet_process(u_char *pcap_data, const struct pcap_pkthdr *packet_header,
00041     const u_char *packet)
00042 {
00043     struct ether_header *ethernet_hdr;
00044     struct iphdr *ip_hdr;
00045     #ifdef DEBUG
00046     agent_println(" In packet_process");
00047     agent_print  ("   total packet len: ");
00048     agent_println(packet_header->len);
00049     agent_print  ("   captured packet len: ");
00050     agent_println(packet_header->caplen);
00051     #endif //DEBUG
00052 }*/
00053 
00054 #endif

Generated at Thu May 30 15:12:33 2002 for Freeagent by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001