From f6d3afb51f47af7bbc600c48cd54003a0b6d0f5e Mon Sep 17 00:00:00 2001 From: Zhang Chen Date: Tue, 15 Mar 2016 15:41:33 +0800 Subject: 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 Signed-off-by: Wen Congyang Reviewed-by: Yang Hongyang Reviewed-by: zhanghailiang Signed-off-by: Jason Wang --- qemu-options.hx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'qemu-options.hx') diff --git a/qemu-options.hx b/qemu-options.hx index d70d0703ac..65e0391bde 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -3841,6 +3841,11 @@ queue @var{all|rx|tx} is an option that can be applied to any netfilter. @option{tx}: the filter is attached to the transmit queue of the netdev, where it will receive packets sent by the netdev. +@item -object filter-mirror,id=@var{id},netdev=@var{netdevid},outdev=@var{chardevid}[,queue=@var{all|rx|tx}] + +filter-mirror on netdev @var{netdevid},mirror net packet to chardev +@var{chardevid} + @item -object filter-dump,id=@var{id},netdev=@var{dev},file=@var{filename}][,maxlen=@var{len}] Dump the network traffic on netdev @var{dev} to the file specified by -- cgit v1.2.3