Snort - the de facto standard for intrusion detection/prevention
next up previous contents
Next: Config Up: Variables Previous: Variable Modifiers   Contents

Limitations

When embedding variables, types can not be mixed. For instance, port variables can be defined in terms of other port variables, but old-style variables (with the 'var' keyword) can not be embedded inside a 'portvar'.

Valid embedded variable:

        portvar pvar1 80
        portvar pvar2 [$pvar1,90]

Invalid embedded variable:

        var pvar1 80
        portvar pvar2 [$pvar,90]

Likewise, variables can not be redefined if they were previously defined as a different type. They should be renamed instead:

Invalid redefinition:

        var pvar 80
        portvar pvar 90



Steven Sturges 2008-04-01