Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jt8pg-0007OZ-H5 for qemu-devel@nongnu.org; Mon, 05 May 2008 18:06:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jt8pf-0007O7-EZ for qemu-devel@nongnu.org; Mon, 05 May 2008 18:06:51 -0400 Received: from [199.232.76.173] (port=39256 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jt8pf-0007O1-9i for qemu-devel@nongnu.org; Mon, 05 May 2008 18:06:51 -0400 Received: from [77.75.163.100] (helo=smtp.hotelhot.dk) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jt8pe-0008Ld-W3 for qemu-devel@nongnu.org; Mon, 05 May 2008 18:06:51 -0400 Message-ID: <481F84F3.6060505@flac.kalibalik.dk> Date: Tue, 06 May 2008 00:06:43 +0200 From: Anders MIME-Version: 1.0 Subject: Re: [Qemu-devel] [4341] qemu: generate signals on tap I/O References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, aurelien@aurel32.net Aurelien Jarno wrote: > --- trunk/vl.c 2008-05-05 21:26:31 UTC (rev 4340) > +++ trunk/vl.c 2008-05-05 21:26:43 UTC (rev 4341) > @@ -4030,6 +4030,7 @@ > if (!s) > return NULL; > s->fd = fd; > + enable_sigio_timer(fd); > s->vc = qemu_new_vlan_client(vlan, tap_receive, NULL, s); > qemu_set_fd_handler(s->fd, tap_send, NULL, s); > snprintf(s->vc->info_str, sizeof(s->vc->info_str), "tap: fd=%d", fd) Hm, I think this will break on BSD, as the function is only available in Linux? I posted a more complete implementation a few weeks ago, anything wrong with it? http://thread.gmane.org/gmane.comp.emulators.qemu/24567 Cheers, Anders.