[Snort-devel] dpx-1.6 / snort 2.9.7.0 problem?

Josh Rosenbaum (jrosenba) jrosenba at ...3461...
Fri Nov 7 18:39:10 EST 2014


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 at ...3504...<mailto:l.v.de.zeeuw at ...3519...04...>>
Date: Tuesday, November 4, 2014 at 12:33 PM
To: "snort-devel at lists.sourceforge.net<mailto:snort-devel at ...362....net>" <snort-devel at lists.sourceforge.net<mailto:snort-devel at ...2763...rge.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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-devel/attachments/20141107/d492ea9f/attachment.html>


More information about the Snort-devel mailing list