Skip to content

Commit aec1ca4

Browse files
paulburtonRiku Voipio
authored and
Riku Voipio
committed
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 <[email protected]> Signed-off-by: Riku Voipio <[email protected]>
1 parent 8289d11 commit aec1ca4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

linux-user/syscall.c

+3
Original file line numberDiff line numberDiff line change
@@ -1652,6 +1652,9 @@ static abi_long do_getsockopt(int sockfd, int level, int optname,
16521652
case TARGET_SO_RCVLOWAT:
16531653
optname = SO_RCVLOWAT;
16541654
goto int_case;
1655+
case TARGET_SO_ACCEPTCONN:
1656+
optname = SO_ACCEPTCONN;
1657+
goto int_case;
16551658
default:
16561659
goto int_case;
16571660
}

0 commit comments

Comments
 (0)