Snort mailing list archives

Re: dpx-1.6 / snort 2.9.7.0 problem?


From: "Josh Rosenbaum (jrosenba)" <jrosenba () cisco com>
Date: Fri, 7 Nov 2014 23:39:10 +0000

Hi Luc and Amtul,



Sorry for the delay.  To build dpx, either apply the following patch or change _dpd.getRuntimePolicy() to 
_dpd.getNapRuntimePolicy().




--- ./src/dpx.c 2013-11-07 16:50:52.000000000 -0600

+++ ./src/dpx.c 2014-11-07 17:05:33.000000000 -0600

@@ -257,7 +257,7 @@

 static void DPX_Process (void* pkt, void* context)

 {

     SFSnortPacket* p = (SFSnortPacket*)pkt;

-    tSfPolicyId pid = _dpd.getRuntimePolicy();

+    tSfPolicyId pid = _dpd.getNapRuntimePolicy();

     DPX_Config* config;



     sfPolicyUserPolicySet(curr_data, pid);


Josh



From: <Zeeuw>, "L.V. de" <l.v.de.zeeuw () hr nl<mailto:l.v.de.zeeuw () hr nl>>
Date: Tuesday, November 4, 2014 at 12:33 PM
To: "snort-devel () lists sourceforge net<mailto:snort-devel () lists sourceforge net>" <snort-devel () lists 
sourceforge net<mailto:snort-devel () lists sourceforge net>>
Subject: [Snort-devel] dpx-1.6 / snort 2.9.7.0 problem?

L.S.

I should like to use dpx-1.6 and snort 2.9.7.0 but I am not able to compile dpx anymore (it worked using snort 2.9.6.1).

#/build.sh
..
dpx.c:260:27: error: 'DynamicPreprocessorData' has no member named 'getRuntimePolicy'
..

In the latest snort-tarball (2.9.7.0) I can not find _dpd.getRuntimePolicy() being used.

Using
# grep _dpd.getRuntimePolicy -R

I will find lots of *.c source files using this function in snort-2.9.6.1 but non in snort-2.9.7.0 ?

/home/luc/Downloads # cd snort-2.9.7.0
/home/luc/Downloads/snort-2.9.7.0 # grep _dpd.getRuntimePolicy -R
... no output ...

/home/luc/Downloads/snort-2.9.7.0 # cd ../snort-2.9.6.1
/home/luc/Downloads/snort-2.9.6.1 # grep _dpd.getRuntimePolicy -R
src/dynamic-examples/dynamic-preprocessor/spp_example.c:    sfPolicyUserPolicySet(ex_config, _dpd.getRuntimePolicy());
src/dynamic-preprocessors/ftptelnet/ftpp_si.c:        tSfPolicyId policy_id = _dpd.getRuntimePolicy();
src/dynamic-preprocessors/ftptelnet/ftpp_si.c:            tSfPolicyId policy_id = _dpd.getRuntimePolicy();
src/dynamic-preprocessors/ftptelnet/snort_ftptelnet.c:    tSfPolicyId policy_id = _dpd.getRuntimePolicy();

etc.

Any help is appreciated.

Regards,

Luc


------------------------------------------------------------------------------
_______________________________________________
Snort-devel mailing list
Snort-devel () lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/snort-devel
Archive:
http://sourceforge.net/mailarchive/forum.php?forum_name=snort-devel

Please visit http://blog.snort.org for the latest news about Snort!

Current thread: