qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 00/12] For QEMU 2.5: Add a netfilter object and


From: Yang Hongyang
Subject: Re: [Qemu-devel] [PATCH 00/12] For QEMU 2.5: Add a netfilter object and netbuffer filter
Date: Wed, 29 Jul 2015 21:39:45 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

Hi Thomas,

On 07/29/2015 08:56 PM, Thomas Huth wrote:
On Wednesday, July 29, 2015 12:51:44 PM,
"Yang Hongyang" <address@hidden> wrote:

I do not take this as v2 because the design of this has been changed,
and code is rewritten. according to thread:
http://lists.nongnu.org/archive/html/qemu-devel/2015-07/msg05445.html

This patch add a new object netfilter, capture all network packets.
Also implement a netbuffer based on this object.
the "buffer" netfilter could be used by VM FT solutions like
Macrocheckpointing, to buffer/release packets. Or to simulate
packet delay.

Usage:
  -netdev tap,id=bn0
  -netfilter buffer,id=f0,netdev=bn0,interval=1000
  -device e1000,netdev=bn0

What if I want to use multiple filters at once? Is there a way to
determine the order in which the filters are run through?

The filters are in an QTAILQ list, so it's order is what appears
first will be first. for example:
  -netfilter dump,...
  -netfilter buffer,...

dump will be the first filter.


dynamically add/remove netfilters:
  netfilter_add buffer,id=f0,netdev=bn0,interval=1000
  netfilter_del f0

Same here ... let's assume there are already two filters - can I
somehow add a third filter inbetween the two?

It's not possiable in this series, but it can be supported later,
we can add an order option to the netfilter, so that it can be
the order whatever you want.


  Thomas
.


--
Thanks,
Yang.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]