~ubuntu-branches/ubuntu/utopic/suricata/utopic

« back to all changes in this revision

Viewing changes to src/detect-engine-tag.h

  • Committer: Package Import Robot
  • Author(s): Pierre Chifflier
  • Date: 2012-07-22 22:27:36 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20120722222736-s2bcw3ruzenagjam
Tags: 1.3-1
* Imported Upstream version 1.3
* Add build-dependency on libnss3-dev and libnspr4-dev
* Bump Standards Version to 3.9.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
#ifndef __DETECT_ENGINE_TAG_H__
28
28
#define __DETECT_ENGINE_TAG_H__
29
29
 
 
30
#include "host.h"
30
31
#include "detect.h"
31
32
 
32
 
#define TAG_HASH_SIZE 0xffff
33
 
 
34
33
/* This limit should be overwriten/predefined at the config file
35
34
 * to limit the options to prevent possible DOS situations. We should also
36
35
 * create a limit for bytes and a limit for number of packets */
43
42
#define TAG_SIG_GEN           2
44
43
#define TAG_SIG_ID            1
45
44
 
46
 
void TagHashInit(DetectTagHostCtx *);
47
 
int TagHashAddTag(DetectTagHostCtx *, DetectTagDataEntry *, Packet *);
48
 
void TagContextDestroy(DetectTagHostCtx *);
49
 
void TagHandlePacket(DetectEngineCtx *, DetectEngineThreadCtx *,
50
 
                     Packet *);
 
45
int TagHashAddTag(DetectTagDataEntry *, Packet *);
 
46
int TagFlowAdd(Packet *, DetectTagDataEntry *);
 
47
 
 
48
void TagContextDestroy(void);
 
49
void TagHandlePacket(DetectEngineCtx *, DetectEngineThreadCtx *, Packet *);
51
50
 
52
51
void TagInitCtx(void);
53
52
void TagDestroyCtx(void);
54
53
void TagRestartCtx(void);
55
54
 
 
55
int TagTimeoutCheck(Host *, struct timeval *);
 
56
 
56
57
#endif /* __DETECT_ENGINE_TAG_H__ */
57
58
 
58
59