netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [nft PATCH RFC 0/4] Implement --echo option
@ 2017-07-27 14:26 Phil Sutter
  2017-07-27 14:26 ` [nft PATCH RFC 1/4] mnl: Consolidate mnl_batch_talk() parameters Phil Sutter
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Phil Sutter @ 2017-07-27 14:26 UTC (permalink / raw)
  To: Pablo Neira Ayuso; +Cc: netfilter-devel

Long description of what it is and how it works in patch 3. Patches 1
and 2 are dependencies to patch 3.

The whole thing is RFC, mainly because of NFT_MSG_META_ECHO which
doesn't quite belong to where it is but I didn't find a better way to
reuse monitor callbacks for the job at hand.

Feedback highly appreciated, of course!

Phil Sutter (4):
  mnl: Consolidate mnl_batch_talk() parameters
  netlink: Pass nlmsg flags from rule.c
  Implement --echo option
  tests: Add a simple test suite for --echo option

 doc/nft.xml                         |  51 ++++++++++++++
 include/linux/netfilter/nf_tables.h |   1 +
 include/mnl.h                       |   4 +-
 include/netlink.h                   |  12 ++--
 include/nftables.h                  |   2 +
 src/main.c                          |  11 ++-
 src/mnl.c                           |  31 +++++++--
 src/netlink.c                       | 134 +++++++++++++++++++++++++-----------
 src/rule.c                          |  33 +++++----
 tests/echo/run-tests.sh             |  53 ++++++++++++++
 tests/echo/testcases/simple.t       |   8 +++
 11 files changed, 274 insertions(+), 66 deletions(-)
 create mode 100755 tests/echo/run-tests.sh
 create mode 100644 tests/echo/testcases/simple.t

-- 
2.13.1


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

end of thread, other threads:[~2017-07-27 15:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-27 14:26 [nft PATCH RFC 0/4] Implement --echo option Phil Sutter
2017-07-27 14:26 ` [nft PATCH RFC 1/4] mnl: Consolidate mnl_batch_talk() parameters Phil Sutter
2017-07-27 14:26 ` [nft PATCH RFC 2/4] netlink: Pass nlmsg flags from rule.c Phil Sutter
2017-07-27 14:26 ` [nft PATCH RFC 3/4] Implement --echo option Phil Sutter
2017-07-27 14:26 ` [nft PATCH RFC 4/4] tests: Add a simple test suite for " Phil Sutter
2017-07-27 15:02 ` [nft PATCH RFC 0/4] Implement " Phil Sutter

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).