summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* examples: add .gitignore fileJeremy Sowden2022-04-051-0/+5
| | | | Signed-off-by: Florian Westphal <fw@strlen.de>
* examples: compile with `make check' and add AM_CPPFLAGSPablo Neira Ayuso2022-02-221-1/+3
| | | | | | | | | | | | | Compile examples via `make check' like libnftnl does. Use AM_CPPFLAGS to specify local headers via -I. Unfortunately, `make distcheck' did not catch this compile time error in my system, since it was using the nftables/libnftables.h file of the previous nftables release. Fixes: 5b364657a35f ("build: missing SUBIRS update") Fixes: caf2a6ad2d22 ("examples: add libnftables example program") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* examples: load ruleset from JSONPablo Neira Ayuso2022-02-173-1/+75
| | | | | | Add an example to load a ruleset file expressed in JSON. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* examples: add libnftables example programPablo Neira Ayuso2022-02-172-0/+37
Create an example folder to add example source code files to show how to use libnftables. Add first example program using the buffer API. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>