[PATCH nft 0/2] add example folder

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux