6 int inet_aton(const char *cp
, struct in_addr
*ia
);
8 #include <sys/select.h>
16 void slirp_init(void);
18 void slirp_select_fill(int *pnfds
,
19 fd_set
*readfds
, fd_set
*writefds
, fd_set
*xfds
);
21 void slirp_select_poll(fd_set
*readfds
, fd_set
*writefds
, fd_set
*xfds
);
23 void slirp_input(const uint8_t *pkt
, int pkt_len
);
25 /* you must provide the following functions: */
26 int slirp_can_output(void);
27 void slirp_output(const uint8_t *pkt
, int pkt_len
);
29 int slirp_redir(int is_udp
, int host_port
,
30 struct in_addr guest_addr
, int guest_port
);
31 int slirp_add_exec(int do_pty
, const char *args
, int addr_low_byte
,
34 extern const char *tftp_prefix
;
35 extern char slirp_hostname
[33];