netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH nft 0/2] add example folder
@ 2022-02-14 12:16 Pablo Neira Ayuso
  2022-02-14 12:16 ` [PATCH nft 1/2] examples: add libnftables example program Pablo Neira Ayuso
  2022-02-14 12:16 ` [PATCH nft 2/2] examples: load ruleset from JSON Pablo Neira Ayuso
  0 siblings, 2 replies; 3+ messages in thread
From: Pablo Neira Ayuso @ 2022-02-14 12:16 UTC (permalink / raw)
  To: netfilter-devel

Add two initial example files:

- use buffer API to load a ruleset
- load JSON ruleset from file

Pablo Neira Ayuso (2):
  examples: add libnftables example program
  examples: load ruleset from JSON

 configure.ac              |  1 +
 examples/Makefile.am      |  4 ++++
 examples/json-ruleset.nft | 43 +++++++++++++++++++++++++++++++++++++++
 examples/nft-buffer.c     | 34 +++++++++++++++++++++++++++++++
 examples/nft-json-file.c  | 30 +++++++++++++++++++++++++++
 5 files changed, 112 insertions(+)
 create mode 100644 examples/Makefile.am
 create mode 100644 examples/json-ruleset.nft
 create mode 100644 examples/nft-buffer.c
 create mode 100644 examples/nft-json-file.c

-- 
2.30.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-14 12:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-14 12:16 [PATCH nft 0/2] add example folder Pablo Neira Ayuso
2022-02-14 12:16 ` [PATCH nft 1/2] examples: add libnftables example program Pablo Neira Ayuso
2022-02-14 12:16 ` [PATCH nft 2/2] examples: load ruleset from JSON Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).