mirror of
https://github.com/mii443/qemu.git
synced 2025-08-23 15:48:20 +00:00
linux-user: add TARGET_SO_{DOMAIN,PROTOCOL}
These were defined for other platforms but mistakenly left out of mips and generic, so this commit adds them to the places missing. Then it makes them be translated in getsockopt. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20210204153925.2030606-1-Jason@zx2c4.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
committed by
Laurent Vivier
parent
4df7b7fac8
commit
ec63e06ef7
@ -2837,6 +2837,12 @@ get_timeout:
|
||||
case TARGET_SO_ACCEPTCONN:
|
||||
optname = SO_ACCEPTCONN;
|
||||
goto int_case;
|
||||
case TARGET_SO_PROTOCOL:
|
||||
optname = SO_PROTOCOL;
|
||||
goto int_case;
|
||||
case TARGET_SO_DOMAIN:
|
||||
optname = SO_DOMAIN;
|
||||
goto int_case;
|
||||
default:
|
||||
goto int_case;
|
||||
}
|
||||
|
Reference in New Issue
Block a user