qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH V2] net/traffic-mirror:Add traffic-mirror


From: Jason Wang
Subject: Re: [Qemu-devel] [PATCH V2] net/traffic-mirror:Add traffic-mirror
Date: Mon, 1 Feb 2016 10:57:10 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1


On 01/29/2016 09:38 AM, Li Zhijian wrote:
>
>
> On 01/28/2016 01:44 PM, Jason Wang wrote:
>>
>>
>> On 01/27/2016 10:40 AM, Zhang Chen wrote:
>>> From: ZhangChen <address@hidden>
>>>
>>> Traffic-mirror is a netfilter plugin.
>>> It gives qemu the ability to copy and mirror guest's
>>> net packet. we output packet to chardev.
>>>
>>> usage:
>>>
>>> -netdev tap,id=hn0
>>> -chardev socket,id=mirror0,host=ip_primary,port=X,server,nowait
>>> -traffic-mirror,id=m0,netdev=hn0,queue=tx/rx/all,outdev=mirror0
>>>
>>> Signed-off-by: ZhangChen <address@hidden>
>>> Signed-off-by: Wen Congyang <address@hidden>
>>> Reviewed-by: Yang Hongyang <address@hidden>
>>
>> Thanks for the patch. Several questions:
>>
>> - I'm curious about how the patch was tested? Simple setup e.g:
>>
>> -netdev tap,id=hn0 -device virtio-net-pci,netdev=hn0 -chardev
>> socket,id=c0,host=localhost,port=4444,server,nowait -object
>> traffic-mirror,netdev=hn0,outdev=c0,id=f0 -netdev
>> socket,id=s0,connect=127.0.0.1:4444 -device e1000,netdev=s0
>>
>> does not works for me.
> Hi, Jason
>
> I just test the mirror using the command line above, it don't work too.
> I am looking to it, and find that seems because the -net socket
> problem that
> I have ever post a patch  try to fix(refer to ↓)
> [Qemu-devel] [PATCH] report a error message if -net socket can not
> connect to server
> https://lists.gnu.org/archive/html/qemu-devel/2015-12/msg00758.html

Will have a look at this.

>
> after applying this patch, the qemu monitor tell me following message:
> (qemu) qemu-system-x86_64: net socket is not connected Connection refused

Maybe two issues. Have you tired to start the mirror on one VM and then
using socket backend to connect it from another VM?

>
>
> Thanks
> Li Zhijian
>
>
>




reply via email to

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