Snort mailing list archives

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


From: zT <zzahra88 () gmail com>
Date: Thu, 29 Jan 2015 23:07:11 +0330

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!

Current thread: