From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47343) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYBdU-0000pw-Qe for qemu-devel@nongnu.org; Tue, 23 Feb 2016 07:00:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYBdP-0003FZ-T3 for qemu-devel@nongnu.org; Tue, 23 Feb 2016 07:00:12 -0500 Received: from [59.151.112.132] (port=1150 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYBdO-000398-Hr for qemu-devel@nongnu.org; Tue, 23 Feb 2016 07:00:07 -0500 From: Zhang Chen Date: Tue, 23 Feb 2016 20:00:19 +0800 Message-ID: <1456228821-9684-1-git-send-email-zhangchen.fnst@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH V5 0/2] net/filter-mirror:add filter-mirror and unit test List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu devel , Jason Wang Cc: Li Zhijian , Gui jianfeng , "eddie.dong" , zhanghailiang , "Dr. David Alan Gilbert" , Zhang Chen , Yang Hongyang Filter-mirror is a netfilter plugin. It gives qemu the ability to mirror packets to a chardev. v5: - Address Jason's comments. v4: - Address Jason's comments. v3: - Add filter-mirror unit test according to Jason's comments - Address zhanghailiang's comments. - Address Jason's comments. v2: - Address zhanghailiang's comments. - Address Eric Blake's comments. - Address Yang Hongyang's comments. - Address Dave's comments. v1: initial patch. Zhang Chen (2): net/filter-mirror:Add filter-mirror tests/test-filter-mirror:add filter-mirror unit test net/Makefile.objs | 1 + net/filter-mirror.c | 181 +++++++++++++++++++++++++++++++++++++++++++++ qemu-options.hx | 5 ++ tests/.gitignore | 1 + tests/Makefile | 2 + tests/test-filter-mirror.c | 87 ++++++++++++++++++++++ vl.c | 3 +- 7 files changed, 279 insertions(+), 1 deletion(-) create mode 100644 net/filter-mirror.c create mode 100644 tests/test-filter-mirror.c -- 1.9.1