Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ruleset: add nft_ruleset_ctx_free | Alvaro Neira | 2015-03-13 | 1 | -7/+1 |
| | | | | | | | | | | This function releases the ruleset objects attached in the parse context structure, ie. struct nft_parse_ctx. Moreover, this patch updates the nft_parse_ruleset_file to use it. Signed-off-by: Alvaro Neira Ayuso <alvaroneay@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> | ||||
* | examples: add nft-ruleset-parse-file | Alvaro Neira | 2015-03-05 | 1 | -0/+486 |
With this example, we can parse the objects in the ruleset and create the netlink message with the action associated. For example: - Flush ruleset - Add, delete or flush tables/chains - Add, delete sets - Add, delete set elements - Add, delete, replace or prepend rules Signed-off-by: Alvaro Neira Ayuso <alvaroneay@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> |