summaryrefslogtreecommitdiffstats
path: root/lib/libutil/realhostname.c
Commit message (Collapse)AuthorAgeFilesLines
* NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 definesume2005-05-131-7/+2
| | | | | NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special for it, now.
* ANSIfy, WARNSify, CONSTify. Bit of style(9)-ify.markm2003-10-181-9/+9
|
* Tidy up. Sort headers.markm2003-06-141-1/+1
|
* Return HOSTNAME_INVALIDADDR when reverse lookup is fail.ume2002-06-071-1/+1
| | | | Submitted by: Sergey Zorin <sergey@cc.tpu.edu.ru>
* Add __FBSDID()s to libutildillon2001-09-301-2/+3
|
* Simplify IPv4 mapped IPv6 address handling.ume2001-07-231-66/+39
| | | | | Reviewed by: brian MFC after: 5 days
* Hint getaddrinfo() correctly if we're looking up a name that we got frombrian2001-07-211-2/+9
| | | | | | an AF_INET6 address. MFC after: 1 week
* MAXHOSTNAMELEN includes space for the NULbrian2001-03-141-4/+4
| | | | | | | Don't read past the end of the host passed to realhostname() Not objected to by: freebsd-audit Interface disliked by: imp
* Call trimdomain properly for ip4 addresses.brian2001-01-281-30/+30
| | | | | PR: 24659 realhostname_sa() stuff submitted by: Jim.Pirzyk@disney.com
* Sshd writes connected host into utmp directly. If the connection isume2000-07-141-7/+14
| | | | | | via IPv6, the hostname is trimed due to the length of IPv6 address. This change saves it as possible. I have a grudge against the shortage of UT_HOSTSIZE.
* We should see the ai_canonname menber of the first addrinfoume2000-05-241-6/+6
| | | | | | structure in the linked list. RFC2553 mentions only first. Reviewed by: shin
* Return IPv4 native address for IPv4 mapped IPv6 address, even ifume2000-03-231-8/+23
| | | | | | A RR is not found. Reviewed by: shin
* Since crypto/openssh/login.c was changed to use realhostname_sa(),ume2000-03-071-13/+29
| | | | | | | | | when connecting via IPv6, hostname was not recorded to utmp anymore. Because, if hostname is longer than buffer size, getnameinfo() returns with ENI_MEMORY. Reviewed by: shin Approved by: jkh
* Avoid core dump when ai_canonname is NULL.shin2000-01-271-4/+8
| | | | | | (Now this happens for numeric addrs, as getaddrinfo() 1.3 -> 1.4 change) Reviewed by: Mark Huizer <xaa@timewasters.nl>
* several tcp apps IPv6 updateshin2000-01-251-0/+95
| | | | | | | | | | | | -inetd -rshd -rlogind -telnetd -rsh -rlogin Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Put parenthesis around sizeof args.brian1999-04-071-6/+6
| | | | | | Allow for host names up to MAXHOSTNAMELEN - 1 in length. Prompted by: bde
* Add realhostname() - a function to correctly lookupbrian1999-04-061-0/+73
a name by address and ensure that the name resolves back to the original address.
OpenPOWER on IntegriCloud