Statistics
| Branch: | Revision:

root / net @ 016b2b28

Name Size
checksum.c 2.2 kB
checksum.h 1.1 kB
queue.c 7.5 kB
queue.h 2.9 kB
tap-aix.c 1.6 kB
tap-bsd.c 3.2 kB
tap-linux.c 4.2 kB
tap-linux.h 1.6 kB
tap-solaris.c 5.7 kB
tap-win32.c 20.9 kB
tap.c 11.1 kB
tap.h 2 kB

Latest revisions

# Date Author Comment
929fe497 11/21/2009 11:32 am Juergen Lock

Avoid segfault on net_tap_init() failure

Check for fd == -1 there.

Signed-off-by: Juergen Lock <>
Signed-off-by: Blue Swirl <>

2f859a3c 11/21/2009 11:32 am Juergen Lock

tap-bsd: handle ifname on FreeBSD hosts

Handle ifname on FreeBSD hosts; if no ifname is given, always start
the search from tap0. (Simplified/cleaned up version of what has been
in the FreeBSD ports for a long time.)

Signed-off-by: Juergen Lock <>...

39ca4c08 11/21/2009 11:32 am Juergen Lock

Fix tap breakage on BSD hosts (no IFF_VNET_HDR)

net/tap-bsd.c was assuming IFF_VNET_HDR was always available, which
I think isn't true on any BSD.

Signed-off-by: Juergen Lock <>
Signed-off-by: Blue Swirl <>

be1636b3 11/09/2009 04:43 pm Mark McLoughlin

tap: disable draining queue in one go

If qemu_send_packet_async() returns zero, it means the packet has been
queued and the sent callback will be invoked once it has been flushed.

This is only possible where the NIC's receive() handler returns zero
and promises to notify the networking core that room is available in its...

839f368f 11/09/2009 04:43 pm Mark McLoughlin

net/queue: queue packets even if sender doesn't supply a callback

Now that we disable any receiver whose queue is full, we do not require
senders to handle a zero return by supplying a sent callback.

This is a second step towards allowing can_receive() handlers to return...

5819c918 11/09/2009 04:43 pm Mark McLoughlin

tap: drain queue in tap_send()

Okay, let's try re-enabling the drain-entire-queue behaviour, with a
difference - before each subsequent packet, use qemu_can_send_packet()
to check that we can send it. This is similar to how we check before
polling the tap fd and avoids having to drop a packet if the receiver...

ed7193ec 10/30/2009 11:45 pm Anthony Liguori

Unbreak Linux build

commit 71f4effce79ec0485586963ea764f2c212c72f26
Author: Alexander Graf &lt;&gt;
Date: Fri Oct 30 22:27:00 2009 +0100
Unbreak tap compilation on OS X

Broke the build on Linux due to a bad #if guard

Signed-off-by: Anthony Liguori <>

71f4effc 10/30/2009 11:38 pm Alexander Graf

Unbreak tap compilation on OS X

Currently compiling the tap sources breaks on Mac OS X. This is because of:

1) tap-linux.h requiring Linux includes
2) typos
3) missing #includes

This patch adds what's necessary to compile tap happily on Mac OS X....

9c282718 10/30/2009 03:39 pm Mark McLoughlin

net: move UFO support detection to tap-linux.c

Only supported on Linux

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

1faac1f7 10/30/2009 03:39 pm Mark McLoughlin

net: move tap_set_offload() code into tap-linux.c

TUNSETOFFLOAD is only available on Linux

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

View revisions

Also available in: Atom