X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fnic_bridge.c;h=9bc28d2acc4a64b76ad3f38f58701368f0bf8e7a;hb=0dc44b36f3d1f95efe8fe96484e76e65aeebd197;hp=87993cb4544f3919e8824d072a77a38d7fedc337;hpb=d1ec82424844857c506e3022ff27aee90343f5ac;p=palacios-OLD.git diff --git a/palacios/src/devices/nic_bridge.c b/palacios/src/devices/nic_bridge.c index 87993cb..9bc28d2 100644 --- a/palacios/src/devices/nic_bridge.c +++ b/palacios/src/devices/nic_bridge.c @@ -23,7 +23,7 @@ #include #include #include -#include +#include #ifndef CONFIG_DEBUG_NIC_BRIDGE #undef PrintDebug @@ -37,7 +37,6 @@ struct nic_bridge_state { static int bridge_send(uint8_t * buf, uint32_t len, void * private_data) { - //struct nic_bridge_state *bridge = (struct nic_bridge_state *)private_data; #ifdef CONFIG_DEBUG_NIC_BRIDGE { @@ -112,6 +111,8 @@ static int nic_bridge_init(struct v3_vm_info * vm, v3_cfg_tree_t * cfg) { PrintDebug("NIC-Bridge: Connect %s to frontend %s\n", dev_id, v3_cfg_val(frontend_cfg, "tag")); + + V3_packet_add_recver(bridge->net_ops.fnt_mac, vm); v3_hook_host_event(vm, HOST_PACKET_EVT, V3_HOST_EVENT_HANDLER(packet_input), bridge); return 0;