Date: Mon, 16 Oct 2023 17:07:01 -0700 From: Rick Macklem <rick.macklem@gmail.com> To: FreeBSD CURRENT <freebsd-current@freebsd.org> Subject: RFC: Using NI_MAXSERV and NI_MAXHOST in the kernel Message-ID: <CAM5tNy73fBBeAHYqm_VE6gHT5YVdis7KyL1E7Wh4xQ774GuqNA@mail.gmail.com>
index | next in thread | raw e-mail
Hi, I have a patch for a bug identified at last week's testing event, where the FreeBSD NFSv4.1/4.2 client needs to rDNS a DS's address to a FQDN so that it can generate a server principal for Kerberos. (The bug only affects the case of a sec=krb5[ip],pnfs mount, so most will never see it.) Since the userspace gssd daemon calls getnameinfo(3) to do the rDNS, it would be nice if the kernel upcall code knew NI_MAXSERV and NI_MAXHOST. However, they currently live in netdb.h. I have put copies of them in sys/kgssapi/gssapi;.h, which works, but means that they are defined in two different places What do others think is the best way to handle this? Thanks, rickhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM5tNy73fBBeAHYqm_VE6gHT5YVdis7KyL1E7Wh4xQ774GuqNA>
