From: Phil Sutter Subject: [nft PATCH RFC v2 0/4] Implement --echo option Date: Thu, 27 Jul 2017 18:21:40 +0200 Message-ID: <20170727162144.28703-1-phil@nwl.cc> Cc: netfilter-devel@vger.kernel.org To: Pablo Neira Ayuso Return-path: Received: from orbyte.nwl.cc ([151.80.46.58]:37333 "EHLO mail.nwl.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751113AbdG0QV4 (ORCPT ); Thu, 27 Jul 2017 12:21:56 -0400 Sender: netfilter-devel-owner@vger.kernel.org List-ID: 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! Only changes from v1 are two changes to patch 3, described in there. Everything else remains unchanged. 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 | 1 + 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, 273 insertions(+), 66 deletions(-) create mode 100755 tests/echo/run-tests.sh create mode 100644 tests/echo/testcases/simple.t -- 2.13.1