qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>
To: qemu devel <qemu-devel@nongnu.org>, Jason Wang <jasowang@redhat.com>
Cc: Li Zhijian <lizhijian@cn.fujitsu.com>,
	Gui jianfeng <guijianfeng@cn.fujitsu.com>,
	"eddie.dong" <eddie.dong@intel.com>,
	zhanghailiang <zhang.zhanghailiang@huawei.com>,
	"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
	Zhang Chen <zhangchen.fnst@cn.fujitsu.com>,
	Yang Hongyang <hongyang.yang@easystack.cn>
Subject: [Qemu-devel] [PATCH V2 0/3] Introduce filter-redirector
Date: Mon, 29 Feb 2016 20:23:52 +0800	[thread overview]
Message-ID: <1456748635-1912-1-git-send-email-zhangchen.fnst@cn.fujitsu.com> (raw)

Filter-redirector is a netfilter plugin.
It gives qemu the ability to redirect net packet.
redirector can redirect filter's net packet to outdev.
and redirect indev's packet to filter.


                             filter
                               +
                               |
                               |
              redirector       |
               +-------------------------+
               |               |         |
               |               |         |
               |               |         |
  indev +----------------+     +---------------->  outdev
               |         |               |
               |         |               |
               |         |               |
               +-------------------------+
                         |
                         |
                         v
                      filter
                         |
                         |
                         v
                      filter------> guest


v2:
 - Address Jason's comments.
 - Add filter-traffic.h to reuse parts of the codes
 - Add unit test case

v1:
 initial patch.




Zhang Chen (3):
  net/filter-traffic: add filter-traffic.h
  net/filter-redirector:Add filter-redirector
  tests/test-filter-redirector: Add unit test for filter-redirector

 net/Makefile.objs              |   1 +
 net/filter-mirror.c            |  70 ++-----------
 net/filter-redirector.c        | 216 +++++++++++++++++++++++++++++++++++++++++
 net/filter-traffic.h           |  71 ++++++++++++++
 qemu-options.hx                |   8 ++
 tests/.gitignore               |   1 +
 tests/Makefile                 |   2 +
 tests/test-filter-redirector.c |  97 ++++++++++++++++++
 vl.c                           |   3 +-
 9 files changed, 407 insertions(+), 62 deletions(-)
 create mode 100644 net/filter-redirector.c
 create mode 100644 net/filter-traffic.h
 create mode 100644 tests/test-filter-redirector.c

-- 
1.9.1

             reply	other threads:[~2016-02-29 12:23 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-29 12:23 Zhang Chen [this message]
2016-02-29 12:23 ` [Qemu-devel] [PATCH V2 1/3] net/filter-traffic: add filter-traffic.h Zhang Chen
2016-03-01  3:02   ` Li Zhijian
2016-03-01  6:56     ` Zhang Chen
2016-03-02  6:19   ` Jason Wang
2016-03-02  7:25     ` Zhang Chen
2016-03-03  6:48       ` Jason Wang
2016-03-03  7:20         ` Zhang Chen
2016-03-03  7:24           ` Jason Wang
2016-03-03  8:19             ` Zhang Chen
2016-02-29 12:23 ` [Qemu-devel] [PATCH V2 2/3] net/filter-redirector:Add filter-redirector Zhang Chen
2016-03-01  3:27   ` Li Zhijian
2016-03-02  6:31   ` Jason Wang
2016-03-02  7:31     ` Zhang Chen
2016-02-29 12:23 ` [Qemu-devel] [PATCH V2 3/3] tests/test-filter-redirector: Add unit test for filter-redirector Zhang Chen
2016-03-02  6:47   ` Jason Wang
2016-03-04  6:18     ` Li Zhijian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1456748635-1912-1-git-send-email-zhangchen.fnst@cn.fujitsu.com \
    --to=zhangchen.fnst@cn.fujitsu.com \
    --cc=dgilbert@redhat.com \
    --cc=eddie.dong@intel.com \
    --cc=guijianfeng@cn.fujitsu.com \
    --cc=hongyang.yang@easystack.cn \
    --cc=jasowang@redhat.com \
    --cc=lizhijian@cn.fujitsu.com \
    --cc=qemu-devel@nongnu.org \
    --cc=zhang.zhanghailiang@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).