#include "rlp.h"
Go to the source code of this file.
Functions | |
| char * | Rlp_ConvertParseTreeToText (Rlp_Formula_t *aFormula) |
| Convert a rule parse tree to a formula text string. | |
| int | Rlp_PrintFormulaTree (Rlp_Formula_t *aFormula) |
| Print a rule parse tree. | |
| void | Rlp_FormulaFree (Rlp_Formula_t *aFormula) |
| Free a parse tree. | |
| Rlp_Formula_t * | Rlp_CreateParseTreeFromText (char *text) |
| Create a parse tree for an L7 formula from raw text of formula. | |
| Rlp_Formula_t * | Rlp_CreateParseTreeFromAttribValuePairArray (array_t *aRule) |
| Create a parse tree from a L7 formula that is presented as an array of (attribute,value) pairs. | |
| int | Rlp_ParsedRulePrint (Rlp_Formula_t *aTree) |
| Print a parse tree. | |
| util_byte_array_t * | Rlp_ByteCodeToByteArray (char *byteCode) |
| Convert byte code to a byte array. | |
| int | Rlp_NodePrint (Rlp_Formula_t *entry) |
| Print a node, which is assumed to be an entry in a parse tree. | |
| array_t * | Rlp_TestReadL7FormulasFromFile (char *fileName) |
| Read a bunch of L7 formulas from a file, return them in an array. | |
| char * | Rlp_GetL4ComponentFromRawRule (char *rawRule) |
| Get the L4 text from a rule. | |
| char * | Rlp_GetL7ComponentFromRawRule (char *rawRule) |
| Get the L7 text from a rule. | |
| char * | Rlp_GetActionComponentFromRawRule (char *rawRule) |
| Get the action component from a rule. | |
| int | Rlp_FreeArrayOfStrings (array_t *stringArray) |
| Free an array_t and the strings in it. | |
| st_table * | Rlp_L7CheckGetContentChecks (array_t *L7CheckArray) |
| Return a hash containing all the content checks for in the given rule. | |
| void | Rlp_TestParseContent (char *fileName) |
| Code to test parsing of content. | |
| int | Rlp_UpdateDefineTable (st_table *aTable, char *anEntry) |
| Adds a mapping from a macro name to definition. | |
Definition in file rlpUtil.c.
| util_byte_array_t* Rlp_ByteCodeToByteArray | ( | char * | byteCode | ) |
| char* Rlp_ConvertParseTreeToText | ( | Rlp_Formula_t * | aFormula | ) |
| Rlp_Formula_t* Rlp_CreateParseTreeFromAttribValuePairArray | ( | array_t * | aRule | ) |
| Rlp_Formula_t* Rlp_CreateParseTreeFromText | ( | char * | text | ) |
| void Rlp_FormulaFree | ( | Rlp_Formula_t * | aFormula | ) |
| int Rlp_FreeArrayOfStrings | ( | array_t * | stringArray | ) |
| char* Rlp_GetActionComponentFromRawRule | ( | char * | rawRule | ) |
| char* Rlp_GetL4ComponentFromRawRule | ( | char * | rawRule | ) |
| char* Rlp_GetL7ComponentFromRawRule | ( | char * | rawRule | ) |
Return a hash containing all the content checks for in the given rule.
We're passing in an array containing Rlp_L7Check_t entries - these are all the L7 checks in the corresponding rule.
| int Rlp_NodePrint | ( | Rlp_Formula_t * | entry | ) |
| int Rlp_ParsedRulePrint | ( | Rlp_Formula_t * | aTree | ) |
| int Rlp_PrintFormulaTree | ( | Rlp_Formula_t * | aFormula | ) |
| void Rlp_TestParseContent | ( | char * | fileName | ) |
| array_t* Rlp_TestReadL7FormulasFromFile | ( | char * | fileName | ) |
| int Rlp_UpdateDefineTable | ( | st_table * | aTable, | |
| char * | anEntry | |||
| ) |