qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH V2 0/3] Introduce filter-redirector
@ 2016-02-29 12:23 Zhang Chen
  2016-02-29 12:23 ` [Qemu-devel] [PATCH V2 1/3] net/filter-traffic: add filter-traffic.h Zhang Chen
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Zhang Chen @ 2016-02-29 12:23 UTC (permalink / raw)
  To: qemu devel, Jason Wang
  Cc: Li Zhijian, Gui jianfeng, eddie.dong, zhanghailiang,
	Dr. David Alan Gilbert, Zhang Chen, Yang Hongyang

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

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

end of thread, other threads:[~2016-03-04  6:19 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-29 12:23 [Qemu-devel] [PATCH V2 0/3] Introduce filter-redirector Zhang Chen
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

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