mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
linux-user: add SO_LINGER to {g,s}etsockopt
Original implementation for setsockopt by Chen Gang[1]; all bugs mine, including removing assignment for optname which hopefully makes the logic easier to follow and moving some variables to make the code more selfcontained. [1] http://patchwork.ozlabs.org/patch/565659/ Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com> Co-Authored-By: Chen Gang <gang.chen.5i5j@gmail.com> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20180824085601.6259-1-carenas@gmail.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
f7e6a401fe
commit
83eb6e5090
2 changed files with 56 additions and 1 deletions
|
@ -203,6 +203,11 @@ struct target_ip_mreq_source {
|
|||
uint32_t imr_sourceaddr;
|
||||
};
|
||||
|
||||
struct target_linger {
|
||||
abi_int l_onoff; /* Linger active */
|
||||
abi_int l_linger; /* How long to linger for */
|
||||
};
|
||||
|
||||
struct target_timeval {
|
||||
abi_long tv_sec;
|
||||
abi_long tv_usec;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue