aboutsummaryrefslogtreecommitdiff
path: root/slirp/slirp.h
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-08-05 12:51:11 +0200
committerJan Kiszka <jan.kiszka@siemens.com>2011-08-05 12:51:11 +0200
commit5a371a2e52facac1f79ab2cb1cf75ed661ab11b0 (patch)
tree3dc5c833d89bda3801c4af8df7dcd24e83a4a420 /slirp/slirp.h
parent81e34a2401f7ffd519bb7f093e833cb48734169f (diff)
downloadqemu-5a371a2e52facac1f79ab2cb1cf75ed661ab11b0.zip
qemu-5a371a2e52facac1f79ab2cb1cf75ed661ab11b0.tar.gz
qemu-5a371a2e52facac1f79ab2cb1cf75ed661ab11b0.tar.bz2
slirp: Fix types of IP address parameters
Should be uint32_t for IPv4, not int. Also avoid in_addr_t without proper includes. Fixes build regression on mingw32. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Diffstat (limited to 'slirp/slirp.h')
-rw-r--r--slirp/slirp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/slirp/slirp.h b/slirp/slirp.h
index 2a070e6..dcf99d5 100644
--- a/slirp/slirp.h
+++ b/slirp/slirp.h
@@ -208,9 +208,9 @@ typedef struct ArpTable {
int next_victim;
} ArpTable;
-void arp_table_add(Slirp *slirp, int ip_addr, uint8_t ethaddr[ETH_ALEN]);
+void arp_table_add(Slirp *slirp, uint32_t ip_addr, uint8_t ethaddr[ETH_ALEN]);
-bool arp_table_search(Slirp *slirp, int in_ip_addr,
+bool arp_table_search(Slirp *slirp, uint32_t ip_addr,
uint8_t out_ethaddr[ETH_ALEN]);
struct Slirp {