diff options
author | Alexander Graf <agraf@suse.de> | 2009-05-26 13:03:27 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-05-28 02:14:56 -0500 |
commit | 1c6ed9f3379faac83da0ed3e95cbd49003ac0dd1 (patch) | |
tree | a00f486a54b46a346b25c73d217bfde0704a5df4 /slirp/libslirp.h | |
parent | c1261d8d1617d8cf5722039a59ebb66c310f3aea (diff) | |
download | qemu-1c6ed9f3379faac83da0ed3e95cbd49003ac0dd1.zip qemu-1c6ed9f3379faac83da0ed3e95cbd49003ac0dd1.tar.gz qemu-1c6ed9f3379faac83da0ed3e95cbd49003ac0dd1.tar.bz2 |
User networking: Show active connections
In case you're wondering what connections exactly you have open
or maybe redir'ed in the past, you can't really find out from qemu
right now.
This patch enables you to see all current connections the host
only networking holds open, so you can kill them using the previous
patch.
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'slirp/libslirp.h')
-rw-r--r-- | slirp/libslirp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/slirp/libslirp.h b/slirp/libslirp.h index 6fc2c32..b2313b4 100644 --- a/slirp/libslirp.h +++ b/slirp/libslirp.h @@ -18,6 +18,10 @@ 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); +void slirp_redir_loop(void (*func)(void *opaque, int is_udp, + struct in_addr *laddr, u_int lport, + struct in_addr *faddr, u_int fport), + void *opaque); int slirp_redir_rm(int is_udp, int host_port); int slirp_redir(int is_udp, int host_port, struct in_addr guest_addr, int guest_port); |