mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
slirp: Explicitely mark host-forwarding sockets
Mark sockets that describe host forwardings. This is required for their (and only their) proper deletion and for pretty-printing. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
f932b6ce71
commit
6dd5ffb661
3 changed files with 4 additions and 3 deletions
|
@ -667,7 +667,7 @@ udp_listen(u_int32_t haddr, u_int hport, u_int32_t laddr, u_int lport,
|
|||
so->so_expire = 0;
|
||||
|
||||
so->so_state &= SS_PERSISTENT_MASK;
|
||||
so->so_state |= SS_ISFCONNECTED;
|
||||
so->so_state |= SS_ISFCONNECTED | flags;
|
||||
|
||||
return so;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue