From owner-freebsd-net@freebsd.org Thu Sep 26 15:25:42 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 B5465129F2F for ; Thu, 26 Sep 2019 15:25:42 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-TO1-obe.outbound.protection.outlook.com (mail-eopbgr670084.outbound.protection.outlook.com [40.107.67.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-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 46fJfF41zjz4NNC; Thu, 26 Sep 2019 15:25:41 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jl4IDQQxVj4s2uc0i/7Z2q+L/j1r8guEBi7WyBmsGBjPQ8B7Jjwm1gHx44Oi51tGb4ahnB+yt45Zpg6EEaZ60F5/azCA/Tsoiy/xNVxUBGKufW1M5hM3GjiMtvFC7gnsgQ80BvaFAT807AKuxw7F5/MEsb8F8OkD9RJ/v7kNozk1jRXBK0STk1ChPwZEAswmVhfHvyVPUYNj1kvjsZj3krJ9iUJDihDvzpM53sjo6F430OQmNKL9Os6/OG7mOE5vg9xnbH+7UkwEN0rwf7zNBvXuQsYbDdYnez2+TaE9NCxxYz2tK+32vCAxcvUv2wW5koAQP6FgM7/g+T/z4LM9/g== 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=JzQIj6PwKAK/3BIrGiXeyBMTD3ztbi2CYt8rQ/kDvEI=; b=B6vzv6Uu+VxrKRxbs6DgHxQWko+d+BvD6ThKWZ2d2fwxHgmz//bOFXep2P9bGM3/PHXrIF9QkJbGJIzMxYwt7R8Ob0Po/YshPZhgdn6i3h9fo+Ak8H4PkyLvVSpmsHuGN6LkbuKJwZI6FAgGXifrqScGD+VFYQcIk8d8z9jR1BglbtJcyKPGYQhnuS0d0m7pgp2juiMil2C7jY6KstkGBcb0Hp1kJqOP7PYtUmtE6TyvbHjyC6lcb4d1Z6cKC0CsK6m05TJBTiTMm2TOxu26/YISStcWPGpCfKtXgPql9PYYfEHKazy5J7d73KQaiPngbi5fw9BUXyj6zpMYHThvxg== 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 YTOPR0101MB0972.CANPRD01.PROD.OUTLOOK.COM (52.132.46.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2284.20; Thu, 26 Sep 2019 15:25:39 +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; Thu, 26 Sep 2019 15:25:39 +0000 From: Rick Macklem To: Mihir Luthra , Hiroki Sato CC: freebsd-net , "hrs@freebsd.org" Subject: Re: rpc.statd already ipv6 clean? Thread-Topic: rpc.statd already ipv6 clean? Thread-Index: AQHVdGd0vvt0AdNYvUi0bBe7GEcLYKc+EjgO Date: Thu, 26 Sep 2019 15:25:39 +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: 94bda4f5-c459-471f-bfa8-08d74295c96e x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600167)(711020)(4605104)(1401327)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:YTOPR0101MB0972; x-ms-traffictypediagnostic: YTOPR0101MB0972: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0172F0EF77 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(39860400002)(366004)(396003)(376002)(136003)(189003)(199004)(256004)(316002)(7696005)(186003)(102836004)(478600001)(305945005)(54906003)(76116006)(9686003)(5660300002)(66946007)(6306002)(66476007)(229853002)(66556008)(8936002)(25786009)(64756008)(81156014)(66446008)(86362001)(8676002)(71200400001)(71190400001)(76176011)(46003)(81166006)(55016002)(6246003)(2906002)(33656002)(99286004)(6506007)(14454004)(786003)(110136005)(11346002)(446003)(966005)(74316002)(476003)(6436002)(52536014)(486006)(4326008); DIR:OUT; SFP:1101; SCL:1; SRVR:YTOPR0101MB0972; H:YTOPR0101MB1163.CANPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A: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: eRNnB6uQFjcLfA5EizdCNjn25EkbK/B0vcte4ZvFG4tcW9+9z9enDXj8Vo7a6HC5JPRBHq/0lFY1+lnNoy0rnYz6o655Q7KAwRrnOR+HVSM3dAbsai5vX+6g/XNw/vCfA+UALaK+bfQkqAVl4us4/OGsJqIyVFMvi3/7Dt87ig9XgSY3ObOBs0r2zdBr/TWRUQ7/vq98RaDsi/cKpqzpcTwOhzEPH8aAQW+HZm9t30cneFJcVHprUdwiaAUvTJgcQGQL9ANGQbUkNm5b7PbpxH5ivx0aw45LIlUi3mUAtek2LHICMVNM/xVGuTT6+Q9nnSQF7+30auN76dtKFaVbIugyUIaPE6O3v0ooLx3w90tngEInxpWzk+IyBwME4B0gxCRSnfXfpERshW350YO2WUsrku7SuwMNo6OmVgJD671vuGz0ptMZK/6cKSNbfUePzo4Wwti1KSiWa2mhf9g1dQ== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: uoguelph.ca X-MS-Exchange-CrossTenant-Network-Message-Id: 94bda4f5-c459-471f-bfa8-08d74295c96e X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Sep 2019 15:25:39.2553 (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: xXELKUsOsVF0sySjdmk94OrB3wxfuoHQdsjkka8Gof5INhiLaP9y1IbdxKdlXTROwDNUQxS/5orleAelNQbrZg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: YTOPR0101MB0972 X-Rspamd-Queue-Id: 46fJfF41zjz4NNC X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of rmacklem@uoguelph.ca designates 40.107.67.84 as permitted sender) smtp.mailfrom=rmacklem@uoguelph.ca X-Spamd-Result: default: False [-3.58 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip4:40.107.0.0/16]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[uoguelph.ca]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[84.67.107.40.list.dnswl.org : 127.0.3.0]; IP_SCORE(-1.28)[ipnet: 40.64.0.0/10(-3.79), asn: 8075(-2.55), country: US(-0.05)]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8075, ipnet:40.64.0.0/10, country:US]; SUBJECT_ENDS_QUESTION(1.00)[]; ARC_ALLOW(-1.00)[i=1] 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: Thu, 26 Sep 2019 15:25:42 -0000 Mihir Luthra wrote:=0A= >Hiroki Sato wrote:=0A= >>=0A= >>=0A= >> I think you should learn TI-RPC API first. The nettype specifies a=0A= >> class of transport protocol, not address family.=0A= >>=0A= >> Thanks, I did some more research on TI-RPC today.=0A= >In `statd.c` what I see is in `create_service()`/`complete_service()`,=0A= >transport info is being fetched through getnetconfig(), which makes it=0A= >listen on all transports. I guess its clean in `statd.c` but same can also= =0A= >be done in `procs.c`/`file.c`. Maybe trying all transports until it finds= =0A= >one which is connectionless? Apologies if I got something wrong, new to=0A= >this topic.=0A= >=0A= >Also, while looking at the code, I think it always assumes ipv4 is always= =0A= >present. Like `127.0.0.1` is added to host list always. On ipv6 only=0A= >machine this may fail.=0A= Although I'll admit it isn't something I am particularily fond of, 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 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= Btw, these protocols are old Sun Microsystems ones without any published=0A= RFC, so what is "correct" is difficult to determine. I suppose the Open=0A= Solaris sources is the best protocol specification. (Interop. testing with = Linux=0A= would be nice, since Linux is the "defacto standard" now.)=0A= =0A= Good luck with it, rick=0A= =0A= Kind Regards,=0A= Mihir=0A= _______________________________________________=0A= freebsd-net@freebsd.org mailing list=0A= https://lists.freebsd.org/mailman/listinfo/freebsd-net=0A= To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"=0A=