[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] difference between receive_raw() and receive() NetClien
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] difference between receive_raw() and receive() NetClientInfo methods ? |
Date: |
Fri, 7 Jun 2013 14:29:12 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Jun 06, 2013 at 11:40:37AM +0200, Luigi Rizzo wrote:
> Can someone clarify what is the difference between the two methods
> r
> eceive_raw() and receive() in NetClientInfo ?
receive_raw() builds an empty vnet header, if necessary. It is used to
send a gratuitous ARP reply from inside QEMU.
In the case where the NIC and its peer use vnet headers, packets
generated by QEMU internally cannot use ->receive() since they don't
know how to use the vnet header. ->receive_raw() takes care of that.
Stefan