Lines 1-110
Link Here
|
1 |
? cflags.out |
|
|
2 |
? cppflags.out |
3 |
? cscope.out |
4 |
? disabledynamic.patch |
5 |
? http.patch |
6 |
? log |
7 |
? make.out |
8 |
? rules.work |
9 |
? snort-build.sh |
10 |
? snort.pc |
11 |
? ylwrap |
12 |
? etc/snort.conf.work |
13 |
? src/dynamic-preprocessors/rzb_saac/Makefile |
14 |
? tools/u2boat/u2boat |
15 |
? tools/u2spewfoo/u2spewfoo |
16 |
Index: src/fpcreate.c |
17 |
=================================================================== |
18 |
RCS file: /usr/cvsroot/sfeng/ims/sfsnort/snort/src/fpcreate.c,v |
19 |
retrieving revision 1.107.2.2 |
20 |
diff -u -p -r1.107.2.2 fpcreate.c |
21 |
--- src/fpcreate.c 11 Jan 2011 22:54:40 -0000 1.107.2.2 |
22 |
+++ src/fpcreate.c 17 Feb 2011 20:06:49 -0000 |
23 |
@@ -70,6 +70,8 @@ |
24 |
#include "dynamic-plugins/sp_preprocopt.h" |
25 |
#endif |
26 |
|
27 |
+#include "dynamic-plugins/sf_dynamic_define.h" |
28 |
+ |
29 |
|
30 |
/* |
31 |
* Content flag values |
32 |
@@ -1810,9 +1812,11 @@ static int fpAddPortGroupRule(PORT_GROUP |
33 |
fpAddAllContents(pg->pgPms[PM_TYPE__CONTENT], otn, id, pmd, fp); |
34 |
#endif |
35 |
|
36 |
+#ifdef DYNAMIC_PLUGIN |
37 |
/* No content added */ |
38 |
if (pmd == preproc_opt_pmds) |
39 |
FreePmdList(pmd); |
40 |
+#endif |
41 |
|
42 |
if (fpFinishPortGroupRule(pg, PM_TYPE__MAX, otn, NULL, fp) != 0) |
43 |
return -1; |
44 |
Index: src/dynamic-plugins/sf_dynamic_define.h |
45 |
=================================================================== |
46 |
RCS file: /usr/cvsroot/sfeng/ims/sfsnort/snort/src/dynamic-plugins/sf_dynamic_define.h,v |
47 |
retrieving revision 1.15.4.1 |
48 |
diff -u -p -r1.15.4.1 sf_dynamic_define.h |
49 |
--- src/dynamic-plugins/sf_dynamic_define.h 3 Jan 2011 19:58:05 -0000 1.15.4.1 |
50 |
+++ src/dynamic-plugins/sf_dynamic_define.h 17 Feb 2011 20:06:49 -0000 |
51 |
@@ -96,5 +96,15 @@ typedef enum { |
52 |
#endif |
53 |
#endif |
54 |
|
55 |
+/* Parameters are rule info pointer, int to indicate URI or NORM, |
56 |
+ * and list pointer */ |
57 |
+#define CONTENT_NORMAL 0x01 |
58 |
+#define CONTENT_HTTP_URI 0x02 |
59 |
+#define CONTENT_HTTP_HEADER 0x04 |
60 |
+#define CONTENT_HTTP_CLIENT_BODY 0x08 |
61 |
+#define CONTENT_HTTP_METHOD 0x10 |
62 |
+#define CONTENT_HTTP (CONTENT_HTTP_URI|CONTENT_HTTP_HEADER|\ |
63 |
+ CONTENT_HTTP_CLIENT_BODY|CONTENT_HTTP_METHOD) |
64 |
+ |
65 |
#endif /* _SF_DYNAMIC_DEFINE_H_ */ |
66 |
|
67 |
Index: src/dynamic-plugins/sf_dynamic_engine.h |
68 |
=================================================================== |
69 |
RCS file: /usr/cvsroot/sfeng/ims/sfsnort/snort/src/dynamic-plugins/sf_dynamic_engine.h,v |
70 |
retrieving revision 1.54.2.1 |
71 |
diff -u -p -r1.54.2.1 sf_dynamic_engine.h |
72 |
--- src/dynamic-plugins/sf_dynamic_engine.h 3 Jan 2011 19:58:06 -0000 1.54.2.1 |
73 |
+++ src/dynamic-plugins/sf_dynamic_engine.h 17 Feb 2011 20:06:49 -0000 |
74 |
@@ -77,15 +77,6 @@ typedef struct _FPContentInfo |
75 |
|
76 |
} FPContentInfo; |
77 |
|
78 |
-/* Parameters are rule info pointer, int to indicate URI or NORM, |
79 |
- * and list pointer */ |
80 |
-#define CONTENT_NORMAL 0x01 |
81 |
-#define CONTENT_HTTP_URI 0x02 |
82 |
-#define CONTENT_HTTP_HEADER 0x04 |
83 |
-#define CONTENT_HTTP_CLIENT_BODY 0x08 |
84 |
-#define CONTENT_HTTP_METHOD 0x10 |
85 |
-#define CONTENT_HTTP (CONTENT_HTTP_URI|CONTENT_HTTP_HEADER|\ |
86 |
- CONTENT_HTTP_CLIENT_BODY|CONTENT_HTTP_METHOD) |
87 |
typedef int (*GetDynamicContentsFunction)(void *, int, FPContentInfo **); |
88 |
typedef int (*GetDynamicPreprocOptFpContentsFunc)(void *, FPContentInfo **); |
89 |
typedef void (*RuleFreeFunc)(void *); |
90 |
Index: src/preprocessors/Stream5/snort_stream5_tcp.c |
91 |
=================================================================== |
92 |
RCS file: /usr/cvsroot/sfeng/ims/sfsnort/snort/src/preprocessors/Stream5/snort_stream5_tcp.c,v |
93 |
retrieving revision 1.296.2.5 |
94 |
diff -u -p -r1.296.2.5 snort_stream5_tcp.c |
95 |
--- src/preprocessors/Stream5/snort_stream5_tcp.c 7 Jan 2011 20:06:05 -0000 1.296.2.5 |
96 |
+++ src/preprocessors/Stream5/snort_stream5_tcp.c 17 Feb 2011 20:06:49 -0000 |
97 |
@@ -816,12 +816,12 @@ void Stream5TcpRegisterRuleOptions(void) |
98 |
RegisterPreprocessorRuleOption("stream_reassemble", &s5TcpStreamReassembleRuleOptionInit, |
99 |
&s5TcpStreamReassembleRuleOptionEval, &s5TcpStreamReassembleRuleOptionCleanup, |
100 |
NULL, NULL, NULL, NULL); |
101 |
-#endif |
102 |
|
103 |
#ifdef PERF_PROFILING |
104 |
RegisterPreprocessorProfile("stream_size", &streamSizePerfStats, 4, &preprocRuleOptionPerfStats); |
105 |
RegisterPreprocessorProfile("reassemble", &streamReassembleRuleOptionPerfStats, 4, &preprocRuleOptionPerfStats); |
106 |
#endif |
107 |
+#endif |
108 |
|
109 |
} |
110 |
|