diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2009-06-24 14:42:29 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-06-29 08:52:45 -0500 |
commit | f932b6ce717e65687c3095e3e41a6c18972f996c (patch) | |
tree | 44d74bc4164e3c43d2ac9a7b372b842cd8db2537 /slirp/udp.c | |
parent | 3c6a05803c8f33b2ce6f704df87c98983029befd (diff) |
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>
Diffstat (limited to 'slirp/udp.c')
-rw-r--r-- | slirp/udp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/slirp/udp.c b/slirp/udp.c index d675ad3e66..3722845cde 100644 --- a/slirp/udp.c +++ b/slirp/udp.c @@ -666,7 +666,8 @@ udp_listen(u_int32_t haddr, u_int hport, u_int32_t laddr, u_int lport, if (flags != SS_FACCEPTONCE) so->so_expire = 0; - so->so_state = SS_ISFCONNECTED; + so->so_state &= SS_PERSISTENT_MASK; + so->so_state |= SS_ISFCONNECTED; return so; } |