aboutsummaryrefslogtreecommitdiff
path: root/slirp/libslirp.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-08-25 22:12:49 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-08-25 22:12:49 +0000
commit9bf05444b24f10616b9e9b9f296bcfdcba4ff0df (patch)
treefa571208d3a955ff6fc96a0c2343ad2b113dbf36 /slirp/libslirp.h
parenta3504c87cac0248996bc07d732761ad37ba45f34 (diff)
downloadqemu-9bf05444b24f10616b9e9b9f296bcfdcba4ff0df.zip
qemu-9bf05444b24f10616b9e9b9f296bcfdcba4ff0df.tar.gz
qemu-9bf05444b24f10616b9e9b9f296bcfdcba4ff0df.tar.bz2
port redirection support
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1054 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'slirp/libslirp.h')
-rw-r--r--slirp/libslirp.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/slirp/libslirp.h b/slirp/libslirp.h
index 47824b2..772427d 100644
--- a/slirp/libslirp.h
+++ b/slirp/libslirp.h
@@ -3,8 +3,10 @@
#ifdef _WIN32
#include <winsock2.h>
+int inet_aton(const char *cp, struct in_addr *ia);
#else
#include <sys/select.h>
+#include <arpa/inet.h>
#endif
void slirp_init(void);
@@ -20,4 +22,9 @@ void slirp_input(const uint8_t *pkt, int pkt_len);
int slirp_can_output(void);
void slirp_output(const uint8_t *pkt, int pkt_len);
+int slirp_redir(int is_udp, int host_port,
+ struct in_addr guest_addr, int guest_port);
+
+extern const char *tftp_prefix;
+
#endif