summaryrefslogtreecommitdiff
path: root/net/vde.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/vde.c')
-rw-r--r--net/vde.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/net/vde.c b/net/vde.c
index b91a6c799b..2a619fbc81 100644
--- a/net/vde.c
+++ b/net/vde.c
@@ -21,16 +21,15 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
-#include "net/vde.h"
-
#include "config-host.h"
#include <libvdeplug.h>
-#include "net.h"
-#include "qemu-char.h"
+#include "net/net.h"
+#include "clients.h"
#include "qemu-common.h"
-#include "qemu-option.h"
+#include "qemu/option.h"
+#include "qemu/main-loop.h"
typedef struct VDEState {
NetClientState nc;
@@ -40,7 +39,7 @@ typedef struct VDEState {
static void vde_to_qemu(void *opaque)
{
VDEState *s = opaque;
- uint8_t buf[4096];
+ uint8_t buf[NET_BUFSIZE];
int size;
size = vde_recv(s->vde, (char *)buf, sizeof(buf), 0);