diff options
author | Christian Pointner <equinox@anytun.org> | 2008-04-16 00:01:29 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2008-04-16 00:01:29 +0000 |
commit | cec3b44ad7c4f03d7ee8fcd9d35eca083f5d1fe4 (patch) | |
tree | 8a11d9c3af478f7d77828578fbffba356049a56f /src/networkAddress.h | |
parent | makefile (diff) |
anytun-nosync builds on OpenBSD now
Diffstat (limited to 'src/networkAddress.h')
-rw-r--r-- | src/networkAddress.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/networkAddress.h b/src/networkAddress.h index 33cc4b5..7465fc7 100644 --- a/src/networkAddress.h +++ b/src/networkAddress.h @@ -84,7 +84,14 @@ private: ar & ipv4_address_.s_addr; if (network_address_type_==ipv6) for(int i=0;i<4;i++) +#if defined(__GNUC__) && defined(__linux__) ar & ipv6_address_.s6_addr32; +#elif defined(__GNUC__) && defined(__OpenBSD__) + ar & ipv6_address_.__u6_addr.__u6_addr32; +#else + #error Target not supported +#endif + if (network_address_type_==ethernet) ar & ethernet_address_; } |