summary refs log tree commit diff stats
path: root/net-queue.h
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2009-10-22 17:43:41 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-27 12:29:01 -0500
commitca77d175912f7d0b2296e8e3a803a0763c00bc0b (patch)
treed1b7908cee9de4ee213179b7b027aba610f6fd6e /net-queue.h
parentc0b8e49c695ac11e3ef543db9ea2d8a1f62ccfce (diff)
downloadfocaccia-qemu-ca77d175912f7d0b2296e8e3a803a0763c00bc0b.tar.gz
focaccia-qemu-ca77d175912f7d0b2296e8e3a803a0763c00bc0b.zip
net: add an API for 'raw' packets
In the case where a NIC and backend agree on a packet header format,
this API allows injecting packets which lack the agreed upon header.

We need this for sending our gratuitous ARP.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'net-queue.h')
-rw-r--r--net-queue.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/net-queue.h b/net-queue.h
index 343760e9d4..a31958e3c6 100644
--- a/net-queue.h
+++ b/net-queue.h
@@ -44,6 +44,7 @@ typedef ssize_t (NetPacketDeliverIOV) (VLANClientState *sender,
                                        void *opaque);
 
 #define QEMU_NET_PACKET_FLAG_NONE  0
+#define QEMU_NET_PACKET_FLAG_RAW  (1<<0)
 
 NetQueue *qemu_new_net_queue(NetPacketDeliver *deliver,
                              NetPacketDeliverIOV *deliver_iov,