From ca77d175912f7d0b2296e8e3a803a0763c00bc0b Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Thu, 22 Oct 2009 17:43:41 +0100 Subject: 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 Signed-off-by: Anthony Liguori --- net-queue.h | 1 + 1 file changed, 1 insertion(+) (limited to 'net-queue.h') 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, -- cgit v1.2.3-55-g7522