qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] pcap-based networking?
@ 2004-08-26 16:42 Mike Tremoulet
  2004-08-26 17:15 ` John R. Hogerhuis
  2004-08-26 17:33 ` Jim C. Brown
  0 siblings, 2 replies; 8+ messages in thread
From: Mike Tremoulet @ 2004-08-26 16:42 UTC (permalink / raw)
  To: qemu-devel

All --

Apologies if this design decision has been worked before.  I've
successfully run various *nixes on my Win2K host, and while the slirp
solution usually works, I was thinking of ways to make it more
flexible.

I haven't finished identifying parts of the source code yet (my C
skills aren't that sharp), but from what I can tell, the tun/tap
interface uses file read/write operations to work on Unix, and the
slirp module does its thing somewhere as well, and the choice is made
by compile options and command-line switches.

My question is:  Is there a reason to use (or not to use) a
libpcap/libnet solution for networking?  At a high level, I think of
it as a queue of incoming packets and a queue of outgoing packets
(from the standpoint of the guest).  Outgoing packets from the guest
would be held in a queue and written onto the network via libnet, and
incoming packets would get captured by libpcap and written to the
virtual device.

The advantages for me would be:
- I can bind this networking to the device of my explicit choosing at
runtime.  So, I could install a tap device on my host and have qemu
always use that device, or I could bind it to a second NIC on the
host.
- More importantly, this can be somewhat platform independant. 
Libpcap exists in a very similar, if not identical, API in the form of
winpcap.  I know there is an equivalent way to write packets to the
network, but I forget the name right now.

What would the potential performance impacts be?  Is this something
that I/we should pursue?  Other thoughts?

-- Mike

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-08-27  6:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-26 16:42 [Qemu-devel] pcap-based networking? Mike Tremoulet
2004-08-26 17:15 ` John R. Hogerhuis
2004-08-26 17:19   ` Mike Tremoulet
2004-08-26 17:48     ` John R. Hogerhuis
2004-08-27  6:08       ` Mike Tremoulet
2004-08-27  6:28         ` John R. Hogerhuis
2004-08-27  6:32           ` Mike Tremoulet
2004-08-26 17:33 ` Jim C. Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).