From patchwork Fri May 25 08:17:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 920296 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 40sfRl0M8lz9s15 for ; Fri, 25 May 2018 18:24:19 +1000 (AEST) Received: from localhost ([::1]:42405 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fM81I-00064c-Mj for incoming@patchwork.ozlabs.org; Fri, 25 May 2018 04:24:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38448) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fM7vd-0001lS-Kw for qemu-devel@nongnu.org; Fri, 25 May 2018 04:18:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fM7vb-0008If-3h for qemu-devel@nongnu.org; Fri, 25 May 2018 04:18:25 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:43565) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fM7va-0008He-Qh for qemu-devel@nongnu.org; Fri, 25 May 2018 04:18:23 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.183]) with ESMTPSA (Nemesis) id 0LlFeI-1ftWvw2s7C-00b231; Fri, 25 May 2018 10:18:14 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Fri, 25 May 2018 10:17:53 +0200 Message-Id: <20180525081754.29506-13-laurent@vivier.eu> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180525081754.29506-1-laurent@vivier.eu> References: <20180525081754.29506-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:jtDcvMi80y5X71d4NHsdqS6QRin59eaI4KQg5VS+jq0JJmkQLQB 2BgCuYwHplXspXE2KrPZEHpBaNisPtplCs1EGe3FubMZxbRNkrOLMBmJyX90WMSQxaZqrdZ Q3TOv1Y0PjmG/MAUXr7VNdwbJBQh+dp8ETXOAoe/AwXpwQj/m0OjwJ4H126/GRFW0t4C7OU LRQqdUwMErtto5AoFsjbQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:PTWKTOKyEt8=:Ar+X5BLaCSntevl/cY6q5A JwxnLHR6B2cYotlzvSIWGC20zzNWZEjvGMynFi2OrHU23DoIQMbQIFq6X+cn0+hGQBY6JPf8m udqGqGRKDsMTUmk6Xc6Aqj3ht9BuKhuhe3qExQixxGfB3ftTpOCYn/xWLU/5hyORNcmgZGHaA 8awnZl/Q1tAzP/BvssxHBnzLr1Chz/G9o8F1M+6OIUhEODkufmmbzg7bHDtH8JIn3zOBoAIgv d7EXIl9CrmVWgsb9LqRoKJWILMsGTE0nzfZYeWdFUdODT5VgrVwJvOYFQTZNcw5sHyHrEF5aR V94oNEczys+vZTrv42iHXMIU3CDB9zSD7hlIQ7tY6f8f2yE5f+E1hpmvdEFl1XOs3H6w4mcs1 fkpCgbE/jes63iW7pTy9X5m0mkKhMzSxI7uPZhfJbj34/6dhs8v0j+faTF72y2AtTFYEmkXt/ 0aAeLVb48KMqvCr6ieEKO2/As9b7lwQtl6jZ2LYF9h7xPO+1PSVOEPzZPmUX9lLzYk1gfTwKP xMyCDPvKNy2Bncdns8w1MT9fZPv4Hjm40S6VSNey7UVk4ofIIvzjtUPz/AAR9/6EIUm0EzV2Q IJGwv9i2UOV0VcJ+YQBZB+7t2mqpXaizKndxH+Jnm+gylUW5azl8A8arUoaQMa49K31cVyYsu nKA0/tpNHCZl8GNKjhl0JwzNd9yy1AgLUdNf5KdKDUA3r60BHRR9EE+StUSGjjJzBCUkxtNB7 y6p6bB8DJKGzXNUR X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.13 Subject: [Qemu-devel] [PULL 12/13] 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: Riku Voipio , Laurent Vivier Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Laurent Vivier Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20180519092956.15134-9-laurent@vivier.eu> --- 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 99505f1f85..e44733c601 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 #define TARGET_SO_PASSCRED 16 #define TARGET_SO_PEERCRED 17 #define TARGET_SO_RCVLOWAT 18 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 */