diff options
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_; } |