Received: from eggs.gnu.org ([2001:4830:134:3::10]:51080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJ5gr-0002T1-7I for qemu-devel@nongnu.org; Wed, 16 May 2018 19:18:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJ5gq-000424-9e for qemu-devel@nongnu.org; Wed, 16 May 2018 19:18:37 -0400 Received: from mail-qk0-x236.google.com ([2607:f8b0:400d:c09::236]:35780) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJ5gq-00041t-5Y for qemu-devel@nongnu.org; Wed, 16 May 2018 19:18:36 -0400 Received: by mail-qk0-x236.google.com with SMTP id c137-v6so2159798qkg.2 for ; Wed, 16 May 2018 16:18:36 -0700 (PDT) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= References: <20180516205543.29305-1-laurent@vivier.eu> <20180516205543.29305-9-laurent@vivier.eu> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: Date: Wed, 16 May 2018 20:18:29 -0300 MIME-Version: 1.0 In-Reply-To: <20180516205543.29305-9-laurent@vivier.eu> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v2 8/8] linux-user: define TARGET_SO_REUSEPORT List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier , qemu-devel@nongnu.org Cc: Peter Maydell , Riku Voipio , Richard Henderson , Yongbok Kim , Mark Cave-Ayland On 05/16/2018 05:55 PM, Laurent Vivier wrote: > Signed-off-by: Laurent Vivier Reviewed-by: Philippe Mathieu-Daudé > --- > linux-user/alpha/sockbits.h | 2 +- > linux-user/generic/sockbits.h | 2 +- > linux-user/mips/sockbits.h | 3 --- > 3 files changed, 2 insertions(+), 5 deletions(-) > > diff --git a/linux-user/alpha/sockbits.h b/linux-user/alpha/sockbits.h > index f5397dd875..d54dc98c09 100644 > --- a/linux-user/alpha/sockbits.h > +++ b/linux-user/alpha/sockbits.h > @@ -18,7 +18,7 @@ > #define TARGET_SO_BROADCAST 0x0020 > #define TARGET_SO_LINGER 0x0080 > #define TARGET_SO_OOBINLINE 0x0100 > -/* To add :#define TARGET_SO_REUSEPORT 0x0200 */ > +#define TARGET_SO_REUSEPORT 0x0200 > > #define TARGET_SO_TYPE 0x1008 > #define TARGET_SO_ERROR 0x1007 > diff --git a/linux-user/generic/sockbits.h b/linux-user/generic/sockbits.h > index 5ad43eb0c8..c161f80626 100644 > --- a/linux-user/generic/sockbits.h > +++ b/linux-user/generic/sockbits.h > @@ -29,7 +29,7 @@ > #define TARGET_SO_PRIORITY 12 > #define TARGET_SO_LINGER 13 > #define TARGET_SO_BSDCOMPAT 14 > -/* To add :#define TARGET_SO_REUSEPORT 15 */ > +#define TARGET_SO_REUSEPORT 15 > #ifndef TARGET_SO_PASSCRED /* powerpc only differs in these */ > #define TARGET_SO_PASSCRED 16 > #define TARGET_SO_PEERCRED 17 > diff --git a/linux-user/mips/sockbits.h b/linux-user/mips/sockbits.h > index 370d13ed86..0f022cd598 100644 > --- a/linux-user/mips/sockbits.h > +++ b/linux-user/mips/sockbits.h > @@ -28,10 +28,7 @@ > */ > #define TARGET_SO_OOBINLINE 0x0100 /* Receive out-of-band data in-band. > */ > -#if 0 > -/* To add: Allow local address and port reuse. */ > #define TARGET_SO_REUSEPORT 0x0200 > -#endif > > #define TARGET_SO_TYPE 0x1008 /* Compatible name for SO_STYLE. */ > #define TARGET_SO_STYLE SO_TYPE /* Synonym */ >