Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp877583ybt; Wed, 24 Jun 2020 13:34:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzV7k4tD0Cd+5NBj7skedcVVWo1FP+W+yDkichtrS5nDdbKdrGtVH77mDcBxFPshjslrQDP X-Received: by 2002:a50:d1c2:: with SMTP id i2mr2508197edg.42.1593030872905; Wed, 24 Jun 2020 13:34:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593030872; cv=none; d=google.com; s=arc-20160816; b=IQ51HJqr1qlBTZBTGa0UhBOVdSs3MJtGFzFnc6y7Pb+LdZ+7ZNOqwQClPGLYFRsDlU uAEHYJxQEBrbkdlZTnTtlHEyk6dgyKhgGan64rtR2TQ5tXnbEWibZTpGdSNJUQ0/63Wj M6h7EPBTE2KnzBpSIEsncWx+/WUur3PUG7a3d6USeh0S5yjwxCGW1rQqr9D2p9r+THhi EleOIh5fWnxcs/J9eveQqOFQGVw6B9RcKGC7YgSCVqYNF6LElujp43jhTaMKaGwxrKgF mbMlFKCf8oUCTA3CyZvNp+fzlIkZ3/nxLJENS7lkOO15TI+8zJ7HG3CUQWoqpfm6XDIt cWAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=P+8CNlZ9Qpc5ZgQ40v352IfRPP/wLIfYxQwvpVM2BK8=; b=idmaZebGjpBsHEq7lqvgF4yv9xHdmO1IWfsUixVOQEMz3hLqL5OE5Ug08oEV5FypPr P5tG2wuBSgNwzp9ZRy6KJsqeQjfZFJyO6eI5sE59zjYhdcnauZq1JOCUPBFt37VD1jCE JAtmuUZTv9wSPp9RCaZ/bXiX5ioTJ38bQpyE1ddN/eh8Spv2jR8GNfeYnN8RIxac9MFP 3WlWaU4l5VfQ02IHHQ598TzoJgwVkoPrpoPHJ14mpiX4K52riojoiQFFyFrWRRkCVDBz 2iRgquPtrXb9q9LxxteIBXThVgiN0Yus/VeOUngBxX3lmO5znz5bb2p/+SivIgGsQ5xQ WqSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kk7RsrcZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h9si14825492edf.128.2020.06.24.13.34.09; Wed, 24 Jun 2020 13:34:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kk7RsrcZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729833AbgFXUba (ORCPT + 99 others); Wed, 24 Jun 2020 16:31:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727981AbgFXUb3 (ORCPT ); Wed, 24 Jun 2020 16:31:29 -0400 Received: from mail-qk1-x742.google.com (mail-qk1-x742.google.com [IPv6:2607:f8b0:4864:20::742]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A65DC061573; Wed, 24 Jun 2020 13:31:28 -0700 (PDT) Received: by mail-qk1-x742.google.com with SMTP id r22so3167775qke.13; Wed, 24 Jun 2020 13:31:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=P+8CNlZ9Qpc5ZgQ40v352IfRPP/wLIfYxQwvpVM2BK8=; b=kk7RsrcZrq+EWEq1RkGL2qELTGIfWZ+7A5f8uxNPVPEibrKo6usG/U0X0c/K+WQBaK I0Vwu1ij+04Cm4N7N3hudYLfDj4vowAhndJiBzYXBiACSt71ZxTEXRs6VcfVL0KDPyjR H5dwoZ2YW2q6AHbmuSGodnv9tfTkh+oXgN0UtmZW0NQBaFPV78w3U6SbYtPkS+0iSm+g rnrzLxXzGuGRRRpHjzVX3PNAKgAJ+sgg24MjZrzAWiniIlFI/d+6rlJnYP3HKvOhAG5v cIAaii2PEC3/5lT+LK9jL2EzJ1WsYy12heloFZpwlSbpRJmdZcTlTK1cquFc+jfo0O0J A8XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=P+8CNlZ9Qpc5ZgQ40v352IfRPP/wLIfYxQwvpVM2BK8=; b=s3oHTi3mDFAoU+7V0fWbyBH0xa8p+EdYilSaPLOEGvcnFjuq4kTjgBiNoX2XDTDs13 wYniwaQXuDreXHSP/4HsJVFdGscSCHtSEmv4ekkMApundTOsvZyg7TZEpBrv7LOB7AbP qTwJG1Pppu4mV8vFg4NEgQq8d6IkxE6yi9QwWMBdQK0ndSKsZ+vYzuukUEQq9BEhzEBX TurVWpUheaP/3uCpURhiaOlv3CttEGM2QWSp2RjBnh3j4PonBW0lBNIMIh0jqwkFA7YJ 3iGBVGPJf/H8wb4Ce6DCC45JLeKhJOAQyPmU4eRmzLMJf3iBOlq/3lmPgv26nUuM6E5D rZAg== X-Gm-Message-State: AOAM532aizxMmseNUW71i8mcWi9NhS2l+gIehJ2dYArDxAuASn8iAXNO SNXiirbXtslUE8ejqhyJ4l5pLMmW X-Received: by 2002:a05:620a:15da:: with SMTP id o26mr24463049qkm.304.1593030687577; Wed, 24 Jun 2020 13:31:27 -0700 (PDT) Received: from localhost.localdomain ([2001:1284:f016:65e9:974:aec1:b314:98ea]) by smtp.gmail.com with ESMTPSA id p7sm3647794qki.61.2020.06.24.13.31.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2020 13:31:26 -0700 (PDT) Received: by localhost.localdomain (Postfix, from userid 1000) id E8370C3123; Wed, 24 Jun 2020 17:31:23 -0300 (-03) Date: Wed, 24 Jun 2020 17:31:23 -0300 From: Marcelo Ricardo Leitner To: minyard@acm.org Cc: Xin Long , Michael Tuexen , Yasevich , Neil Horman , linux-sctp@vger.kernel.org, linux-kernel@vger.kernel.org, Corey Minyard Subject: Re: [PATCH] sctp: Don't advertise IPv4 addresses if ipv6only is set on the socket Message-ID: <20200624203123.GC47547@localhost.localdomain> References: <20200623160417.12418-1-minyard@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200623160417.12418-1-minyard@acm.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 23, 2020 at 11:04:17AM -0500, minyard@acm.org wrote: > From: Corey Minyard > > If a socket was set ipv6only, it would still send IPv4 addresses in the > init and init ack packets. So don't add IPv4 addresses to ipv6only > sockets. > > Based on a patch by Xin Long > > Signed-off-by: Corey Minyard > --- > I have tested this and it seem to fix the issue. However, I'm wondering > if it might be better to fix it where the addresses are put into the > association as opposed to where they are put into the message. Yes, it is. It even highlights why this issue was there in the first place. Sending a patch right after this email. Marcelo