rpc.statd already ipv6 clean?

Mihir Luthra luthramihir708 at gmail.com
Fri Sep 27 21:17:41 UTC 2019


Hi Rick,


> Although I'll admit it isn't something I am particularily fond of, FreeBSD
> likes
> utilities to build/work with only one of ipv4/ipv6.
> To do this, "#ifdef INET" and "#ifdef INET6" is applied to the code and the
> Makefile is tweaked to define one or both of these.
> (You can look at usr.sbin/nfsuserd for an example of this.)
>

Yes I see. Although I was thinking, wouldn't it be better if we can take a
flag via getopts for ipv6/ipv4 if the machine supports both with macro
guards around too?

>
> Btw, these protocols are old Sun Microsystems ones without any published
> RFC, so what is "correct" is difficult to determine. I suppose the Open
> Solaris sources is the best protocol specification. (Interop. testing with
> Linux
> would be nice, since Linux is the "defacto standard" now.)
>


> Good luck with it, rick
>

Thanks for the tips,
Mihir


More information about the freebsd-net mailing list