[Snort-users] [Snort-user] registerRule(Rule **) error

Joel Esler (jesler) jesler at ...589...
Thu Jan 29 15:14:38 EST 2015


This might be better over on snort-devel.

CC'ed

--
Joel Esler
Open Source Manager
Threat Intelligence Team Lead
Talos


> On Jan 29, 2015, at 11:37 AM, zT <zzahra88 at ...11827...> wrote:
> 
> hello All, i have test example of snortIDS&IPS TOOLKIT.pdf about
> dynamic modules. I copy code of that file and i got this error in my
> InnerWorkingsDynmaicRules:
> InnerWorkingsDynamicRules.c:48:2: error: too few arguments to function
> ‘RegisterRules’
> and this is the content of that file:
> extern Rule sid109;
> extern Rule sid637;
> extern Rule Rule2329;
> Rule *rules[] =
> {
>    &sid109,&sid637,&Rule2329,NULL
> };
> int InitializeDetection()
> {
> 	return RegisterRules(rules);
> }
> 
> i'm really confuse. rules is an array of rules and these codes are the
> same as codes in snort IDS&IPS TOOLKIT.pdf .what is going wrong in
> these codes???
> thanks & Regards
> 
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Snort-users mailing list
> Snort-users at lists.sourceforge.net
> Go to this URL to change user options or unsubscribe:
> https://lists.sourceforge.net/lists/listinfo/snort-users
> Snort-users list archive:
> http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users
> 
> Please visit http://blog.snort.org to stay current on all the latest Snort news!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.snort.org/pipermail/snort-users/attachments/20150129/91a72af3/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2368 bytes
Desc: not available
URL: <https://lists.snort.org/pipermail/snort-users/attachments/20150129/91a72af3/attachment.bin>


More information about the Snort-users mailing list