/* * Copyright (C) 2002 scott campbell * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * -------------------------------------------------------------------------------- * sp_stream_depth.c version 1.0 07/30/02 * */ #ifndef __SP_STREAM_DEPTH_H__ #define __SP_STREAM_DEPTH_H__ #include "rules.h" #include "decode.h" #include "plugbase.h" #include "parser.h" #include "debug.h" #include "util.h" #include "plugin_enum.h" #include "mstring.h" #include #include #include #define PLUGIN_STREAM 30 /* series of defines to make the code easyer to read */ #define STRM_PKT_EQ 1 /* packet in stream = # */ #define STRM_PKT_LT 2 /* packet in stream < # */ #define STRM_PKT_GT 3 /* packet in stream > # */ #define STRM_PKT_LG 4 /* packet in stream < #1 && > #2 */ #define STRM_BYTE_LT 5 /* byte count in stream < # */ #define STRM_BYTE_GT 6 /* byte count in stream > # */ #define STRM_BYTE_LG 7 /* byte count in stream < #1 && > #2 */ typedef struct _StreamData { int command; /* the basic command */ int argument1; /* offset 1 */ int argument2; /* optional offset 2 */ } StreamData; void StreamAccessInit(char *, OptTreeNode *, int); void StreamParse(char *, OptTreeNode *); int StreamFilter(Packet *, struct _OptTreeNode *, OptFpList *); #endif /* __SP_STREAM_DEPTH_H__ */