mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
linux-user: support SO_ACCEPTCONN getsockopt option
Translate the SO_ACCEPTCONN option to the host value & execute the syscall as expected. Signed-off-by: Paul Burton <paul@archlinuxmips.org> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
This commit is contained in:
parent
8289d11281
commit
aec1ca411e
1 changed files with 3 additions and 0 deletions
|
@ -1652,6 +1652,9 @@ static abi_long do_getsockopt(int sockfd, int level, int optname,
|
|||
case TARGET_SO_RCVLOWAT:
|
||||
optname = SO_RCVLOWAT;
|
||||
goto int_case;
|
||||
case TARGET_SO_ACCEPTCONN:
|
||||
optname = SO_ACCEPTCONN;
|
||||
goto int_case;
|
||||
default:
|
||||
goto int_case;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue