static int parse_vlan(DeviceState *dev, Property *prop, const char *str)

{

    VLANState **ptr = qdev_get_prop_ptr(dev, prop);

    int id;



    if (sscanf(str, "%d", &id) != 1)

        return -EINVAL;

    *ptr = qemu_find_vlan(id, 1);

    if (*ptr == NULL)

        return -ENOENT;

    return 0;

}

static int parse_vlan(DeviceState *dev, Property *prop, const char *str)

{

    VLANState **ptr = qdev_get_prop_ptr(dev, prop);

    int id;



    if (sscanf(str, "%d", &id) != 1)

        return -EINVAL;

    *ptr = qemu_find_vlan(id, 1);

    if (*ptr == NULL)

        return -ENOENT;

    return 0;

}

        return -EINVAL;     return 0;         return -EINVAL;     return 0;         return -EINVAL;     return 0;         return -EINVAL;     return 0;         return -EINVAL;     return 0;         return -EINVAL;     return 0; static int parse_vlan(DeviceState *dev, Property *prop, const char *str)     VLANState **ptr = qdev_get_prop_ptr(dev, prop);     int id;     if (sscanf(str, "%d", &id) != 1)         return -EINVAL;     *ptr = qemu_find_vlan(id, 1);     if (*ptr == NULL)         return -ENOENT;     return 0;
static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, const char *VAR_2)

{

    VLANState **ptr = qdev_get_prop_ptr(VAR_0, VAR_1);

    int VAR_3;



    if (sscanf(VAR_2, "%d", &VAR_3) != 1)

        return -EINVAL;

    *ptr = qemu_find_vlan(VAR_3, 1);

    if (*ptr == NULL)

        return -ENOENT;

    return 0;

}

static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, const char *VAR_2)
{ VLANState **ptr = qdev_get_prop_ptr(VAR_0, VAR_1); int VAR_3; if (sscanf(VAR_2, "%d", &VAR_3) != 1)
return -EINVAL; *ptr = qemu_find_vlan(VAR_3, 1); if (*ptr == NULL)
return -ENOENT; return 0; }