Statistics
| Branch: | Revision:

root / net @ 7ad7e3c3

Name Size
checksum.c 2.2 kB
checksum.h 1.1 kB
dump.c 4.1 kB
dump.h 1.3 kB
queue.c 7.5 kB
queue.h 2.9 kB
slirp.c 21.3 kB
slirp.h 1.8 kB
socket.c 16.2 kB
socket.h 1.4 kB
tap-aix.c 1.6 kB
tap-bsd.c 3.2 kB
tap-linux.c 4.4 kB
tap-linux.h 1.6 kB
tap-solaris.c 6.1 kB
tap-win32.c 21 kB
tap.c 11.5 kB
tap.h 2 kB
util.c 1.9 kB
util.h 1.3 kB
vde.c 3.5 kB
vde.h 1.4 kB

Latest revisions

# Date Author Comment
28b150bf 01/27/2010 07:47 pm Blue Swirl

Fix BSD build

<sys/wait.h> must be included in order to use WIF* macros.

Signed-off-by: Blue Swirl <>

5a01e99f 01/26/2010 10:59 pm Kirill A. Shutemov

net/slirp.c: fix warning with _FORTIFY_SOURCE

CC net/slirp.o
cc1: warnings being treated as errors
net/slirp.c: In function 'slirp_smb_cleanup':
net/slirp.c:470: error: ignoring return value of 'system', declared with attribute warn_unused_result
make: *** [net/slirp.o] Error 1...

ceb69615 01/08/2010 05:58 pm Michael S. Tsirkin

net: add API to disable/enable polling

When vhost is bound to a backend device, we need to stop polling it when
vhost is started, and restart polling when vhost is stopped.
Add an API for that for use by vhost, and implement in tap backend.

Signed-off-by: Michael S. Tsirkin <>...

ee7139c3 12/13/2009 04:28 pm Andreas Färber

tap: Compilation fix for Solaris

Avoid an unresolved symbol error for TFR,
which is defined in sysemu.h.

Based on patch by Palle Lyckegaard.

Signed-off-by: Andreas Färber <>
Cc: Palle Lyckegaard <>
Cc: Ben Taylor <>...

08fd0fa9 12/04/2009 08:06 pm Blue Swirl

win32: fix variable use before initialization

Signed-off-by: Blue Swirl <>

40ff6d7e 12/03/2009 07:45 pm Kevin Wolf

Don't leak file descriptors

We're leaking file descriptors to child processes. Set FD_CLOEXEC on file
descriptors that don't need to be passed to children to stop this misbehaviour.

Signed-off-by: Kevin Wolf <>
Signed-off-by: Anthony Liguori <>

6720b35b 12/03/2009 05:41 pm Pierre Riteau

net: fix TAP networking on host kernels without IFF_VNET_HDR support

vnet_hdr is initialized at 1 by default. We need to reset it to 0 if
the kernel doesn't support IFF_VNET_HDR.

Signed-off-by: Pierre Riteau <>
Signed-off-by: Mark McLoughlin <>...

2e50326c 12/03/2009 05:41 pm Pierre Riteau

net: check for TUNSETOFFLOAD support before trying to enable offload features

This avoids the "TUNSETOFFLOAD ioctl() failed: Invalid argument" message
on kernels without TUNSETOFFLOAD support.

Signed-off-by: Pierre Riteau <>
Signed-off-by: Mark McLoughlin <>...

df6c2a0f 12/03/2009 05:41 pm Mark McLoughlin

net: initialize vnet_hdr in net_init_tap()

net_tap_init() always sets vnet_hdr using qemu_opt_get_bool(), but
initialize it in net_init_tap() just to reduce confusion.

Signed-off-by: Mark McLoughlin <>
Signed-off-by: Anthony Liguori <>

f5c5e381 12/03/2009 05:41 pm Mark McLoughlin

net: fix vnet_hdr handling in solaris tap code

Print an error if the user specifies vnet_hdr=1 on the cmdline.

Signed-off-by: Mark McLoughlin <>
Signed-off-by: Anthony Liguori <>

View revisions

Also available in: Atom