diff options
author | Jason A. Donenfeld | 2021-02-04 16:39:25 +0100 |
---|---|---|
committer | Laurent Vivier | 2021-02-13 22:50:50 +0100 |
commit | ec63e06ef7edd8fb048fe41b901d68c888df9e6c (patch) | |
tree | c89f6b5b3f32a6093829555f2e18b455bf2e33fc /linux-user/syscall.c | |
parent | linux-user/syscall: Fix do_ioctl_ifconf() for 64 bit targets. (diff) | |
download | qemu-ec63e06ef7edd8fb048fe41b901d68c888df9e6c.tar.gz qemu-ec63e06ef7edd8fb048fe41b901d68c888df9e6c.tar.xz qemu-ec63e06ef7edd8fb048fe41b901d68c888df9e6c.zip |
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>
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r-- | linux-user/syscall.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 6fea00869e..36b0901055 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -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; } |