static void net_vhost_link_down(VhostUserState *s, bool link_down)

{

    s->nc.link_down = link_down;



    if (s->nc.peer) {

        s->nc.peer->link_down = link_down;

    }



    if (s->nc.info->link_status_changed) {

        s->nc.info->link_status_changed(&s->nc);

    }



    if (s->nc.peer && s->nc.peer->info->link_status_changed) {

        s->nc.peer->info->link_status_changed(s->nc.peer);

    }

}

static void net_vhost_link_down(VhostUserState *s, bool link_down)

{

    s->nc.link_down = link_down;



    if (s->nc.peer) {

        s->nc.peer->link_down = link_down;

    }



    if (s->nc.info->link_status_changed) {

        s->nc.info->link_status_changed(&s->nc);

    }



    if (s->nc.peer && s->nc.peer->info->link_status_changed) {

        s->nc.peer->info->link_status_changed(s->nc.peer);

    }

}

static void FUNC_0(VhostUserState *VAR_0, bool VAR_1)

{

    VAR_0->nc.VAR_1 = VAR_1;



    if (VAR_0->nc.peer) {

        VAR_0->nc.peer->VAR_1 = VAR_1;

    }



    if (VAR_0->nc.info->link_status_changed) {

        VAR_0->nc.info->link_status_changed(&VAR_0->nc);

    }



    if (VAR_0->nc.peer && VAR_0->nc.peer->info->link_status_changed) {

        VAR_0->nc.peer->info->link_status_changed(VAR_0->nc.peer);

    }

}

static void FUNC_0(VhostUserState *VAR_0, bool VAR_1)
{ VAR_0->nc.VAR_1 = VAR_1; if (VAR_0->nc.peer) { VAR_0->nc.peer->VAR_1 = VAR_1; } if (VAR_0->nc.info->link_status_changed) { VAR_0->nc.info->link_status_changed(&VAR_0->nc); } if (VAR_0->nc.peer && VAR_0->nc.peer->info->link_status_changed) { VAR_0->nc.peer->info->link_status_changed(VAR_0->nc.peer); } }