Jeff Latimer : include: Define IN6ADDR_ANY_INIT and IN6ADDR_LOOPBACK_INIT and code for IN6_IS_ADDR_LOOPBACK .
Alexandre Julliard
julliard at winehq.org
Mon Apr 27 08:04:07 CDT 2009
Module: wine
Branch: master
Commit: 7ded3afe93f7af048cca3b5103e06668ad69dee5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7ded3afe93f7af048cca3b5103e06668ad69dee5
Author: Jeff Latimer <lats at yless4u.com.au>
Date: Sat Apr 25 22:59:30 2009 +1000
include: Define IN6ADDR_ANY_INIT and IN6ADDR_LOOPBACK_INIT and code for IN6_IS_ADDR_LOOPBACK.
---
include/ws2ipdef.h | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/include/ws2ipdef.h b/include/ws2ipdef.h
index ff2b201..bc30f96 100644
--- a/include/ws2ipdef.h
+++ b/include/ws2ipdef.h
@@ -247,9 +247,25 @@ struct WS(ip_msfilter) {
#ifndef USE_WS_PREFIX
#define INET_ADDRSTRLEN 22
#define INET6_ADDRSTRLEN 65
+#define IN6ADDR_ANY_INIT { 0 }
+#define IN6ADDR_LOOPBACK_INIT { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 }
#else
#define WS_INET_ADDRSTRLEN 22
#define WS_INET6_ADDRSTRLEN 65
+#define WS_IN6ADDR_ANY_INIT { 0 }
+#define WS_IN6ADDR_LOOPBACK_INIT { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 }
#endif /* USE_WS_PREFIX */
+static inline BOOL WS(IN6_IS_ADDR_LOOPBACK) ( const IN6_ADDR *a )
+{
+ return (BOOL)((a->s6_words[0] == 0) &&
+ (a->s6_words[1] == 0) &&
+ (a->s6_words[2] == 0) &&
+ (a->s6_words[3] == 0) &&
+ (a->s6_words[4] == 0) &&
+ (a->s6_words[5] == 0) &&
+ (a->s6_words[6] == 0) &&
+ (a->s6_words[7] == 0x0100));
+}
+
#endif /* __WS2IPDEF__ */
More information about the wine-cvs
mailing list