Re: Multi threading in ips_options
"Carter Waxman \(cwaxman\) via Snort-devel" <[email protected]> Mon, 11 Mar 2019 12:37:31 +0000
| Newsgroups | gmane.comp.security.ids.snort.devel |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> on behalf of Damian Chiliński via Snort-devel <[email protected]> Reply-To: Damian Chiliński <[email protected]> Date: Sunday, March 10, 2019 at 10:28 PM To: "[email protected]" <[email protected]> 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 [email protected] https://lists.snort.org/mailman/listinfo/snort-devel Please visit http://blog.snort.org for the latest news about Snort!