Skip to content

libnftables preparations

Phil Sutter netfilter-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 7 repliesIn review
  2. v17 patches 18 repliesApplied

Changes in v2 from the cover letter

- Dropped first patch from series as it was applied already.
- Rearranged changes in remaining patches to become more clear and avoid moving header file content back and forth between nftables.h and nftables/nftables.h.
- Improved patch descriptions.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4libnftables: Move library stuff out of main.cinclude/Makefile.am include/nftables.h include/nftables/Makefile.am +4 more+327 -27913 replies
2/4libnftables: Introduce nft_ctx_flush_cache()include/nftables/nftables.h src/cli.c src/libnftables.c+9 -45 replies
3/4cli: Use nft_run_cmd_from_buffer()include/cli.h include/nftables.h src/cli.c +2 more+9 -360 replies
4/4libnftables: Introduce getters and setters for everythinginclude/nftables.h include/nftables/nftables.h src/libnftables.c +2 more+137 -210 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [nft PATCH v2 0/4] libnftables preparations

The following series prepares libnftables libarary split-off by moving API functions into src/libnftables.c, introducing include/nftables/nftables.h and enhancing the code by a number of getters and setters for applications to change configurable parts of struct nft_ctx without knowledge of that struct's internals.

The 'nft' binary will become the first "demo" user of libnftables and acts as a reference for library design and usability.

Changes since v1:
- Dropped first patch from series as it was applied already.
- Rearranged changes in remaining patches to become more clear and avoid moving header file content back and forth between nftables.h and nftables/nftables.h.
- Improved patch descriptions.

Phil Sutter (4):
libnftables: Move library stuff out of main.c
libnftables: Introduce nft_ctx_flush_cache()
cli: Use nft_run_cmd_from_buffer()
libnftables: Introduce getters and setters for everything

 include/Makefile.am          |   3 +-
 include/cli.h                |   6 +-
 include/nftables.h           |  38 +----
 include/nftables/Makefile.am |   1 +
 include/nftables/nftables.h  |  78 ++++++++++
 src/Makefile.am              |   3 +-
 src/cli.c                    |  24 +--
 src/libnftables.c            | 364 +++++++++++++++++++++++++++++++++++++++++++
 src/main.c                   | 285 +++------------------------------
 src/scanner.l                |   4 +-
 10 files changed, 474 insertions(+), 332 deletions(-)
 create mode 100644 include/nftables/Makefile.am
 create mode 100644 include/nftables/nftables.h
 create mode 100644 src/libnftables.c
Signature · 1 line
2.13.1