Hajimu UMEMOTO
82684fa6da
Return HOSTNAME_INVALIDADDR when reverse lookup is fail.
...
Submitted by: Sergey Zorin <sergey@cc.tpu.edu.ru>
2002-06-07 17:25:19 +00:00
Matthew Dillon
8719c58fef
Add __FBSDID()s to libutil
2001-09-30 22:35:07 +00:00
Hajimu UMEMOTO
27daeab3ec
Simplify IPv4 mapped IPv6 address handling.
...
Reviewed by: brian
MFC after: 5 days
2001-07-23 21:42:22 +00:00
Brian Somers
3ee63d3929
Hint getaddrinfo() correctly if we're looking up a name that we got from
...
an AF_INET6 address.
MFC after: 1 week
2001-07-21 00:18:54 +00:00
Brian Somers
ec86eec797
MAXHOSTNAMELEN includes space for the NUL
...
Don't read past the end of the host passed to realhostname()
Not objected to by: freebsd-audit
Interface disliked by: imp
2001-03-14 20:50:52 +00:00
Brian Somers
f169f2f020
Call trimdomain properly for ip4 addresses.
...
PR: 24659
realhostname_sa() stuff submitted by: Jim.Pirzyk@disney.com
2001-01-28 21:51:25 +00:00
Hajimu UMEMOTO
6484396e99
Sshd writes connected host into utmp directly. If the connection is
...
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.
2000-07-14 18:08:19 +00:00
Hajimu UMEMOTO
4efe647d8b
We should see the ai_canonname menber of the first addrinfo
...
structure in the linked list. RFC2553 mentions only first.
Reviewed by: shin
2000-05-24 11:24:49 +00:00
Hajimu UMEMOTO
9ed4e87cad
Return IPv4 native address for IPv4 mapped IPv6 address, even if
...
A RR is not found.
Reviewed by: shin
2000-03-23 17:25:00 +00:00
Hajimu UMEMOTO
88f853e037
Since crypto/openssh/login.c was changed to use realhostname_sa(),
...
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
2000-03-07 07:52:01 +00:00
Yoshinobu Inoue
01d81a0351
Avoid core dump when ai_canonname is NULL.
...
(Now this happens for numeric addrs, as getaddrinfo() 1.3 -> 1.4 change)
Reviewed by: Mark Huizer <xaa@timewasters.nl>
2000-01-27 17:24:53 +00:00
Yoshinobu Inoue
0cac72f42c
several tcp apps IPv6 update
...
-inetd
-rshd
-rlogind
-telnetd
-rsh
-rlogin
Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project
2000-01-25 14:52:10 +00:00
Peter Wemm
7f3dea244c
$Id$ -> $FreeBSD$
1999-08-28 00:22:10 +00:00
Brian Somers
bc19c8517d
Put parenthesis around sizeof args.
...
Allow for host names up to MAXHOSTNAMELEN - 1 in length.
Prompted by: bde
1999-04-07 08:26:50 +00:00
Brian Somers
595f220e04
Add realhostname() - a function to correctly lookup
...
a name by address and ensure that the name resolves
back to the original address.
1999-04-06 23:02:35 +00:00