diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-10-19 23:14:13 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-10-19 23:14:13 +0900 |
| commit | 74e5aa0ace24e70a454f19fc0f032d0f30574000 (patch) | |
| tree | 31dfe01f29f78948727ddee6a9c78ed4213c14fc /src/a2netcompat.h | |
| parent | 2b68f72fa662601db891706abb2a2e2df7e7edd8 (diff) | |
Rewritten util::inSameCidrBlock() to support IPv6 address.
We also introduced union sockaddr_union in a2netcompat.h.
Diffstat (limited to 'src/a2netcompat.h')
| -rw-r--r-- | src/a2netcompat.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/a2netcompat.h b/src/a2netcompat.h index e3008708..5d4689fd 100644 --- a/src/a2netcompat.h +++ b/src/a2netcompat.h @@ -132,4 +132,11 @@ public: # define WSAAPI_AUTO_DELETE auto_delete #endif // !__MINGW32__ +union sockaddr_union { + sockaddr sa; + sockaddr_storage storage; + sockaddr_in6 in6; + sockaddr_in in; +}; + #endif // D_A2NETCOMPAT_H |
