Once a ypserv is discovered we know the remote UDP port number, but not
authorderaadt <deraadt@openbsd.org>
Fri, 15 Jul 2022 16:59:49 +0000 (16:59 +0000)
committerderaadt <deraadt@openbsd.org>
Fri, 15 Jul 2022 16:59:49 +0000 (16:59 +0000)
commitf1eb3c946baa233d3e41e591472f14ff6bfd5928
tree270ca53da4d13ab033ced18821bf995e10f796e5
parentf5810b8e6dace75c526cced04d122ab07e602dc7
Once a ypserv is discovered we know the remote UDP port number, but not
the TCP port number.  Immediately reach out (syncronously via pmap_getport,
to ask the portmap on the ypserv machine) to learn the TCP port number.
Append this as 2 bytes (network byte order) to the binding file, because
an upcoming change will require this information also.
with jmatthew, also ok claudio miod
usr.sbin/ypbind/ypbind.c