Skip to content

RFC New mnlio functions

Arturo Borrero Gonzalez netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2src: add mnlio API functionsinclude/libnftnl/Makefile.am include/libnftnl/mnlio.h src/Makefile.am +2 more+1089 -11 reply
2/2examples: use new mnlio API in nft-rule-add.cexamples/nft-rule-add.c+7 -800 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC libnftnl PATCH 0/2] New mnlio functions

These functions are likely to be reused by almost all programs that want to talk with the kernel subsystem.

We can add here to libnftnl or maybe put in a higher level library.

Let this patchset be a RFC about this subject.

An example of what means using the new mnlio approach is the examples/nft-rule-add.c file. We save lots of LOCs.

Comments welcome.

NOTE: this patchset would require several iterations. For example, I left behind batch_pages.
---

Arturo Borrero Gonzalez (2):
src: add mnlio API functions
examples: use new mnlio API in nft-rule-add.c

 examples/nft-rule-add.c      |   87 ----
 include/libnftnl/Makefile.am |    3 
 include/libnftnl/mnlio.h     |   92 ++++
 src/Makefile.am              |    1 
 src/libnftnl.map             |   37 ++
 src/mnlio.c                  |  957 ++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 1096 insertions(+), 81 deletions(-)
 create mode 100644 include/libnftnl/mnlio.h
 create mode 100644 src/mnlio.c
Signature · 1 line
Arturo Borrero Gonzalez