[Snort-devel] dpx-1.6 / snort 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);


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 problem?


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

dpx.c:260:27: error: 'DynamicPreprocessorData' has no member named 'getRuntimePolicy'

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

# grep _dpd.getRuntimePolicy -R

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

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

/home/luc/Downloads/snort- # cd ../snort-
/home/luc/Downloads/snort- # 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();


Any help is appreciated.



-------------- 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