All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
To: Jiaxun Yang <jiaxun.yang@flygoat.com>, laurent@vivier.eu
Cc: qemu-devel@nongnu.org
Subject: Re: [PATCH v2] linux-user: add missing MULTICAST_IF get/setsockopt option
Date: Fri, 5 Mar 2021 10:36:30 +0100	[thread overview]
Message-ID: <75d8ed44-1e5e-64d8-21e4-c785987453ec@amsat.org> (raw)
In-Reply-To: <20210305040542.9879-1-jiaxun.yang@flygoat.com>

On 3/5/21 5:05 AM, Jiaxun Yang wrote:
> {IP,IPV6}_MULTICAST_IF was not supported.
> 

FWIW in v1 you had "Reported-by: Yunqiang Su <syq@debian.org>"

> Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
> ---
>  linux-user/syscall.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/linux-user/syscall.c b/linux-user/syscall.c
> index 389ec09764..77343130b3 100644
> --- a/linux-user/syscall.c
> +++ b/linux-user/syscall.c
> @@ -2219,6 +2219,7 @@ static abi_long do_setsockopt(int sockfd, int level, int optname,
>  #ifdef IP_FREEBIND
>          case IP_FREEBIND:
>  #endif
> +        case IP_MULTICAST_IF:
>          case IP_MULTICAST_TTL:
>          case IP_MULTICAST_LOOP:
>              val = 0;
> @@ -2265,6 +2266,7 @@ static abi_long do_setsockopt(int sockfd, int level, int optname,
>          case IPV6_V6ONLY:
>          case IPV6_RECVPKTINFO:
>          case IPV6_UNICAST_HOPS:
> +        case IPV6_MULTICAST_IF:
>          case IPV6_MULTICAST_HOPS:
>          case IPV6_MULTICAST_LOOP:
>          case IPV6_RECVERR:
> @@ -2891,6 +2893,7 @@ get_timeout:
>  #ifdef IP_FREEBIND
>          case IP_FREEBIND:
>  #endif
> +        case IP_MULTICAST_IF:
>          case IP_MULTICAST_TTL:
>          case IP_MULTICAST_LOOP:
>              if (get_user_u32(len, optlen))
> @@ -2926,6 +2929,7 @@ get_timeout:
>          case IPV6_V6ONLY:
>          case IPV6_RECVPKTINFO:
>          case IPV6_UNICAST_HOPS:
> +        case IPV6_MULTICAST_IF:
>          case IPV6_MULTICAST_HOPS:
>          case IPV6_MULTICAST_LOOP:
>          case IPV6_RECVERR:
> 



      reply	other threads:[~2021-03-05  9:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-05  4:05 [PATCH v2] linux-user: add missing MULTICAST_IF get/setsockopt option Jiaxun Yang
2021-03-05  9:36 ` Philippe Mathieu-Daudé [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=75d8ed44-1e5e-64d8-21e4-c785987453ec@amsat.org \
    --to=f4bug@amsat.org \
    --cc=jiaxun.yang@flygoat.com \
    --cc=laurent@vivier.eu \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.