summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--packet.c11
2 files changed, 11 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 8d91fdfb1..da3c1e8da 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
2 - (djm) Bug #137, #209: fix make problems for scard/Ssh.bin, do uudecode 2 - (djm) Bug #137, #209: fix make problems for scard/Ssh.bin, do uudecode
3 during distprep only 3 during distprep only
4 - (djm) Disable PAM password expiry until a complete fix for bug #188 exists 4 - (djm) Disable PAM password expiry until a complete fix for bug #188 exists
5 - (djm) Bug #180: Set ToS bits on IPv4-in-IPv6 mapped addresses. Based on
6 patch from openssh@misc.tecq.org
5 7
620020425 820020425
7 - (stevesk) [defines.h] remove USE_TIMEVAL; unused 9 - (stevesk) [defines.h] remove USE_TIMEVAL; unused
@@ -513,4 +515,4 @@
513 - (stevesk) entropy.c: typo in debug message 515 - (stevesk) entropy.c: typo in debug message
514 - (djm) ssh-keygen -i needs seeded RNG; report from markus@ 516 - (djm) ssh-keygen -i needs seeded RNG; report from markus@
515 517
516$Id: ChangeLog,v 1.2087 2002/04/26 01:27:24 djm Exp $ 518$Id: ChangeLog,v 1.2088 2002/04/26 06:54:34 djm Exp $
diff --git a/packet.c b/packet.c
index fcd47cbce..258085d29 100644
--- a/packet.c
+++ b/packet.c
@@ -277,9 +277,14 @@ packet_connection_is_ipv4(void)
277 memset(&to, 0, sizeof(to)); 277 memset(&to, 0, sizeof(to));
278 if (getsockname(connection_out, (struct sockaddr *)&to, &tolen) < 0) 278 if (getsockname(connection_out, (struct sockaddr *)&to, &tolen) < 0)
279 return 0; 279 return 0;
280 if (to.ss_family != AF_INET) 280 if (to.ss_family == AF_INET)
281 return 0; 281 return 1;
282 return 1; 282#ifdef IPV4_IN_IPV6
283 if (to.ss_family == AF_INET6 &&
284 IN6_IS_ADDR_V4MAPPED(&((struct sockaddr_in6 *)&to)->sin6_addr))
285 return 1;
286#endif
287 return 0;
283} 288}
284 289
285/* Sets the connection into non-blocking mode. */ 290/* Sets the connection into non-blocking mode. */