From nobody Tue Nov 18 15:28:28 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1611233452; cv=none; d=zohomail.com; s=zohoarc; b=ckoRlpgeqaX4iKbLfWo8I0JniEcDlrRpPvo6LO9d4yIsNK2OrPGgKeNt+ILRlBJAIs5HlUPEvFRpJ686s+ezRuz9m7qmqmJO4RVkbXkD7Nh/IWu4DYzsRCwfU//yQYB6r2MLje9rRKPP8a8atfQ/nfxbFYtpRbD6AOCHm305Rdw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611233452; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=4D8gwht4osnkqFJTYkkL88TKMef0Ums3j1QKjvtObl8=; b=oEiHArVn9OHiKbQs3Mc7Kl/UuI+YoCMoCZrpzQlns5akCaa1/1bOKROQuWDDxgZrQOz+1et8XOuCVrXHSZtcCoLb+hinVG3SUzytKYqUphOHSyQGUvL6TJ17jMpWKgaS8BVMhtxOZesUjZiV5Ndnyw0HeEPXV0QPXkz+GOEWB6c= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1611233452955459.6781562639412; Thu, 21 Jan 2021 04:50:52 -0800 (PST) Received: from localhost ([::1]:40412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l2ZQJ-000515-SO for importer@patchew.org; Thu, 21 Jan 2021 07:50:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2ZEu-0006jW-Cw for qemu-devel@nongnu.org; Thu, 21 Jan 2021 07:39:04 -0500 Received: from mout.kundenserver.de ([212.227.126.131]:53623) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l2ZEs-0007QR-Gn for qemu-devel@nongnu.org; Thu, 21 Jan 2021 07:39:03 -0500 Received: from localhost.localdomain ([82.252.149.54]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MBDva-1lAmy70WmE-00CmJ0; Thu, 21 Jan 2021 13:38:57 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Subject: [PULL 3/5] linux-user: add missing IPv6 get/setsockopt option Date: Thu, 21 Jan 2021 13:38:50 +0100 Message-Id: <20210121123852.91187-4-laurent@vivier.eu> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210121123852.91187-1-laurent@vivier.eu> References: <20210121123852.91187-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:UfDgn/V84wVgz/0m9gpHWTHbi5c1g9r/mC8hZ+r6KNr1ysSwBX9 LAuFD62VoqDCIn79aEeqSwe+tNeHmPsD+TEv44/vzKjZIkWQXv0I8k0P6DamP76WQtdEumV xpyLOVHbgTkHf38YXNlx6tx27N/pzn94+mLSSG0CLCOeVdKpDH88eT81HEMIxd0jptss+LI VQRXeVeI8ddyDGpQ6tfDw== X-UI-Out-Filterresults: notjunk:1;V03:K0:voalCCUVyM0=:dKJasTO5QxMP+BVZHCqSzJ WGY92pCzaycc3PxhIgX3DOu6onfeT5P3tNBuSW67LuCHYEk9tknvlcK4YxJLV3d6OlRrv76Rn oaEhpBTjnZkyfGYPqGwBfpHxY4QrEn8Amxz4gV26MKcRR7JQ9z2t0Rym9jTLqdT6FH9SGQsKk 7si3jEG+CMIN9hWt79cr7Eln6Uu96FExcn4twSsCjZmC/g2zBiq73a2ZOD7tQBdUA7+Vp9A8F D4FUY2vMw4L+yN8H1tv4DfUbjRH+d5c083uTS86XCwQXvkZf/nPZ9KS0Oc0foNIsyilZCmriY UB4c//zSEwJyBIKUYcyBidHdlXxZ+oYkVz48lwAmgmGjbtdpAW3HBp9xDJ4zZXb4u7WqExrSS +6ONhHa8RvRamZxF81cnHzMl1X6CXHhavAGIk4NUJHwwD4/GI6g+5GoCnMkQZBjTwTXEGMyMt 6COnrajNrQ== Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=212.227.126.131; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Laurent Vivier , Shu-Chun Weng Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" From: Shu-Chun Weng IPV6_ADDR_PREFERENCES (RFC5014: Source address selection) was not supported. Signed-off-by: Shu-Chun Weng Reviewed-by: Laurent Vivier Message-Id: <20201218193213.3566856-4-scw@google.com> [PMD: Add missing include for IPV6_ADDR_PREFERENCES] Signed-off-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Laurent Vivier --- linux-user/syscall.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 969db2008104..5d482dcbefd6 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -51,6 +51,7 @@ #include #include //#include +#include #include #include #include @@ -58,6 +59,7 @@ #include #include #include +#include #include #include #ifdef CONFIG_TIMERFD @@ -2272,6 +2274,7 @@ static abi_long do_setsockopt(int sockfd, int level, = int optname, case IPV6_RECVDSTOPTS: case IPV6_2292DSTOPTS: case IPV6_TCLASS: + case IPV6_ADDR_PREFERENCES: #ifdef IPV6_RECVPATHMTU case IPV6_RECVPATHMTU: #endif @@ -2926,6 +2929,7 @@ get_timeout: case IPV6_RECVDSTOPTS: case IPV6_2292DSTOPTS: case IPV6_TCLASS: + case IPV6_ADDR_PREFERENCES: #ifdef IPV6_RECVPATHMTU case IPV6_RECVPATHMTU: #endif --=20 2.29.2