@ -93,51 +93,51 @@ int SCACTileAddPatternCS(MpmCtx *, uint8_t *, uint16_t, uint16_t, uint16_t,
int SCACTilePreparePatterns ( MpmCtx * mpm_ctx ) ;
int SCACTilePreparePatterns ( MpmCtx * mpm_ctx ) ;
uint32_t SCACTileSearch ( const MpmCtx * mpm_ctx , MpmThreadCtx * mpm_thread_ctx ,
uint32_t SCACTileSearch ( const MpmCtx * mpm_ctx , MpmThreadCtx * mpm_thread_ctx ,
PrefilterRuleStore * pmq , const uint8_t * buf ,
PrefilterRuleStore * pmq , const uint8_t * buf ,
uint 16 _t buflen ) ;
uint 32 _t buflen ) ;
void SCACTilePrintInfo ( MpmCtx * mpm_ctx ) ;
void SCACTilePrintInfo ( MpmCtx * mpm_ctx ) ;
void SCACTilePrintSearchStats ( MpmThreadCtx * mpm_thread_ctx ) ;
void SCACTilePrintSearchStats ( MpmThreadCtx * mpm_thread_ctx ) ;
void SCACTileRegisterTests ( void ) ;
void SCACTileRegisterTests ( void ) ;
uint32_t SCACTileSearchLarge ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
uint32_t SCACTileSearchLarge ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
PrefilterRuleStore * pmq ,
PrefilterRuleStore * pmq ,
const uint8_t * buf , uint 16 _t buflen ) ;
const uint8_t * buf , uint 32 _t buflen ) ;
uint32_t SCACTileSearchSmall256 ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
uint32_t SCACTileSearchSmall256 ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
PrefilterRuleStore * pmq ,
PrefilterRuleStore * pmq ,
const uint8_t * buf , uint 16 _t buflen ) ;
const uint8_t * buf , uint 32 _t buflen ) ;
uint32_t SCACTileSearchSmall128 ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
uint32_t SCACTileSearchSmall128 ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
PrefilterRuleStore * pmq ,
PrefilterRuleStore * pmq ,
const uint8_t * buf , uint 16 _t buflen ) ;
const uint8_t * buf , uint 32 _t buflen ) ;
uint32_t SCACTileSearchSmall64 ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
uint32_t SCACTileSearchSmall64 ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
PrefilterRuleStore * pmq ,
PrefilterRuleStore * pmq ,
const uint8_t * buf , uint 16 _t buflen ) ;
const uint8_t * buf , uint 32 _t buflen ) ;
uint32_t SCACTileSearchSmall32 ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
uint32_t SCACTileSearchSmall32 ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
PrefilterRuleStore * pmq ,
PrefilterRuleStore * pmq ,
const uint8_t * buf , uint 16 _t buflen ) ;
const uint8_t * buf , uint 32 _t buflen ) ;
uint32_t SCACTileSearchSmall16 ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
uint32_t SCACTileSearchSmall16 ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
PrefilterRuleStore * pmq ,
PrefilterRuleStore * pmq ,
const uint8_t * buf , uint 16 _t buflen ) ;
const uint8_t * buf , uint 32 _t buflen ) ;
uint32_t SCACTileSearchSmall8 ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
uint32_t SCACTileSearchSmall8 ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
PrefilterRuleStore * pmq ,
PrefilterRuleStore * pmq ,
const uint8_t * buf , uint 16 _t buflen ) ;
const uint8_t * buf , uint 32 _t buflen ) ;
uint32_t SCACTileSearchTiny256 ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
uint32_t SCACTileSearchTiny256 ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
PrefilterRuleStore * pmq ,
PrefilterRuleStore * pmq ,
const uint8_t * buf , uint 16 _t buflen ) ;
const uint8_t * buf , uint 32 _t buflen ) ;
uint32_t SCACTileSearchTiny128 ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
uint32_t SCACTileSearchTiny128 ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
PrefilterRuleStore * pmq ,
PrefilterRuleStore * pmq ,
const uint8_t * buf , uint 16 _t buflen ) ;
const uint8_t * buf , uint 32 _t buflen ) ;
uint32_t SCACTileSearchTiny64 ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
uint32_t SCACTileSearchTiny64 ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
PrefilterRuleStore * pmq ,
PrefilterRuleStore * pmq ,
const uint8_t * buf , uint 16 _t buflen ) ;
const uint8_t * buf , uint 32 _t buflen ) ;
uint32_t SCACTileSearchTiny32 ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
uint32_t SCACTileSearchTiny32 ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
PrefilterRuleStore * pmq ,
PrefilterRuleStore * pmq ,
const uint8_t * buf , uint 16 _t buflen ) ;
const uint8_t * buf , uint 32 _t buflen ) ;
uint32_t SCACTileSearchTiny16 ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
uint32_t SCACTileSearchTiny16 ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
PrefilterRuleStore * pmq ,
PrefilterRuleStore * pmq ,
const uint8_t * buf , uint 16 _t buflen ) ;
const uint8_t * buf , uint 32 _t buflen ) ;
uint32_t SCACTileSearchTiny8 ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
uint32_t SCACTileSearchTiny8 ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
PrefilterRuleStore * pmq ,
PrefilterRuleStore * pmq ,
const uint8_t * buf , uint 16 _t buflen ) ;
const uint8_t * buf , uint 32 _t buflen ) ;
static void SCACTileDestroyInitCtx ( MpmCtx * mpm_ctx ) ;
static void SCACTileDestroyInitCtx ( MpmCtx * mpm_ctx ) ;
@ -1175,7 +1175,7 @@ void SCACTileDestroyCtx(MpmCtx *mpm_ctx)
# endif
# endif
static int CheckMatch ( const SCACTileSearchCtx * ctx , PrefilterRuleStore * pmq ,
static int CheckMatch ( const SCACTileSearchCtx * ctx , PrefilterRuleStore * pmq ,
const uint8_t * buf , uint 16 _t buflen ,
const uint8_t * buf , uint 32 _t buflen ,
uint16_t state , int i , int matches ,
uint16_t state , int i , int matches ,
uint8_t * mpm_bitarray )
uint8_t * mpm_bitarray )
{
{
@ -1242,7 +1242,7 @@ static int CheckMatch(const SCACTileSearchCtx *ctx, PrefilterRuleStore *pmq,
* \ retval matches Match count .
* \ retval matches Match count .
*/
*/
uint32_t SCACTileSearch ( const MpmCtx * mpm_ctx , MpmThreadCtx * mpm_thread_ctx ,
uint32_t SCACTileSearch ( const MpmCtx * mpm_ctx , MpmThreadCtx * mpm_thread_ctx ,
PrefilterRuleStore * pmq , const uint8_t * buf , uint 16 _t buflen )
PrefilterRuleStore * pmq , const uint8_t * buf , uint 32 _t buflen )
{
{
const SCACTileSearchCtx * search_ctx = ( SCACTileSearchCtx * ) mpm_ctx - > ctx ;
const SCACTileSearchCtx * search_ctx = ( SCACTileSearchCtx * ) mpm_ctx - > ctx ;
@ -1256,9 +1256,9 @@ uint32_t SCACTileSearch(const MpmCtx *mpm_ctx, MpmThreadCtx *mpm_thread_ctx,
/* This function handles (ctx->state_count >= 32767) */
/* This function handles (ctx->state_count >= 32767) */
uint32_t SCACTileSearchLarge ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
uint32_t SCACTileSearchLarge ( const SCACTileSearchCtx * ctx , MpmThreadCtx * mpm_thread_ctx ,
PrefilterRuleStore * pmq ,
PrefilterRuleStore * pmq ,
const uint8_t * buf , uint 16 _t buflen )
const uint8_t * buf , uint 32 _t buflen )
{
{
int i = 0 ;
u int32_ t i = 0 ;
int matches = 0 ;
int matches = 0 ;
uint8_t mpm_bitarray [ ctx - > mpm_bitarray_size ] ;
uint8_t mpm_bitarray [ ctx - > mpm_bitarray_size ] ;