[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v4] net: add the support for -netdev socket, lis
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH v4] net: add the support for -netdev socket, listen |
Date: |
Thu, 07 Jun 2012 16:16:38 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 |
Il 07/06/2012 14:49, Zhi Yong Wu ha scritto:
>> > Instead, drop the NetSocketListenState struct and add a listen_fd field
>> > to NetSocketState. When a -netdev socket,listen= instance is created
>> > there will be a NetSocketState with fd=-1 and a valid listen_fd. The
> Have you considered the case where there're mulitple -net
> socket,listen= instance in one vlan?
Why should that matter? They will have different NetSocketState and
different listen_fds. Each socket will discard incoming packets until
the other side connects.
Paolo