View | Details | Raw Unified | Return to bug 154868
Collapse All | Expand All

(-)/usr/ports/security/snort/Makefile (-1 / +1 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	snort
8
PORTNAME=	snort
9
PORTVERSION=	2.9.0.4
9
PORTVERSION=	2.9.0.4
10
PORTREVISION=	2	
10
PORTREVISION=	1
11
CATEGORIES=	security
11
CATEGORIES=	security
12
MASTER_SITES=	SF/snort/snort
12
MASTER_SITES=	SF/snort/snort
13
13
(-)/usr/ports/security/snort/files/patch-DisableDynamic (-110 lines)
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
 
(-)/usr/ports/security/snort/files/patch-HttpInspect (-27 lines)
Lines 1-27 Link Here
1
Index: src/preprocessors/HttpInspect/client/hi_client.c
2
===================================================================
3
diff -u -p -r1.97.2.2 hi_client.c
4
--- src/preprocessors/HttpInspect/client/hi_client.c	27 Jan 2011 00:15:39 -0000	1.97.2.2
5
+++ src/preprocessors/HttpInspect/client/hi_client.c	17 Feb 2011 18:48:41 -0000
6
@@ -1907,6 +1907,8 @@ static INLINE const u_char *hi_client_ex
7
         return p;
8
     }
9
     header_ptr->content_len.len = 0;
10
+    header_ptr->header.uri = start;
11
+    header_ptr->header.uri_end = end;
12
 
13
     /* This is to skip past the HTTP/1.0 (or 1.1) version string */
14
     if (IsHttpVersion(&p, end))
15
Index: src/preprocessors/HttpInspect/server/hi_server.c
16
===================================================================ls
17
diff -u -p -r1.59.2.3 hi_server.c
18
--- src/preprocessors/HttpInspect/server/hi_server.c	27 Jan 2011 00:15:56 -0000	1.59.2.3
19
+++ src/preprocessors/HttpInspect/server/hi_server.c	17 Feb 2011 18:48:41 -0000
20
@@ -601,6 +601,7 @@ static INLINE const u_char *hi_server_ex
21
     offset = (u_char*)p;
22
 
23
     header_ptr->header.uri = p;
24
+    header_ptr->header.uri_end = end;
25
     header_ptr->content_encoding.compress_fmt = 0;
26
     header_ptr->content_len.len = 0;
27

Return to bug 154868