diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2009-06-24 14:42:31 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-06-29 08:52:49 -0500 |
commit | 9f8bd0421dc03b2640ac2d0a4d702354a218b2ab (patch) | |
tree | b866bf7d4864fac7a8313bdf04cca2f997242951 /slirp/misc.c | |
parent | 460fec67ee3807bb2eb189587ffe803a48f317e5 (diff) | |
download | qemu-9f8bd0421dc03b2640ac2d0a4d702354a218b2ab.tar.gz qemu-9f8bd0421dc03b2640ac2d0a4d702354a218b2ab.tar.bz2 qemu-9f8bd0421dc03b2640ac2d0a4d702354a218b2ab.zip |
slirp: Use internal state in interface
This now also exports the internal state to the slirp users in qemu,
returning it from slirp_init and expecting it along with service
invocations. Additionally provide an opaque value interface for the
callbacks from slirp into the qemu core.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'slirp/misc.c')
-rw-r--r-- | slirp/misc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/slirp/misc.c b/slirp/misc.c index c2b66fd967..e9f08fdac5 100644 --- a/slirp/misc.c +++ b/slirp/misc.c @@ -370,7 +370,7 @@ fd_block(int fd) #endif } -void slirp_connection_info(Monitor *mon) +void slirp_connection_info(Slirp *slirp, Monitor *mon) { const char * const tcpstates[] = { [TCPS_CLOSED] = "CLOSED", @@ -385,7 +385,6 @@ void slirp_connection_info(Monitor *mon) [TCPS_FIN_WAIT_2] = "FIN_WAIT_2", [TCPS_TIME_WAIT] = "TIME_WAIT", }; - Slirp *slirp = &slirp_instance; struct in_addr dst_addr; struct sockaddr_in src; socklen_t src_len; |