| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
struct sockaddr * that it casts internally to the appropriate type based on
sa_family. However, struct sockaddr has very lax alignment requirements,
which causes the compiler to complain when you cast a struct sockaddr * to,
say, a struct sockaddr_in6 *.
I find it reasonable to assume that the pointer we received is in fact
correctly aligned. Therefore, we can work around the compiler warnings by
casting to void * before casting to the desired type. For readability's
sake, this is done with macros.
The same technique should prove useful in other parts of the tree that
deal with socket addresses.
MFC after: 3 weeks
|
| |
|
|
|
|
|
| |
NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special
for it, now.
|
| |
|
| |
|
|
|
|
| |
Submitted by: Sergey Zorin <sergey@cc.tpu.edu.ru>
|
| |
|
|
|
|
|
| |
Reviewed by: brian
MFC after: 5 days
|
|
|
|
|
|
| |
an AF_INET6 address.
MFC after: 1 week
|
|
|
|
|
|
|
| |
Don't read past the end of the host passed to realhostname()
Not objected to by: freebsd-audit
Interface disliked by: imp
|
|
|
|
|
| |
PR: 24659
realhostname_sa() stuff submitted by: Jim.Pirzyk@disney.com
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
structure in the linked list. RFC2553 mentions only first.
Reviewed by: shin
|
|
|
|
|
|
| |
A RR is not found.
Reviewed by: shin
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
(Now this happens for numeric addrs, as getaddrinfo() 1.3 -> 1.4 change)
Reviewed by: Mark Huizer <xaa@timewasters.nl>
|
|
|
|
|
|
|
|
|
|
|
|
| |
-inetd
-rshd
-rlogind
-telnetd
-rsh
-rlogin
Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project
|
| |
|
|
|
|
|
|
| |
Allow for host names up to MAXHOSTNAMELEN - 1 in length.
Prompted by: bde
|
|
a name by address and ensure that the name resolves
back to the original address.
|