From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZD7Q-00079r-Sy for qemu-devel@nongnu.org; Fri, 26 Feb 2016 02:47:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZD7L-0003D8-P0 for qemu-devel@nongnu.org; Fri, 26 Feb 2016 02:47:20 -0500 Received: from [59.151.112.132] (port=56571 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZD7I-00039P-Qa for qemu-devel@nongnu.org; Fri, 26 Feb 2016 02:47:15 -0500 References: <1456296883-9173-1-git-send-email-zhangchen.fnst@cn.fujitsu.com> <56CD6506.3080604@redhat.com> <56CFF971.8040705@redhat.com> From: Zhang Chen Message-ID: <56D0030A.6000409@cn.fujitsu.com> Date: Fri, 26 Feb 2016 15:47:22 +0800 MIME-Version: 1.0 In-Reply-To: <56CFF971.8040705@redhat.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH V6 0/2] net/filter-mirror:add filter-mirror and unit test List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jason Wang , qemu devel Cc: zhanghailiang , Li Zhijian , Gui jianfeng , "eddie.dong" , "Dr. David Alan Gilbert" , Yang Hongyang On 02/26/2016 03:06 PM, Jason Wang wrote: > > On 02/24/2016 04:08 PM, Jason Wang wrote: >> On 02/24/2016 02:54 PM, Zhang Chen wrote: >>> Filter-mirror is a netfilter plugin. >>> It gives qemu the ability to mirror >>> packets to a chardev. >>> >>> v6: >>> - Address Jason's comments. >>> >>> 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 | 90 ++++++++++++++++++++++ >>> vl.c | 3 +- >>> 7 files changed, 282 insertions(+), 1 deletion(-) >>> create mode 100644 net/filter-mirror.c >>> create mode 100644 tests/test-filter-mirror.c >>> >> Applied to -net with minor tweaks on commit log. >> >> Thanks >> > Actually reverted, since I get: > > tests/test-filter-mirror.o: In function `test_mirror': > /home/devel/git/qemu/tests/test-filter-mirror.c:36: warning: the use of > `mktemp' is dangerous, better use `mkstemp' or `mkdtemp' > > Please fix this and send a V7. > > Thanks > > OK, I will fix it in V7 Thanks zhangchen > > . > -- Thanks zhangchen