diff options
author | Mark McLoughlin | 2009-10-22 18:43:41 +0200 |
---|---|---|
committer | Anthony Liguori | 2009-10-27 18:29:01 +0100 |
commit | ca77d175912f7d0b2296e8e3a803a0763c00bc0b (patch) | |
tree | d1b7908cee9de4ee213179b7b027aba610f6fd6e /net-queue.h | |
parent | net: add flags parameter to packet queue interface (diff) | |
download | qemu-ca77d175912f7d0b2296e8e3a803a0763c00bc0b.tar.gz qemu-ca77d175912f7d0b2296e8e3a803a0763c00bc0b.tar.xz 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.h | 1 |
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, |