Snort mailing list archives

acsmx2.c


From: Rayne <hjazz6 () ymail com>
Date: Mon, 3 Nov 2008 17:44:36 -0800 (PST)

Hi,

In the acsmx2.c file, the acsmSearch2 function was called by
acsmSearch2(acsm, text, strlen(text), MatchFound, (void *)0);

However, the function header for this function is 
int acsmSearch2 ( ACSM_STRUCT2 * acsm, unsigned char * T, int n, 
#ifdef DETECTION_OPTION_TREE
          int (*Match)(void * id, void *tree, int index, void *data),
#else
          int (*Match)( void * id, int index, void * data ),
#endif
                  void * data, int* current_state );

So assuming the (void *)0 in acsmx2.c corresponds to void *data, where is the int* current_state?

Also, what does the void *data in both the Match, MatchFound and acsmSearch2 functions represent or point to?

Thank you.

Regards,
Rayne



      
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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://www.geocrawler.com/redir-sf.php3?list=snort-users

Current thread: