mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
Revert "User networking: Show active connections"
This reverts commit 1c6ed9f337
.
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>
This commit is contained in:
parent
b35725c544
commit
e15f4a992c
4 changed files with 1 additions and 74 deletions
|
@ -734,30 +734,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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue