From patchwork Wed May 16 20:55:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 914947 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=vivier.eu Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40mRm01wM2z9s0q for ; Thu, 17 May 2018 07:05:20 +1000 (AEST) Received: from localhost ([::1]:40398 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJ3bp-0006iU-T5 for incoming@patchwork.ozlabs.org; Wed, 16 May 2018 17:05:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52699) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fJ3Tc-0000MZ-Ms for qemu-devel@nongnu.org; Wed, 16 May 2018 16:56:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fJ3TZ-00049T-Ku for qemu-devel@nongnu.org; Wed, 16 May 2018 16:56:48 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:43041) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fJ3TZ-00048o-Cj for qemu-devel@nongnu.org; Wed, 16 May 2018 16:56:45 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0M6DoA-1eM6xg1Zko-00y5XM; Wed, 16 May 2018 22:56:06 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Wed, 16 May 2018 22:55:43 +0200 Message-Id: <20180516205543.29305-9-laurent@vivier.eu> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180516205543.29305-1-laurent@vivier.eu> References: <20180516205543.29305-1-laurent@vivier.eu> X-Provags-ID: V03:K1:UZfkokUaCasKqx3+GWUBKTbh4060cTNVH0wCpBjlj0nlKyYXxo1 Wq2vUFkGStVtM2mdbB9aTx3z4HBDwhKRNECXVKN8bg2g6s484VZ1jgPF4CHir2EXUrAb3sB wfi+vWxwozg6mDcKq5X/LDM/xf3VfCl5LxHI6FZLk8v1BOK/UlfoqCS6toouGynlXbGJQcr /XOOasGjIy22lFbWQp6Zw== X-UI-Out-Filterresults: notjunk:1; V01:K0:XJPFIA3or6s=:K871FxRYZjrUIySaiOi26m 1qsaVLS2plbWDnDmTKsWdfGu8XrJ+SbWNn1ipMO5CCakK/nALP3YcXB9W6CRB4pkC3m88xrxX yGrhLqzpb/4h+bPL5q6lN1h6QSCbexEQlsEPbUmi6PT5gpD+th9TIlcNC+mPBNoU96ErK6iq1 jlSULwVTNCjbYE680RYokygoHfqUpl9PPEhOVQ2eUCGJ1Y8iuTf9sDIZralnFp/bsKEt6fprs a4EvQnXUuHm8fXdYElJXufcKU27DuhMQG5WwAVLIQcXWLPuLZSo47ls/M8CwZbgwXC5W3tl7j 4chFR64U4Rj8iWOKr8i9yrMu74WHIzshbCHhKzi9+wqhFZ9V52U3ywygkygNg8/KR4pdDaPlg 6y4CH8UxIJeivGdtXbDrube1WLq5aX6sd2Kp3gd2EPIaqJv++yCrlNNuSjmEGjLvq2NokW8jl Mj9WUNs5NgxeAYcUbCp7j0ngE36GTt/U0YG1H+2cm24PojuJa62YFRBPoeWEb+gq1sWIy5pOc IngdSkB6OzchwvuBbV5rEk8KhzYdM9FJ8xTTZpTyiZwKM+yWxoc7zinR20cDVE+9ytKVdvxfO J3cng68l53xqB8RvUqlmi6p6i8Wz6PUnOytSD56uPB9Hp84T3zKkJaNfLAh3mUTwSpJvhU8fQ LXDfh/WzMguqUWak4s59Fd8BQRUS2ULc4QeCpgSkVndBKFXpoxEyXnGWXrN3oHI0Ag7E= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.72.192.74 Subject: [Qemu-devel] [PATCH v2 8/8] linux-user: define TARGET_SO_REUSEPORT X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Riku Voipio , Mark Cave-Ayland , Laurent Vivier , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?b?w6k=?= , Yongbok Kim , Richard Henderson Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" 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 */