- (dtucker) [canohost.c] normalise socket addresses returned by
get_remote_hostname(). This means that IPv4 addresses in log messages on IPv6 enabled machines will no longer be prefixed by "::ffff:" and AllowUsers, DenyUsers, AllowGroups, DenyGroups will match IPv4-style addresses only for 4-in-6 mapped connections, regardless of whether or not the machine is IPv6 enabled. ok djm@
This commit is contained in:
parent
149da8577e
commit
5b115d4401
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,11 @@
|
||||||
|
20050503
|
||||||
|
- (dtucker) [canohost.c] normalise socket addresses returned by
|
||||||
|
get_remote_hostname(). This means that IPv4 addresses in log messages
|
||||||
|
on IPv6 enabled machines will no longer be prefixed by "::ffff:" and
|
||||||
|
AllowUsers, DenyUsers, AllowGroups, DenyGroups will match IPv4-style
|
||||||
|
addresses only for 4-in-6 mapped connections, regardless of whether
|
||||||
|
or not the machine is IPv6 enabled. ok djm@
|
||||||
|
|
||||||
20050425
|
20050425
|
||||||
- (dtucker) [regress/multiplex.sh] Use "kill -0 $pid" to check for the
|
- (dtucker) [regress/multiplex.sh] Use "kill -0 $pid" to check for the
|
||||||
existence of a process since it's more portable. Found by jbasney at
|
existence of a process since it's more portable. Found by jbasney at
|
||||||
|
@ -2462,4 +2470,4 @@
|
||||||
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
||||||
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.3751 2005/04/25 07:03:29 dtucker Exp $
|
$Id: ChangeLog,v 1.3752 2005/05/03 09:05:32 dtucker Exp $
|
||||||
|
|
|
@ -251,6 +251,8 @@ get_socket_address(int sock, int remote, int flags)
|
||||||
if (addr.ss_family == AF_INET6)
|
if (addr.ss_family == AF_INET6)
|
||||||
addrlen = sizeof(struct sockaddr_in6);
|
addrlen = sizeof(struct sockaddr_in6);
|
||||||
|
|
||||||
|
ipv64_normalise_mapped(&addr, &addrlen);
|
||||||
|
|
||||||
/* Get the address in ascii. */
|
/* Get the address in ascii. */
|
||||||
if ((r = getnameinfo((struct sockaddr *)&addr, addrlen, ntop,
|
if ((r = getnameinfo((struct sockaddr *)&addr, addrlen, ntop,
|
||||||
sizeof(ntop), NULL, 0, flags)) != 0) {
|
sizeof(ntop), NULL, 0, flags)) != 0) {
|
||||||
|
|
Loading…
Reference in New Issue