debuggers.hg

changeset 21988:a8098da3461c

libxl, Fix name of tap device.
From: Anthony PERARD <anthony.perard@citrix.com>

Currently, tap device names for a domain begin at tap42.-1, but it must
be tap42.0.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
---
tools/libxl/libxl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
author Anthony Perard <anthony.perard@citrix.com>
date Mon Aug 09 16:46:00 2010 +0100 (2010-08-09)
parents 6b28b2dac7dd
children 88adea5b4546
files tools/libxl/libxl.c
line diff
     1.1 --- a/tools/libxl/libxl.c	Thu Aug 05 11:36:24 2010 +0100
     1.2 +++ b/tools/libxl/libxl.c	Mon Aug 09 16:46:00 2010 +0100
     1.3 @@ -1070,7 +1070,7 @@ static char ** libxl_build_device_model_
     1.4                                             vifs[i].mac[0], vifs[i].mac[1], vifs[i].mac[2],
     1.5                                             vifs[i].mac[3], vifs[i].mac[4], vifs[i].mac[5]);
     1.6                  if (!vifs[i].ifname)
     1.7 -                    vifs[i].ifname = libxl_sprintf(ctx, "tap%d.%d", info->domid, vifs[i].devid - 1);
     1.8 +                    vifs[i].ifname = libxl_sprintf(ctx, "tap%d.%d", info->domid, vifs[i].devid);
     1.9                  flexarray_set(dm_args, num++, "-net");
    1.10                  flexarray_set(dm_args, num++, libxl_sprintf(ctx, "nic,vlan=%d,macaddr=%s,model=%s",
    1.11                              vifs[i].devid, smac, vifs[i].model));