Jim C. Brown a écrit :
On Sat, Oct 01, 2005 at 10:24:03PM +0200, Jean-Christian de Rivaz wrote:
And qemu already supports that, via the -tun-fd option.
Can you please give me an exemple how to use the -tun-fd option to open
an existing tun (i.e: tun-alice) ? This option only work for already
opened tap/tun interface as I understand.
I see what you mean now. qemu itself has no direct support for persistent tuntap
devices.
However, I imagine that one could modify tundev.c or tapdev.c to open a
persistent
tuntap device (by name) and then pass the fd to qemu via -tun-fd. It would be
better if qemu had direct support for them of course.
Where are this tundev.c or tapdev.c files ? I just updated qemu from CVS
and I found no files named like this.
[EMAIL PROTECTED]:~/qemu/qemu$ cvs -qz9 update -AdP
? tun2.patch
M qemu-doc.texi
M vl.c
[EMAIL PROTECTED]:~/qemu/qemu$ find . -type f -name "t*dev*"
[EMAIL PROTECTED]:~/qemu/qemu$
--
Jean-Christian de Rivaz
_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel