static void slirp_state_save(QEMUFile *f, void *opaque)

{

    Slirp *slirp = opaque;

    struct ex_list *ex_ptr;



    for (ex_ptr = slirp->exec_list; ex_ptr; ex_ptr = ex_ptr->ex_next)

        if (ex_ptr->ex_pty == 3) {

            struct socket *so;

            so = slirp_find_ctl_socket(slirp, ex_ptr->ex_addr,

                                       ntohs(ex_ptr->ex_fport));

            if (!so)

                continue;



            qemu_put_byte(f, 42);

            vmstate_save_state(f, &vmstate_slirp_socket, so, NULL);

        }

    qemu_put_byte(f, 0);



    qemu_put_be16(f, slirp->ip_id);



    slirp_bootp_save(f, slirp);

}

static void slirp_state_save(QEMUFile *f, void *opaque)

{

    Slirp *slirp = opaque;

    struct ex_list *ex_ptr;



    for (ex_ptr = slirp->exec_list; ex_ptr; ex_ptr = ex_ptr->ex_next)

        if (ex_ptr->ex_pty == 3) {

            struct socket *so;

            so = slirp_find_ctl_socket(slirp, ex_ptr->ex_addr,

                                       ntohs(ex_ptr->ex_fport));

            if (!so)

                continue;



            qemu_put_byte(f, 42);

            vmstate_save_state(f, &vmstate_slirp_socket, so, NULL);

        }

    qemu_put_byte(f, 0);



    qemu_put_be16(f, slirp->ip_id);



    slirp_bootp_save(f, slirp);

}

static void FUNC_0(QEMUFile *VAR_0, void *VAR_1)

{

    Slirp *slirp = VAR_1;

    struct ex_list *VAR_2;



    for (VAR_2 = slirp->exec_list; VAR_2; VAR_2 = VAR_2->ex_next)

        if (VAR_2->ex_pty == 3) {

            struct socket *VAR_3;

            VAR_3 = slirp_find_ctl_socket(slirp, VAR_2->ex_addr,

                                       ntohs(VAR_2->ex_fport));

            if (!VAR_3)

                continue;



            qemu_put_byte(VAR_0, 42);

            vmstate_save_state(VAR_0, &vmstate_slirp_socket, VAR_3, NULL);

        }

    qemu_put_byte(VAR_0, 0);



    qemu_put_be16(VAR_0, slirp->ip_id);



    slirp_bootp_save(VAR_0, slirp);

}

static void FUNC_0(QEMUFile *VAR_0, void *VAR_1)
{ Slirp *slirp = VAR_1; struct ex_list *VAR_2; for (VAR_2 = slirp->exec_list; VAR_2; VAR_2 = VAR_2->ex_next) if (VAR_2->ex_pty == 3) { struct socket *VAR_3; VAR_3 = slirp_find_ctl_socket(slirp, VAR_2->ex_addr,
ntohs(VAR_2->ex_fport)); if (!VAR_3)
continue; qemu_put_byte(VAR_0, 42); vmstate_save_state(VAR_0, &vmstate_slirp_socket, VAR_3, NULL); } qemu_put_byte(VAR_0, 0); qemu_put_be16(VAR_0, slirp->ip_id); slirp_bootp_save(VAR_0, slirp); }