From nobody Tue Oct 08 03:40:11 2024 X-Original-To: doc@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XN1xR6dMDz5YrXj for ; Tue, 08 Oct 2024 03:40:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XN1xR51qwz4RhZ for ; Tue, 8 Oct 2024 03:40:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728358811; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uqw+Twfl+5mtjaha9kUjruhEp6WIF5Dk2cshHZEMRDE=; b=sCZ2FBkaHqj+RuvzruIc9Cgj+1S0EupWqF9ptQ6zAbPNCwMU6YVM8gBckzeeYPPGXXDdvH biZPYu/U4s9Ta8hgkBIINoEySEcdFv/XH1Qgy3MZEKL3Yev3k9WV5dXS7eVGEBYcCOPZBV z6KmSuCvnq0Ay8qhUeyTRlZG+DsGi1+rFKTtA91XlaKzrlpZEO7q7QIc5dHSd4Rvi/vsGO 201qRpGMgpjVafNKNgVLCLSSlPeXJ7p9E1cblZufyM7ojQsEo6BD7hsN+DAynBKXeGBO8t 7DNlMYsNNa/pQ+dw9a7ljIamiOzn0YhT89J+TQo34ro5UR4D1UFY9AyqMOTWCw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728358811; a=rsa-sha256; cv=none; b=V2b7fHYV5l1bkiLILYF0xayyDAzmf4+M9MaYba6+xYSKVdRFu5MxKPPkR+nDK97zcAB7Xn PBGPqNDwCrgT8/Q82ivAdQluHmGgWmeWvUdGX9A9pnQsqEAUFexmt2Wb3WxJLxUyslz0rI gEdeN5koRMvwsnzsJCgSgTGPhMEwWlhFlvAk9jV2UGIgGPkJeZXdMBtlLBo9rx4yy4v4Fr /dJ1rUgEzamcRJi/XBjAWkojwcbP6DqElE9ssYb8dxqlb07++jZ7aR4BmnxTJhlI1mjT8z jFCuK8f9AYMJ+MVnlcrFDgm/vn1oKE3NTDuFuadx7Wv8n/5EWdmcrGmpeF0s6w== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XN1xR4dTnzDxd for ; Tue, 8 Oct 2024 03:40:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 4983eBS0002070 for ; Tue, 8 Oct 2024 03:40:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4983eB1f002068 for doc@FreeBSD.org; Tue, 8 Oct 2024 03:40:11 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: doc@FreeBSD.org Subject: [Bug 281541] rpcinfo: format of argument to -a flag is undocumented Date: Tue, 08 Oct 2024 03:40:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Documentation X-Bugzilla-Component: Manual Pages X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: gperciva@tarsnap.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Documentation project List-Archive: https://lists.freebsd.org/archives/freebsd-doc List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-doc@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281541 Graham Percival changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gperciva@tarsnap.com --- Comment #1 from Graham Percival --- Your understanding looks correct. I found the definition of "universal address format" in RFC 5665. In particular, for IPv4, it's: h1.h2.h3.h4.p1.p2 where hX is the normal IPv4, and .p1.p2 is the port. Interestingly, the RFC says > Assuming big-endian ordering, p1 and p2 are, respectively, > the first and second octets each converted to ASCII-decimal. > https://www.rfc-editor.org/rfc//rfc5665#section-5.2.3.3 Shouldn't the RFC *specify* whether it's big-endian or little-endian? Anyway, in terms of the actual code, when we do `rpcinfo -a address ...`, we end up in usr.bin/rpcinfo/rpcinfo.c line 1236, where `address` is passed to uaddr2taddr(). In turn, uaddr2taddr() is defined in both sys/rpc/rpc_generic.c and lib/libc/rpc/rpc_generic.c. Those files are similar, but not identical... = but they don't seem to differ significantly in their implementations of uaddr2taddr(). And yes, it looks big-endian; p2 ends up being `portlo` and= p1 is `porthi` in the code. --=20 You are receiving this mail because: You are on the CC list for the bug.=