diff options
author | Zhang Chen <zhangchen.fnst@cn.fujitsu.com> | 2016-03-15 15:41:33 +0800 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 20:01:33 -0600 |
commit | 7b2c0dec7672c14ce74900727d2d34be5906eeab (patch) | |
tree | dfc6aec8f72780ef668e57708d822c8e3b9463a7 /vl.c | |
parent | bfc1d233e510fd5ce08724da5a62a2757108cbe1 (diff) | |
download | hqemu-7b2c0dec7672c14ce74900727d2d34be5906eeab.zip hqemu-7b2c0dec7672c14ce74900727d2d34be5906eeab.tar.gz |
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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } |