Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Sep 2019 15:25:39 +0000
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        Mihir Luthra <luthramihir708@gmail.com>, Hiroki Sato <hrs@allbsd.org>
Cc:        freebsd-net <freebsd-net@freebsd.org>, "hrs@freebsd.org" <hrs@freebsd.org>
Subject:   Re: rpc.statd already ipv6 clean?
Message-ID:  <YTOPR0101MB1163687D58A2AEED58AECE21DD860@YTOPR0101MB1163.CANPRD01.PROD.OUTLOOK.COM>
In-Reply-To: <CAEa=dYCv=b7JxW4Ajc%2BgBNaC7z_SEiUhwyPz5vxjUNdkzvVmHQ@mail.gmail.com>
References:  <CAEa=dYAEKph9qOcegtEB%2BFXCMqdQpmbrbzOA548cvjk0L3KK4A@mail.gmail.com> <20190925.085753.1800759957383540219.hrs@allbsd.org> <CAEa=dYAnwxPjwZozU6K3GE7-Cjwx0rSemVd0ihrbUAUQw3jOLg@mail.gmail.com> <20190926.054603.242590258844901628.hrs@allbsd.org>, <CAEa=dYCv=b7JxW4Ajc%2BgBNaC7z_SEiUhwyPz5vxjUNdkzvVmHQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YTOPR0101MB1163687D58A2AEED58AECE21DD860>