#!/bin/bash
#
# Configuration file for regex_re2
#
# Usage: ./t2plconf
#
# Enter configurations items as follows:
#
#   "NAME" "TYPE" "DEPENDENCIES" "DESCRIPTION"
#
#   - TYPE can be:
#       - check (boolean),
#       - radio (set of values),
#       - range (min <= val <= max)
#       - text
#
#   - DEPENDENCIES MUST be numeric, e.g., "A == 1 && (B < 4 || C >= 1)"
#
#   - DESCRIPTION for type 'check' MUST NOT contain tabs ('\t')
#   - DESCRIPTION for TYPE 'range' MUST NOT contain '\t' or ':'
#   - DESCRIPTION for TYPE 'radio' MUST NOT contain '\t', ':' or ';'
#   - DESCRIPTION for TYPE 'text'  MUST NOT contain '\t'
#
#   - DESCRIPTION MUST be formatted according to the type (see examples below):
#       - check: description
#       - radio: description ';' val1 ':' description1 ';' valN ':' descriptionN
#       - range: description ':' min ' ' max
#       - text : description

ITEMS=(
    RE2_DEBUG_MESSAGES check "" "Print debug messages"

    RE2_REGEX_FILE text "" "Name of the regex file"

    #MAX_RE2_MEMORY range "" "Max amount of memory RE2 can use to build the regex automaton: 0 ???"

    RE2_RELOADING check "" "Dynamically reload regex file when modified"

    MAX_MATCH_PER_PACKET range ""
        "Max number of regexes which can match on a single packet: 0 255"

    MAX_MATCH_PER_FLOW range ""
        "Max number of regexes which can match on a single flow: 0 255"
)

# Source the main config file
source ../scripts/t2conf/t2plconf
