void virtio_net_set_config_size(VirtIONet *n, uint32_t host_features)

{

    int i, config_size = 0;

    host_features |= (1 << VIRTIO_NET_F_MAC);

    for (i = 0; feature_sizes[i].flags != 0; i++) {

        if (host_features & feature_sizes[i].flags) {

            config_size = MAX(feature_sizes[i].end, config_size);

        }

    }

    n->config_size = config_size;

}

void virtio_net_set_config_size(VirtIONet *n, uint32_t host_features)

{

    int i, config_size = 0;

    host_features |= (1 << VIRTIO_NET_F_MAC);

    for (i = 0; feature_sizes[i].flags != 0; i++) {

        if (host_features & feature_sizes[i].flags) {

            config_size = MAX(feature_sizes[i].end, config_size);

        }

    }

    n->config_size = config_size;

}

void FUNC_0(VirtIONet *VAR_0, uint32_t VAR_1)

{

    int VAR_2, VAR_3 = 0;

    VAR_1 |= (1 << VIRTIO_NET_F_MAC);

    for (VAR_2 = 0; feature_sizes[VAR_2].flags != 0; VAR_2++) {

        if (VAR_1 & feature_sizes[VAR_2].flags) {

            VAR_3 = MAX(feature_sizes[VAR_2].end, VAR_3);

        }

    }

    VAR_0->VAR_3 = VAR_3;

}

void FUNC_0(VirtIONet *VAR_0, uint32_t VAR_1)
{ int VAR_2, VAR_3 = 0; VAR_1 |= (1 << VIRTIO_NET_F_MAC); for (VAR_2 = 0; feature_sizes[VAR_2].flags != 0; VAR_2++) { if (VAR_1 & feature_sizes[VAR_2].flags) { VAR_3 = MAX(feature_sizes[VAR_2].end, VAR_3); } } VAR_0->VAR_3 = VAR_3; }