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