diff options
Diffstat (limited to 'slirp/libslirp.h')
-rw-r--r-- | slirp/libslirp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/slirp/libslirp.h b/slirp/libslirp.h index 47824b2413..772427d110 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 |