Lines Matching full:slirp

27 #include "net/slirp.h"
72 /* slirp network adapter */
86 Slirp *slirp; member
92 Slirp *slirp; member
137 slirp_input(s->slirp, buf, size); in net_slirp_receive()
162 unregister_savevm(NULL, "slirp", s->slirp); in net_slirp_cleanup()
163 slirp_cleanup(s->slirp); in net_slirp_cleanup()
192 Slirp *slirp; member
199 static void net_slirp_init_completed(Slirp *slirp, void *opaque) in net_slirp_init_completed() argument
202 s->slirp = slirp; in net_slirp_init_completed()
208 slirp_handle_timer(t->slirp, t->id, t->cb_opaque); in net_slirp_timer_cb()
216 t->slirp = s->slirp; in net_slirp_timer_new_opaque()
366 slirp_pollfds_fill(s->slirp, &poll->timeout, in net_slirp_poll_notify()
371 slirp_pollfds_poll(s->slirp, poll->state == MAIN_LOOP_POLL_ERR, in net_slirp_poll_notify()
402 Slirp *slirp = opaque; in net_slirp_state_load() local
404 return slirp_state_load(slirp, version_id, net_slirp_stream_read, f); in net_slirp_state_load()
409 Slirp *slirp = opaque; in net_slirp_state_save() local
411 slirp_state_save(slirp, net_slirp_stream_write, f); in net_slirp_state_save()
432 /* default settings according to historic slirp */ in net_slirp_init()
651 s->slirp = slirp_new(&cfg, &slirp_cb, s); in net_slirp_init()
655 * Make sure the current bitstream version of slirp is 4, to avoid in net_slirp_init()
656 * QEMU migration incompatibilities, if upstream slirp bumped the in net_slirp_init()
663 register_savevm_live("slirp", VMSTATE_INSTANCE_ID_ANY, in net_slirp_init()
664 slirp_state_version(), &savevm_slirp_state, s->slirp); in net_slirp_init()
773 err = slirp_remove_hostxfwd(s->slirp, (struct sockaddr *) &host_addr, in hmp_hostfwd_remove()
776 err = slirp_remove_hostfwd(s->slirp, is_udp, host_addr.sin_addr, host_port); in hmp_hostfwd_remove()
860 err = slirp_add_hostxfwd(s->slirp, in slirp_hostfwd()
865 err = slirp_add_hostfwd(s->slirp, is_udp, in slirp_hostfwd()
1010 if (slirp_add_exec(s->slirp, smb_cmdline, &vserver_addr, 139) < 0 || in slirp_smb()
1011 slirp_add_exec(s->slirp, smb_cmdline, &vserver_addr, 445) < 0) { in slirp_smb()
1026 return slirp_socket_can_recv(fwd->slirp, fwd->server, fwd->port); in guestfwd_can_read()
1032 slirp_socket_recv(fwd->slirp, fwd->server, fwd->port, buf, size); in guestfwd_read()
1074 if (slirp_add_exec(s->slirp, &p[4], &server, port) < 0) { in slirp_guestfwd()
1102 if (slirp_add_guestfwd(s->slirp, guestfwd_write, &fwd->hd, in slirp_guestfwd()
1112 fwd->slirp = s->slirp; in slirp_guestfwd()
1132 char *info = slirp_connection_info(s->slirp); in hmp_info_usernet()