mirror of
https://github.com/mii443/qemu.git
synced 2025-08-31 03:19:27 +00:00
slirp: Prepare for persistent socket state flags
This prepares for adding flags to socket.so_state that must not be removed during the lifetime of a socket. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
committed by
Anthony Liguori
parent
3c6a05803c
commit
f932b6ce71
@ -1038,7 +1038,8 @@ trimthenstep6:
|
||||
soisfconnected(so);
|
||||
so->so_state &= ~SS_CTL; /* success XXX */
|
||||
} else if (ret == 2) {
|
||||
so->so_state = SS_NOFDREF; /* CTL_CMD */
|
||||
so->so_state &= SS_PERSISTENT_MASK;
|
||||
so->so_state |= SS_NOFDREF; /* CTL_CMD */
|
||||
} else {
|
||||
needoutput = 1;
|
||||
tp->t_state = TCPS_FIN_WAIT_1;
|
||||
|
Reference in New Issue
Block a user