Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

fpdetect.h

Go to the documentation of this file.
00001 /*
00002 ** $Id$
00003 **
00004 ** fpfuncs.h
00005 **
00006 ** Copyright (C) 2002 Sourcefire,Inc
00007 ** Dan Roelker <droelker@sourcefire.com>
00008 ** Marc Norton <mnorton@sourcefire.com>
00009 **
00010 ** NOTES
00011 ** 5.15.02 - Initial Source Code. Norton/Roelker
00012 **
00013 ** This program is free software; you can redistribute it and/or modify
00014 ** it under the terms of the GNU General Public License as published by
00015 ** the Free Software Foundation; either version 2 of the License, or
00016 ** (at your option) any later version.
00017 **
00018 ** This program is distributed in the hope that it will be useful,
00019 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00020 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00021 ** GNU General Public License for more details.
00022 **
00023 ** You should have received a copy of the GNU General Public License
00024 ** along with this program; if not, write to the Free Software
00025 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00026 **
00027 */
00028 
00029 #ifndef __FPDETECT_H__
00030 #define __FPDETECT_H__
00031 
00032 #ifdef HAVE_CONFIG_H
00033 #include "config.h"
00034 #endif
00035 
00036 #include "fpcreate.h"
00037 
00038 #ifndef DEBUG
00039     #ifndef INLINE
00040         #define INLINE inline
00041     #endif
00042 #else
00043     #ifdef INLINE
00044         #undef INLINE
00045     #endif
00046     #define INLINE   
00047 #endif /* DEBUG */
00048 
00049 int OtnXMatchDataInitialize();
00050 
00051 /*
00052 **  Function for fpcreate to use to pass detection options to
00053 **  fpdetect.
00054 */
00055 int fpSetDetectionOptions(FPDETECT *fpDetect);
00056 
00057 /*
00058 **  This is the only function that is needed to do an
00059 **  inspection on a packet.
00060 */
00061 int fpEvalPacket(Packet *p);
00062 
00063 int fpLogEvent(RuleTreeNode *rtn, OptTreeNode *otn, Packet *p);
00064 
00065 #endif

Generated on Sun May 14 14:51:13 2006 by  doxygen 1.4.2