]>
Commit | Line | Data |
---|---|---|
f0cbd3ec FB |
1 | #ifndef _LIBSLIRP_H |
2 | #define _LIBSLIRP_H | |
3 | ||
101c5935 FB |
4 | #ifdef __cplusplus |
5 | extern "C" { | |
6 | #endif | |
7 | ||
f0cbd3ec FB |
8 | void slirp_init(void); |
9 | ||
5fafdf24 | 10 | void slirp_select_fill(int *pnfds, |
f0cbd3ec FB |
11 | fd_set *readfds, fd_set *writefds, fd_set *xfds); |
12 | ||
13 | void slirp_select_poll(fd_set *readfds, fd_set *writefds, fd_set *xfds); | |
14 | ||
15 | void slirp_input(const uint8_t *pkt, int pkt_len); | |
16 | ||
17 | /* you must provide the following functions: */ | |
18 | int slirp_can_output(void); | |
19 | void slirp_output(const uint8_t *pkt, int pkt_len); | |
20 | ||
5fafdf24 | 21 | int slirp_redir(int is_udp, int host_port, |
9bf05444 | 22 | struct in_addr guest_addr, int guest_port); |
5fafdf24 | 23 | int slirp_add_exec(int do_pty, const char *args, int addr_low_byte, |
a3d4af03 | 24 | int guest_port); |
9bf05444 FB |
25 | |
26 | extern const char *tftp_prefix; | |
3f423c9c | 27 | extern char slirp_hostname[33]; |
9bf05444 | 28 | |
31a60e22 BS |
29 | void slirp_stats(void); |
30 | ||
101c5935 FB |
31 | #ifdef __cplusplus |
32 | } | |
33 | #endif | |
34 | ||
f0cbd3ec | 35 | #endif |