Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | datatype: maintain table of all datatypes and add registration/lookup function | Patrick McHardy | 2009-03-31 | 1 | -2/+3 | |
| | | | | | | | | | | | Add a table containing all available datatypes and registration/lookup functions. This will be used to associate a stand-alone set in the kernel with the correct type without parsing the entire ruleset. Additionally it would now be possible to remove the global declarations for the core types. Not done yet though. Signed-off-by: Patrick McHardy <kaber@trash.net> | |||||
* | expr: add support for cloning expressions | Patrick McHardy | 2009-03-20 | 1 | -0/+93 | |
| | | | | Signed-off-by: Patrick McHardy <kaber@trash.net> | |||||
* | Add support for user-defined symbolic constants | Patrick McHardy | 2009-03-20 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | User-defined constants can be used like this: define allowed_hosts = { 192.168.0.0/24, 10.0.0.20-10.0.0.30 } define udp_services = domain define tcp_services = { ssh, domain } ip saddr $allowed_hosts udp dport $udp_services counter accept ip saddr $allowed_hosts tcp dport $tcp_services counter accept Recursive definitions are possible, but currently not fully handled. Anything requiring transformations (sets using ranges) can not be used more than once currently since the expressions need to be COW'ed previously. Signed-off-by: Patrick McHardy <kaber@trash.net> | |||||
* | Initial commitv0.01-alpha1 | Patrick McHardy | 2009-03-18 | 1 | -0/+622 | |