diff mbox series

[2/2] linux-user: update do_setsockopt()

Message ID 20180627212152.26525-3-laurent@vivier.eu
State New
Headers show
Series linux-user: minor fixes | expand

Commit Message

Laurent Vivier June 27, 2018, 9:21 p.m. UTC
add IPV6_MULTICAST_HOPS and IPV6_MULTICAST_LOOP that need
32bit value conversion

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 linux-user/syscall.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Philippe Mathieu-Daudé June 28, 2018, 2:18 p.m. UTC | #1
On 06/27/2018 06:21 PM, Laurent Vivier wrote:
> add IPV6_MULTICAST_HOPS and IPV6_MULTICAST_LOOP that need
> 32bit value conversion
> 
> Signed-off-by: Laurent Vivier <laurent@vivier.eu>

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

> ---
>  linux-user/syscall.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> index 4460f1e39a..50e20fb659 100644
> --- a/linux-user/syscall.c
> +++ b/linux-user/syscall.c
> @@ -3019,6 +3019,8 @@ static abi_long do_setsockopt(int sockfd, int level, int optname,
>          case IPV6_V6ONLY:
>          case IPV6_RECVPKTINFO:
>          case IPV6_UNICAST_HOPS:
> +        case IPV6_MULTICAST_HOPS:
> +        case IPV6_MULTICAST_LOOP:
>          case IPV6_RECVERR:
>          case IPV6_RECVHOPLIMIT:
>          case IPV6_2292HOPLIMIT:
>
diff mbox series

Patch

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 4460f1e39a..50e20fb659 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -3019,6 +3019,8 @@  static abi_long do_setsockopt(int sockfd, int level, int optname,
         case IPV6_V6ONLY:
         case IPV6_RECVPKTINFO:
         case IPV6_UNICAST_HOPS:
+        case IPV6_MULTICAST_HOPS:
+        case IPV6_MULTICAST_LOOP:
         case IPV6_RECVERR:
         case IPV6_RECVHOPLIMIT:
         case IPV6_2292HOPLIMIT: