ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/slirp/libslirp.h
Revision: 1.5
Committed: 2007-11-03T11:11:42Z (16 years, 6 months ago) by gbeauche
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -0 lines
Log Message:
Update to slirp sources from QEMU 0.8.2:
- set slirp client hostname
- fix slirp redirection on systems without a useful host IP address
- separate alias_addr (10.0.2.2) from our_addr (Ed Swierk)
- fix 32+ KB packets handling (Ed Swierk)
- fix UDP broadcast translation error
- solaris port (Ben Taylor)

File Contents

# Content
1 #ifndef _LIBSLIRP_H
2 #define _LIBSLIRP_H
3
4 #ifdef _WIN32
5 #include <winsock2.h>
6 int inet_aton(const char *cp, struct in_addr *ia);
7 #else
8 #include <sys/select.h>
9 #include <arpa/inet.h>
10 #endif
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 int slirp_init(void);
17
18 int slirp_select_fill(int *pnfds,
19 fd_set *readfds, fd_set *writefds, fd_set *xfds);
20
21 void slirp_select_poll(fd_set *readfds, fd_set *writefds, fd_set *xfds);
22
23 void slirp_input(const uint8 *pkt, int pkt_len);
24
25 /* you must provide the following functions: */
26 int slirp_can_output(void);
27 void slirp_output(const uint8 *pkt, int pkt_len);
28
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,
32 int guest_port);
33
34 extern const char *tftp_prefix;
35 extern char slirp_hostname[33];
36
37 #ifdef __cplusplus
38 }
39 #endif
40
41 #endif