Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp962663rdb; Wed, 1 Nov 2023 07:43:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGgKN6l8SH6y9x6GkjCw7mMpe8nDBfQUp8yBju3awLfTXmGM2dBDzt5k0nxSzWeHLupznVA X-Received: by 2002:a17:90b:3b4d:b0:280:47ba:767a with SMTP id ot13-20020a17090b3b4d00b0028047ba767amr4152345pjb.16.1698849808668; Wed, 01 Nov 2023 07:43:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698849808; cv=none; d=google.com; s=arc-20160816; b=MPXAiyu+10oCPb0cWvrrWRIl8o1gE47PZR+MkbF/ODiGW2i74aDW8hcjWBHC2J0r19 zvu4zNxPsTEZsf2we/ipRrCfxbSsA0bq7xvCkaWpqIlCKiMZJLZ8SOqi/8gEhRh8M6Z6 AKzWYHgZteOONrk8ixEWT+FvXSvugaXfVCQSuO9S/5910VBlOOgxujcvpF/GXNqlONis KM/D8aDxN5Xj+FzRZsY91ke7o+8MGJ+J+i+b0OJeHpK8KXc2NkmYpPwcm6eP/Av5kKrZ nLKFBrNsG8pdyo9QPUDAwANLza8VHjoFq/aSfnz8QQJ5lG0CIrhVNk3UhcmQ+5SGkOIa TAXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=xrKV/FcGLWmVkEqAFFeYCF9Q0Cekz/Ho75bnIsa9SYU=; fh=sNPrBjA++yHSLwvfVTpITizLEq/w9O7gi5qJ/WgO1Ko=; b=Vwmdz5S+N55UInmUk03I7wFtD8IYWUPzfq7ns8ImLRsetneXkV2TUjVhL31DcuBx44 s4xZ9puFlItJ0PyEJPDXIozt3ZO2WLcyfkyYS2ZgxHKAgq7GM94IoVOOZWdSWZLOwdxq lCh3PZUMinLz3ixrKn0pZmzF13PZs14/PY4nKJbdiG1ndjeqUjlLoioSkdKszVeIIHUZ wzpAk7BvGtkCD/MAYRKItVIMBq7Ay8RYib3Wu07XzV2Kp9kHuKlrNm8Cn7CV/T6ENUBI iTp01jgioDk3XWZnmoXc4KQSbJ7pqDi1bjDmwheG2ljvIlReRidAyI9ljVgbWEvcfjCG ShFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="ZH9/t1Wj"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id p29-20020a63741d000000b005b8f9dbbd5fsi12097pgc.409.2023.11.01.07.43.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 07:43:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="ZH9/t1Wj"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id CFD1480BA971; Wed, 1 Nov 2023 07:43:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231602AbjKAOnM (ORCPT + 99 others); Wed, 1 Nov 2023 10:43:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229800AbjKAOnL (ORCPT ); Wed, 1 Nov 2023 10:43:11 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2141083 for ; Wed, 1 Nov 2023 07:42:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698849742; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xrKV/FcGLWmVkEqAFFeYCF9Q0Cekz/Ho75bnIsa9SYU=; b=ZH9/t1WjlpqZSribkAyoVpe1+FFpFWzEw8rCkNuNXhJxEpuqVhM7gFbTiVdRru5YVQvWpz eT1UI4Kx0pPT1i/Yq+1mSTHf09K0qrgOZIBuC6BS4gqHGesh/qBA8b3vy1cOZN3LR3zF8w mfaY74I/1pmHN0QteRFWbNXm33Iad5w= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-608-4NYTZUpPOUmUzyyVsrbWZQ-1; Wed, 01 Nov 2023 10:42:17 -0400 X-MC-Unique: 4NYTZUpPOUmUzyyVsrbWZQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 58CE781D87E; Wed, 1 Nov 2023 14:42:17 +0000 (UTC) Received: from [192.168.37.1] (unknown [10.22.50.5]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DB44325C0; Wed, 1 Nov 2023 14:42:16 +0000 (UTC) From: Benjamin Coddington To: Martin Wege Cc: Linux NFS Mailing List Subject: Re: NFSv4 referrals - custom (non-2049) port numbers in fs_locations? Date: Wed, 01 Nov 2023 10:42:15 -0400 Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 01 Nov 2023 07:43:11 -0700 (PDT) On 1 Nov 2023, at 5:06, Martin Wege wrote: > Good morning! > > We have questions about NFSv4 referrals: > 1. Is there a way to test them in Debian Linux? > > 2. How does a fs_locations attribute look like when a nonstandard port > like 6666 is used? > RFC5661 says this: > > * http://tools.ietf.org/html/rfc5661#section-11.9 > * 11.9. The Attribute fs_locations > * An entry in the server array is a UTF-8 string and represents one of a > * traditional DNS host name, IPv4 address, IPv6 address, or a zero-length > * string. An IPv4 or IPv6 address is represented as a universal address > * (see Section 3.3.9 and [15]), minus the netid, and either with or without > * the trailing ".p1.p2" suffix that represents the port number. If the > * suffix is omitted, then the default port, 2049, SHOULD be assumed. A > * zero-length string SHOULD be used to indicate the current address being > * used for the RPC call. > > Does anyone have an example of how the content of fs_locations should > look like with a custom port number? If you keep following the references, you end up with the example in rfc5665, which gives an example for IPv4: https://datatracker.ietf.org/doc/html/rfc5665#section-5.2.3.3 Ben