mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2026-01-02 22:54:43 +03:00
noodle: behave like our other literal matchers
Noodle now supports supplementary masks.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, Intel Corporation
|
||||
* Copyright (c) 2015-2017, Intel Corporation
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
@@ -30,18 +30,23 @@
|
||||
* \brief Data structures for Noodle literal matcher engine.
|
||||
*/
|
||||
|
||||
#ifndef NOODLE_INTERNAL_H_25D751C42E34A6
|
||||
#define NOODLE_INTERNAL_H_25D751C42E34A6
|
||||
#ifndef NOODLE_INTERNAL_H
|
||||
#define NOODLE_INTERNAL_H
|
||||
|
||||
#include "ue2common.h"
|
||||
|
||||
struct noodTable {
|
||||
u32 id;
|
||||
u32 len;
|
||||
u32 key_offset;
|
||||
u8 nocase;
|
||||
u8 str[];
|
||||
u64a msk;
|
||||
u64a cmp;
|
||||
u8 lit_len;
|
||||
u8 msk_len;
|
||||
u8 key_offset;
|
||||
u8 nocase;
|
||||
u8 single;
|
||||
u8 key0;
|
||||
u8 key1;
|
||||
};
|
||||
|
||||
#endif /* NOODLE_INTERNAL_H_25D751C42E34A6 */
|
||||
#endif /* NOODLE_INTERNAL_H */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user