Snort mailing list archives

Re: Multi threading in ips_options


From: "Carter Waxman \(cwaxman\) via Snort-devel" <snort-devel () lists snort org>
Date: Mon, 11 Mar 2019 12:37:31 +0000

Hi Diamian,

There shouldn’t be any critical sections in an ips options. The current threading model places 1 interface set / pcap 
per thread, so threads shouldn’t need to share any data with each other. What global data are you trying to share?


  *   Carter

From: Snort-devel <snort-devel-bounces () lists snort org> on behalf of Damian Chiliński via Snort-devel <snort-devel 
() lists snort org>
Reply-To: Damian Chiliński <lapsio3 () gmail com>
Date: Sunday, March 10, 2019 at 10:28 PM
To: "snort-devel () lists snort org" <snort-devel () lists snort org>
Subject: [Snort-devel] Multi threading in ips_options

How does multi threading work in Snort 3? I mean - i made IPS Option and I want it to be stateful (as in use global 
data shared amongst all ips option instances). However from what I saw in manual Snort 3 support multi threading. So 
how do I handle critical sections in IPS Option module code? Can I just use pthread mutexes? Or is there some other 
recommended way?

Best regards
Damian Chilinski
_______________________________________________
Snort-devel mailing list
Snort-devel () lists snort org
https://lists.snort.org/mailman/listinfo/snort-devel

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

Current thread: