]> Git Repo - qemu.git/commitdiff
linux-user: support SO_{SND, RCV}BUFFORCE setsockopt options
authorPaul Burton <[email protected]>
Sun, 22 Jun 2014 10:25:35 +0000 (11:25 +0100)
committerRiku Voipio <[email protected]>
Sun, 29 Jun 2014 11:19:58 +0000 (14:19 +0300)
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]>
linux-user/syscall.c

index b1e57df4a3b6d13c6539dd0d6e30e51fed8e5b71..bdc60fe0ee8aef83b9d2fabad0a11e132cc6532f 100644 (file)
@@ -1502,9 +1502,15 @@ set_timeout:
         case TARGET_SO_SNDBUF:
                optname = SO_SNDBUF;
                break;
+        case TARGET_SO_SNDBUFFORCE:
+                optname = SO_SNDBUFFORCE;
+                break;
         case TARGET_SO_RCVBUF:
                optname = SO_RCVBUF;
                break;
+        case TARGET_SO_RCVBUFFORCE:
+                optname = SO_RCVBUFFORCE;
+                break;
         case TARGET_SO_KEEPALIVE:
                optname = SO_KEEPALIVE;
                break;
This page took 0.037888 seconds and 4 git commands to generate.