struct in_addr, which means passing &sin.sin_addr instead of
&sin.sin_addr.s_addr. Also changed the AF_INET6 version to pass
&sin6.sin6_addr. Hopefully this will fix UNICOS and not break
anyone else.
* Moved some structures in client_name() so that they remain in-scope for
the entire function (since we set pointers to their storage location).
* Allow the dot-counting loop to increment to 4 instead of stopping at 3.
in place: simply check the "am_server" global variable, which is not set
true when the daemon is listening for connections (daemon_main is not
called in main.c if am_server is set).
-e ssh and :: together. Uses $SSH_CLIENT to locate the IP address
(was attempting to before but it didn't always work) and then uses
inet_pton() on that and getnameinfo() to find the name.
lookup failed" on AIX 4.3.3.
When doing an name->addr lookup on the client address, there's no
point including the service name, because it can't be spoofed and it
apparently causes trouble when not present in /etc/services.
want to look at the whole sockaddr, but rather just at the sin_addr
that it contains.
Also fix silly bug where ai_flags was set incorrectly for getaddrinfo.
function. The comparison cannot be done just byte-by-byte, because
different parts of the sockaddr will be meaningful depending on the
protocol. It looks like on some systems the library sets the unused
parts to 0, but this is not reliable. IPv6 not implemented yet.