]> andersk Git - openssh.git/commitdiff
- (dtucker) [canohost.c] normalise socket addresses returned by
authordtucker <dtucker>
Tue, 3 May 2005 09:05:32 +0000 (09:05 +0000)
committerdtucker <dtucker>
Tue, 3 May 2005 09:05:32 +0000 (09:05 +0000)
   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@

ChangeLog
canohost.c

index 0efc77cffdfd93d8f0978de7a1278e5faaf27386..cfad7d12335f07c1c8a77b9a83280236370e7870 100644 (file)
--- a/ChangeLog
+++ b/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
  - (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
index 1c22d4770ca6e5b3f1f3cd83f0864b8494934e86..94d666432f0e24403fe30a00926cb3918009d0b0 100644 (file)
@@ -251,6 +251,8 @@ get_socket_address(int sock, int remote, int flags)
        if (addr.ss_family == AF_INET6)
                addrlen = sizeof(struct sockaddr_in6);
 
+       ipv64_normalise_mapped(&addr, &addrlen);
+
        /* Get the address in ascii. */
        if ((r = getnameinfo((struct sockaddr *)&addr, addrlen, ntop,
            sizeof(ntop), NULL, 0, flags)) != 0) {
This page took 0.250958 seconds and 5 git commands to generate.