Hi Thomas,

On 07/29/2015 08:56 PM, Thomas Huth wrote:
On Wednesday, July 29, 2015 12:51:44 PM,
"Yang Hongyang" <yan...@cn.fujitsu.com> 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