Statistics
| Branch: | Revision:

root / net @ 9e2c1298

Name Size
Makefile.objs 451 Bytes
checksum.c 2.2 kB
checksum.h 1.1 kB
clients.h 2.1 kB
dump.c 4.7 kB
hub.c 7.8 kB
hub.h 710 Bytes
queue.c 7.3 kB
queue.h 2.2 kB
slirp.c 21.9 kB
slirp.h 1.7 kB
socket.c 21 kB
tap-aix.c 1.7 kB
tap-bsd.c 3.9 kB
tap-haiku.c 1.7 kB
tap-linux.c 5.6 kB
tap-linux.h 1.8 kB
tap-solaris.c 6.2 kB
tap-win32.c 21.4 kB
tap.c 18.3 kB
tap.h 2.3 kB
util.c 1.9 kB
util.h 1.3 kB
vde.c 3.5 kB

Latest revisions

# Date Author Comment
eac29d87 12/07/2012 01:34 pm Stefan Weil

Fix spelling (prefered -> preferred)

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

58ddcd50 11/20/2012 04:38 pm Michael S. Tsirkin

tap: reset vnet header size on open

For tap, we currently assume the vnet header size is 10
(the default value) but that might not be the case
if tap is persistent and has been used by qemu previously.
To fix, set host header size in tap device on open.
...

63d2960b 11/15/2012 11:27 am Klaus Stengel

slirp: Add domain-search option to slirp's DHCP server

This patch will allow the user to include the domain-search option in
replies from the built-in DHCP server. The domain suffixes can be
specified by adding dnssearch= entries to the "-net user" parameter....

f0e3ac70 11/01/2012 12:00 pm Lei Li

net: use "socket" model name for UDP sockets

Fix the problem that can not delete the udp socket.
It's caused by passing "udp" model to net_socket_udp_init,
but we do not have "udp" model in our model list.
Pass the right model "socket" to init function.
...

aee0bf7d 10/30/2012 09:18 pm Michael S. Tsirkin

tap-win32: stubs to fix win32 build

Add missing stubs to win32 to fix link failure.

Signed-off-by: Michael S. Tsirkin <>
Reported-by: Paolo Bonzini <>
Signed-off-by: Blue Swirl <>

08778b39 10/19/2012 11:39 am Stefan Weil

net/tap-win32: Fix compiler warning caused by missing include statement

The include file for net_init_tap was missing:

net/tap-win32.c:703:
warning: no previous prototype for ‘net_init_tap’

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

a245fc18 10/08/2012 02:59 pm Paolo Bonzini

net: consolidate NetClientState header files into one

This patch doesn't seem much useful alone, I must admit. However,
it makes sense as part of the upcoming directory reorganization,
where I want to have include/net/tap.h as the net<->hw interface
for tap. Then having both net/tap.h and include/net/tap.h does...

73062dfe 09/23/2012 09:37 am Stefan Weil

net/socket: Fix compiler warning (regression for MinGW)

Commit 213fd5087e2e4e2da10ad266df0ba950cf7618bf removed a type cast
which is needed for MinGW:

net/socket.c:136: warning:
pointer targets in passing argument 2 of ‘sendto’ differ in signedness
/usr/lib/gcc/amd64-mingw32msvc/4.4.4/../../../../amd64-mingw32msvc/include/winsock2.h:1313: note:...

213fd508 09/14/2012 10:40 am Stefan Hajnoczi

net: EAGAIN handling for net/socket.c UDP

Implement asynchronous send for UDP (or other SOCK_DGRAM) sockets. If
send fails with EAGAIN we wait for the socket to become writable again.

Signed-off-by: Stefan Hajnoczi <>

45a7f54a 09/14/2012 10:40 am Stefan Hajnoczi

net: EAGAIN handling for net/socket.c TCP

Replace spinning send_all() with a proper non-blocking send. When the
socket write buffer limit is reached, we should stop trying to send and
wait for the socket to become writable again.

Non-blocking TCP sockets can return in two different ways when the write...

View revisions

Also available in: Atom