Lines Matching refs:slirp

60 /* Opaque structure containing the slirp state */
90 * Callbacks from slirp, to be set by the application.
128 void (*init_completed)(Slirp *slirp, void *opaque);
204 /* slirp will not redirect/serve any DNS packet */
210 /* slirp will not reply to any DHCP requests */
225 /* Create a new instance of a slirp stack */
241 /* Shut down an instance of a slirp stack */
243 void slirp_cleanup(Slirp *slirp);
253 void slirp_pollfds_fill(Slirp *slirp, uint32_t *timeout,
263 void slirp_pollfds_poll(Slirp *slirp, int select_error,
267 * guest network, to be interpreted by slirp. */
269 void slirp_input(Slirp *slirp, const uint8_t *pkt, int pkt_len);
275 void slirp_handle_timer(Slirp *slirp, SlirpTimerId id, void *cb_opaque);
280 int slirp_add_hostfwd(Slirp *slirp, int is_udp, struct in_addr host_addr,
283 int slirp_remove_hostfwd(Slirp *slirp, int is_udp, struct in_addr host_addr,
289 int slirp_add_hostxfwd(Slirp *slirp,
294 int slirp_remove_hostxfwd(Slirp *slirp,
301 int slirp_add_exec(Slirp *slirp, const char *cmdline,
306 int slirp_add_unix(Slirp *slirp, const char *unixsock,
311 int slirp_add_guestfwd(Slirp *slirp, SlirpWriteCb write_cb, void *opaque,
320 size_t slirp_socket_can_recv(Slirp *slirp, struct in_addr guest_addr,
325 void slirp_socket_recv(Slirp *slirp, struct in_addr guest_addr, int guest_port,
330 int slirp_remove_guestfwd(Slirp *slirp, struct in_addr guest_addr,
333 /* Return a human-readable state of the slirp stack */
335 char *slirp_connection_info(Slirp *slirp);
339 char *slirp_neighbor_info(Slirp *slirp);
341 /* Save the slirp state through the write_cb. The opaque pointer is passed as
346 /* Returns the version of the slirp state, to be saved along the state */
350 /* Load the slirp state through the read_cb. The opaque pointer is passed as
357 /* Return the version of the slirp implementation */