Statistics
| Branch: | Revision:

root / net @ 43ad7e3e

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.2 kB
slirp.h 1.8 kB
socket.c 16.1 kB
socket.h 1.4 kB
tap-aix.c 1.7 kB
tap-bsd.c 3.3 kB
tap-haiku.c 1.7 kB
tap-linux.c 5.2 kB
tap-linux.h 1.8 kB
tap-solaris.c 6.2 kB
tap-win32.c 21.1 kB
tap.c 13.4 kB
tap.h 2.3 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
43849424 11/16/2010 04:40 pm Michael S. Tsirkin

tap: clear vhost_net backend on cleanup

Frontends calling tap_get_vhost_net get an invalid pointer after the
peer backend has been deleted. Jason Wang <> reports
this leading to a crash in ack_features when we remove the vhost-net
bakend of a virtio nic....

27a6375d 11/16/2010 04:40 pm Michael S. Tsirkin

tap: make set_offload a nop after netdev cleanup

virtio-net expects set_offload to succeed after
peer cleanup.
Since we don't have an open fd anymore, make it so.
Fixes warning about the failure of offload setting.

Reported-by: Jason Wang <>...

49a2942d 10/13/2010 09:41 pm Blue Swirl

Delete write only variables

Compiling with GCC 4.6.0 20100925 produced warnings like:
/src/qemu/net/tap-win32.c: In function 'tap_win32_open':
/src/qemu/net/tap-win32.c:582:12: error: variable 'hThread' set but not used [-Werror=unused-but-set-variable]
...

3ee66dfa 10/03/2010 09:31 am Andreas Färber

tap: Add stub for Haiku

Adapted from AIX code.

Signed-off-by: Andreas Färber <>
Signed-off-by: Blue Swirl <>

5251d6ad 09/29/2010 07:15 pm Andreas Färber

tap: Remove double include of util.h

If neither of FreeBSD, FreeBSD_kernel and DragonFly is defined,
util.h is included from tap-bsd.c.
Don't include it again if OpenBSD is defined.

Cc: Blue Swirl <>
Signed-off-by: Andreas Färber <>...

445d892f 09/07/2010 08:27 pm Michael S. Tsirkin

tap: add APIs for vnet header length

Add APIs to control host header length. First user
will be vhost-net.

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

ef4252b1 09/07/2010 08:27 pm Michael S. Tsirkin

tap: generalize code for different vnet header len

Make host vnet header length a structure field in
preparation for using this support in linux kernel.

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

3690cec8 07/31/2010 10:40 pm Blue Swirl

Fix a warning on OpenSolaris

Add a missing #include statement to avoid a warning:
/src/qemu/net/tap-solaris.c: In function 'tap_open':
/src/qemu/net/tap-solaris.c:189: warning: implicit declaration of function 'error_report'

Signed-off-by: Blue Swirl <>

91ca60e0 06/22/2010 11:15 pm Michael Tokarev

give some useful error messages when tap open

In net/tap-linux.c, when manipulation of /dev/net/tun fails, it prints
(with fprintf) something like this:

warning: could not open /dev/net/tun: no virtual network emulation

this has 2 issues:
1) it is not a warning really, it's a fatal error (kvm exits after...

9678d950 04/25/2010 09:35 pm Blue Swirl

Remove dead assignments in various common files, spotted by clang analyzer

Value stored is never read.

Signed-off-by: Blue Swirl <>

View revisions

Also available in: Atom