diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2009-06-24 14:42:28 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-06-29 08:52:44 -0500 |
commit | b4609a9113c72372cc43e3e1f7c125aca0ab64e6 (patch) | |
tree | bd28f61753aa0d20f6370ead481617b45580d6e0 /slirp.c | |
parent | 3e5478e3c38e4cc6faf91ddc91363bd52adad404 (diff) | |
download | slirp-b4609a9113c72372cc43e3e1f7c125aca0ab64e6.zip slirp-b4609a9113c72372cc43e3e1f7c125aca0ab64e6.tar.gz slirp-b4609a9113c72372cc43e3e1f7c125aca0ab64e6.tar.bz2 |
Revert "User networking: Show active connections"
This reverts commit 1c6ed9f3379faac83da0ed3e95cbd49003ac0dd1.
It's redundant to slirp statistics, which are going to be split up /
reworked later on.
Conflicts:
monitor.c
net.c
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'slirp.c')
-rw-r--r-- | slirp.c | 23 |
1 files changed, 0 insertions, 23 deletions
@@ -736,29 +736,6 @@ void if_encap(const uint8_t *ip_data, int ip_data_len) } } -static 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 is_udp) -{ - struct socket *head = (is_udp ? &udb : &tcb); - struct socket *so; - - for (so = head->so_next; so != head; so = so->so_next) { - func(opaque, is_udp, &so->so_laddr, ntohs(so->so_lport), &so->so_faddr, - ntohs(so->so_fport)); - } -} - -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) -{ - _slirp_redir_loop(func, opaque, 0); - _slirp_redir_loop(func, opaque, 1); -} - /* Unlistens a redirection * * Return value: number of redirs removed */ |