Snort mailing list archives

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


From: "Joel Esler (jesler)" <jesler () cisco com>
Date: Thu, 29 Jan 2015 20:14:38 +0000

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 () gmail com> 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 () 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!

Attachment: smime.p7s
Description:

------------------------------------------------------------------------------
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-devel mailing list
Snort-devel () lists sourceforge net
https://lists.sourceforge.net/lists/listinfo/snort-devel
Archive:
http://sourceforge.net/mailarchive/forum.php?forum_name=snort-devel

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

Current thread: