X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_packet.h;h=a4ba3e5325616e0517eb4e5801da920de8da3bca;hb=0a7690f54cb5bda83780dac26ce433ad24b1d766;hp=78585c16b967382330ed8c80770a098328092307;hpb=13d8e5d4035b90bf1ab8b1da115c7d6310c76526;p=palacios-OLD.git diff --git a/palacios/include/palacios/vmm_packet.h b/palacios/include/palacios/vmm_packet.h index 78585c1..a4ba3e5 100644 --- a/palacios/include/palacios/vmm_packet.h +++ b/palacios/include/palacios/vmm_packet.h @@ -22,28 +22,23 @@ #define __VMM_PACKET_H__ #include +#include #ifdef __V3VEE__ -#define V3_send_Raw(pkt, size, data) ({ \ - extern struct v3_packet_hooks * packet_hooks; \ - int ret; \ - if ((packet_hooks) && (packet_hooks)->send) { \ - ret = (packet_hooks)->send(pkt,size,data); \ - } \ - ret; \ - }) +int V3_send_raw(const char * pkt, uint32_t len); +int V3_packet_add_recver(const char * mac, struct v3_vm_info * vm); +int V3_packet_del_recver(const char * mac, struct v3_vm_info * vm); #endif - struct v3_packet_hooks { - int (*send)(const char * pkt, const int size, void * private_data); - + int (*send)(const char * pkt, unsigned int size, void * private_data); + int (*add_recver)(const char * mac, struct v3_vm_info * vm); + int (*del_recver)(const char * mac, struct v3_vm_info * vm); }; - extern void V3_Init_Packet(struct v3_packet_hooks * hooks); #endif