All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC libnftnl PATCH 0/2] New mnlio functions
@ 2014-02-05 19:17 Arturo Borrero Gonzalez
  2014-02-05 19:17 ` [RFC libnftnl PATCH 1/2] src: add mnlio API functions Arturo Borrero Gonzalez
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Arturo Borrero Gonzalez @ 2014-02-05 19:17 UTC (permalink / raw)
  To: netfilter-devel; +Cc: pablo

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

-- 
Arturo Borrero Gonzalez

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

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

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-05 19:17 [RFC libnftnl PATCH 0/2] New mnlio functions Arturo Borrero Gonzalez
2014-02-05 19:17 ` [RFC libnftnl PATCH 1/2] src: add mnlio API functions Arturo Borrero Gonzalez
2014-02-12 14:03   ` Pablo Neira Ayuso
2014-02-05 19:17 ` [RFC libnftnl PATCH 2/2] examples: use new mnlio API in nft-rule-add.c Arturo Borrero Gonzalez
2014-02-05 19:24 ` [RFC libnftnl PATCH 0/2] New mnlio functions Patrick McHardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.