From owner-freebsd-net@freebsd.org Sat Sep 28 00:36:13 2019 Return-Path: Delivered-To: freebsd-net@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B4BECF1645 for ; Sat, 28 Sep 2019 00:36:13 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-TO1-obe.outbound.protection.outlook.com (mail-eopbgr670057.outbound.protection.outlook.com [40.107.67.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46g8q13k9dz4XTQ; Sat, 28 Sep 2019 00:36:13 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LtcCtuHSnsTSno83J0PlDyVC24dDi25IeSVz7cwrNLFtab3Fp/jfmQ7M6E1qkTT9FJrg/s3htkaFUxG8Q0KcLD13/ptb5ujMMsuNrZV+1di40YzAsKZAoUpcvmkxVqgracQrD3j4RZinKzAN2sh3+pPPnVrx1eAvukcY0/BH/8vMvtvZLVpEbN2/s48ZOOZoNC+T/ohqa637sxWEANWBrPVisU31gBOxkcGV49ESazloTRIlqXIkrPNP3huUDNqgxqVyyBobgDz/EfQmP1nPSvyBO6J/t9tb0CZlJLGaIbLxwWhgpY+tKBfNfC/Tm6NuPlDR0kpqDw9RxJC1yc9LWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kmnWiY8APd+BYugAWbPgzRDnmKxXjSnhMrH9pGYCzFA=; b=bjYuOa9D/K5c6fdsVhKKzCrfBbjC3r0tBwroYRHZyJE92WI4t0LDHyHRiN06rwlR/+76XSNJgDCKT2QfdqNz+Kc4ZVwif9xDWv/1geYo93uWb39A1c2croBS087MStPxmoxyQ7ZQmSe+asE6hMVAliR/INfYFpoMMdW3Ay7nNz1UjAHTHjKRs9D8Dje4OKDL9EEUQd3uaEY57LbLVBLuSk3K3b6Nb5OU2Fnqwz0OllXZhEz4HJcBCB3eRGkYeB53pAS17+YGYDiPBw/OD9aaOCVtTdPWS4x+ewMThLwW/fs8t1EBs344BP1UD/sVG64uQ1aa33ohSAqPYBIuK7A10w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=uoguelph.ca; dmarc=pass action=none header.from=uoguelph.ca; dkim=pass header.d=uoguelph.ca; arc=none Received: from YTOPR0101MB1163.CANPRD01.PROD.OUTLOOK.COM (52.132.51.22) by YTOPR0101MB1787.CANPRD01.PROD.OUTLOOK.COM (52.132.44.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2284.23; Sat, 28 Sep 2019 00:36:07 +0000 Received: from YTOPR0101MB1163.CANPRD01.PROD.OUTLOOK.COM ([fe80::157f:eebf:d4d4:451]) by YTOPR0101MB1163.CANPRD01.PROD.OUTLOOK.COM ([fe80::157f:eebf:d4d4:451%4]) with mapi id 15.20.2305.017; Sat, 28 Sep 2019 00:36:07 +0000 From: Rick Macklem To: "Bjoern A. Zeeb" CC: Mihir Luthra , Hiroki Sato , freebsd-net , "hrs@freebsd.org" Subject: Re: rpc.statd already ipv6 clean? Thread-Topic: rpc.statd already ipv6 clean? Thread-Index: AQHVdGd0vvt0AdNYvUi0bBe7GEcLYKc+EjgOgAH25oCAAAjLXoAABwYAgAAlLko= Date: Sat, 28 Sep 2019 00:36:07 +0000 Message-ID: References: <20190925.085753.1800759957383540219.hrs@allbsd.org> <20190926.054603.242590258844901628.hrs@allbsd.org> , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 37f93731-2005-4da3-a0d9-08d743abda05 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600167)(711020)(4605104)(1401327)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:YTOPR0101MB1787; x-ms-traffictypediagnostic: YTOPR0101MB1787: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 0174BD4BDA x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(396003)(346002)(39860400002)(366004)(136003)(51914003)(199004)(189003)(52536014)(66476007)(66446008)(64756008)(66556008)(7696005)(229853002)(6506007)(76176011)(8936002)(8676002)(86362001)(5660300002)(66946007)(81156014)(76116006)(71200400001)(256004)(81166006)(11346002)(486006)(786003)(476003)(446003)(46003)(316002)(6246003)(305945005)(74316002)(71190400001)(4326008)(54906003)(102836004)(6436002)(9686003)(33656002)(478600001)(6916009)(25786009)(99286004)(2906002)(14454004)(186003)(55016002); DIR:OUT; SFP:1101; SCL:1; SRVR:YTOPR0101MB1787; H:YTOPR0101MB1163.CANPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: uoguelph.ca does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: BcFKSJiMX1ieO8cWKdVNIRL20EctOUeyIAD8EFwrwBQ5cZ9NxdpwkVMSugvfj5jAc363B9KnzzL9JB2Yz8LBf6fIMys+ooFJMspw9nxATafQi+gjqIPLJ9CUjOgjpBHB5k+j4ZrWa1IaOdrnZU4ftClvB8kzxxpoKjK0+RyYfOC54dYnhN0ETJZTWKd/HOUVpmFCtoFHyiN41ImCk9RZiPo+oM4/Nfiwx4njsf1ZkXDCjYGX0i29DOJ5ZJxGlSnrUO5Z+v2H+5K9tHWKVF2dbMO95/JU8yIuxUOWli+K1rO1MESiZGaCGZGm1sOvjYXjDZri42erqWRamtImNzhJvGVyNyAaBFm5pZV6qGxx/z8s0YZfWFx5mO9uZQ3IBQpzgPDroOu1OBHxrX0mmy/PkTxDsV4mstSzq4kl8ZV6Biw= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: uoguelph.ca X-MS-Exchange-CrossTenant-Network-Message-Id: 37f93731-2005-4da3-a0d9-08d743abda05 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Sep 2019 00:36:07.2015 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: be62a12b-2cad-49a1-a5fa-85f4f3156a7d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Ue6+SOdQlomoqudA91CT1TITdU6cEifTDBH21dcIGunzC8gLixdHvNe9bo8WAlIG7KJV7f9hYDpFxTCJZQefow== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YTOPR0101MB1787 X-Rspamd-Queue-Id: 46g8q13k9dz4XTQ X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-5.99 / 15.00]; NEURAL_HAM_MEDIUM(-0.99)[-0.995,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Sep 2019 00:36:13 -0000 Bjoern A. Zeeb wrote:=0A= >On 27 Sep 2019, at 21:52, Rick Macklem wrote:=0A= >=0A= >> Mihir Luthra wrote:=0A= >>> Hi Rick,=0A= >>> Rick wrote:=0A= >>>> Although I'll admit it isn't something I am particularily fond of,=0A= >>>> FreeBSD likes=0A= >>>> utilities to build/work with only one of ipv4/ipv6.=0A= >>>> To do this, "#ifdef INET" and "#ifdef INET6" is applied to the code=0A= >>>> and the=0A= >>>> Makefile is tweaked to define one or both of these.=0A= >>>> (You can look at usr.sbin/nfsuserd for an example of this.)=0A= >>>=0A= >>> Yes I see. Although I was thinking, wouldn't it be better if we can=0A= >>> take a flag via >getopts for ipv6/ipv4 if the machine supports both=0A= >>> with macro guards around >too?=0A= >> bz@ is the guy to ask. I've cc'd him.=0A= >=0A= >We are also exchanging private emails currently to sort out the=0A= >confusion between =93compiling out=94, transport protocol, and=0A= >addresses/protocol carried inside the (RPC) packets.=0A= >=0A= >This is three different things and all should be sorted. My work is=0A= >mostly on the =93compiling out=94 as I don=92t want/need INET anymore=0A= >mostly. Ensuring that the transport protocol works dual-stack is a=0A= >good, easier part. For RPC and some others making sure to be able to=0A= >not only transport IPv4 addresses in the payload protocol but also IPv6=0A= >addresses can be the hard part. I assume the latter is what you were=0A= >referring to in the lines below?=0A= Yes. I do know there is some code in sys/rpc/rpc_generic.c (around=0A= line# 320-340) which shows how an IP6 address is coded in ascii to=0A= go on the wire. It basically uses inet_ntop() for the host address and=0A= then appends .N.N for the port#.=0A= However, I have no idea when/if rpc.statd uses that?=0A= =0A= >>> Btw, these protocols are old Sun Microsystems ones without any=0A= >>> published=0A= >>> RFC, so what is "correct" is difficult to determine. I suppose the=0A= >>> Open=0A= >>> Solaris sources is the best protocol specification. (Interop. testing= =0A= >>> with Linux=0A= >>> would be nice, since Linux is the "defacto standard" now.)=0A= >>>=0A= >>> Good luck with it, rick=0A= >>>=0A= >>> Thanks for the tips,=0A= >>> Mihir=0A= >> rick=0A= rick=0A= =0A=