aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorZhang Chen <zhangchen.fnst@cn.fujitsu.com>2016-03-15 15:41:33 +0800
committerJason Wang <jasowang@redhat.com>2016-03-30 08:54:29 +0800
commitf6d3afb51f47af7bbc600c48cd54003a0b6d0f5e (patch)
tree222d0519474d3e783cec259df0c8e0c6d06c6e1f /vl.c
parent553934db664ecee676650fac0330dceff3531736 (diff)
downloadqemu-f6d3afb51f47af7bbc600c48cd54003a0b6d0f5e.zip
qemu-f6d3afb51f47af7bbc600c48cd54003a0b6d0f5e.tar.gz
qemu-f6d3afb51f47af7bbc600c48cd54003a0b6d0f5e.tar.bz2
net/filter-mirror:Add filter-mirror
Filter-mirror is a netfilter plugin. It gives qemu the ability to mirror packets to a chardev. usage: -netdev tap,id=hn0 -chardev socket,id=mirror0,host=ip_primary,port=X,server,nowait -filter-mirror,id=m0,netdev=hn0,queue=tx/rx/all,outdev=mirror0 Signed-off-by: Zhang Chen <zhangchen.fnst@cn.fujitsu.com> Signed-off-by: Wen Congyang <wency@cn.fujitsu.com> Reviewed-by: Yang Hongyang <hongyang.yang@easystack.cn> Reviewed-by: zhanghailiang <zhang.zhanghailiang@huawei.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 6cb5e40..8cd1d0c 100644
--- a/vl.c
+++ b/vl.c
@@ -2841,7 +2841,8 @@ static bool object_create_initial(const char *type)
* they depend on netdevs already existing
*/
if (g_str_equal(type, "filter-buffer") ||
- g_str_equal(type, "filter-dump")) {
+ g_str_equal(type, "filter-dump") ||
+ g_str_equal(type, "filter-mirror")) {
return false;
}