]> andersk Git - openssh.git/commitdiff
- Include macro for IN6_IS_ADDR_V4MAPPED. Report from
authordamien <damien>
Mon, 13 Mar 2000 23:16:34 +0000 (23:16 +0000)
committerdamien <damien>
Mon, 13 Mar 2000 23:16:34 +0000 (23:16 +0000)
   peter@frontierflying.com

ChangeLog
defines.h

index 04fef5effe672be7d93826b9cda1816e7b95f491..fff7f9c076cd7645262b9f63d33d0d0d5f29caa1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+20000314
+ - Include macro for IN6_IS_ADDR_V4MAPPED. Report from 
+   peter@frontierflying.com
+
 20000311
  - Detect RSAref
  - OpenBSD CVS change
index 519ebbaa21685356b8ddf3cc4ddd785eb49675b6..48e14fd251247238808e29bb521ccbfb5150e93f 100644 (file)
--- a/defines.h
+++ b/defines.h
@@ -3,9 +3,12 @@
 
 /* Necessary headers */
 
-#include <sys/types.h> 
+#include <sys/types.h> /* For [u]intxx_t */
+
 #include <sys/socket.h> /* For SHUT_XXXX */
 
+#include <netinet/in.h> /* For IPv6 macros */
+
 #ifdef HAVE_SYS_BITYPES_H
 # include <sys/bitypes.h> /* For u_intXX_t */
 #endif 
@@ -234,6 +237,12 @@ typedef unsigned int size_t;
 # define __P(x) x
 #endif
 
+#if !defined(IN6_IS_ADDR_V4MAPPED)
+# define IN6_IS_ADDR_V4MAPPED(a) \
+       ((((uint32_t *) (a))[0] == 0) && (((uint32_t *) (a))[1] == 0) && \
+        (((uint32_t *) (a))[2] == htonl (0xffff)))
+#endif /* !defined(IN6_IS_ADDR_V4MAPPED) */
+
 #if !defined(__GNUC__) || (__GNUC__ < 2)
 # define __attribute__(x)
 #endif /* !defined(__GNUC__) || (__GNUC__ < 2) */
This page took 0.207922 seconds and 5 git commands to generate.