Skip to content

Commit d79b6cc

Browse files
paulburtonRiku Voipio
authored and
Riku Voipio
committed
linux-user: support SO_{SND, RCV}BUFFORCE setsockopt options
Translate the SO_SNDBUFFORCE & SO_RCVBUFFORCE options to setsockopt to the host values & perform the syscall as expected, allowing use of those options by target programs. Signed-off-by: Paul Burton <[email protected]> Signed-off-by: Riku Voipio <[email protected]>
1 parent aec1ca4 commit d79b6cc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

linux-user/syscall.c

+6
Original file line numberDiff line numberDiff line change
@@ -1502,9 +1502,15 @@ static abi_long do_setsockopt(int sockfd, int level, int optname,
15021502
case TARGET_SO_SNDBUF:
15031503
optname = SO_SNDBUF;
15041504
break;
1505+
case TARGET_SO_SNDBUFFORCE:
1506+
optname = SO_SNDBUFFORCE;
1507+
break;
15051508
case TARGET_SO_RCVBUF:
15061509
optname = SO_RCVBUF;
15071510
break;
1511+
case TARGET_SO_RCVBUFFORCE:
1512+
optname = SO_RCVBUFFORCE;
1513+
break;
15081514
case TARGET_SO_KEEPALIVE:
15091515
optname = SO_KEEPALIVE;
15101516
break;

0 commit comments

Comments
 (0)