summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--networkAddress.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/networkAddress.h b/networkAddress.h
index ccc0750..44c5b59 100644
--- a/networkAddress.h
+++ b/networkAddress.h
@@ -79,8 +79,9 @@ private:
void serialize(Archive & ar, const unsigned int version)
{
ar & network_address_type_;
- ar & ipv4_address_;
- ar & ipv6_address_;
+ ar & ipv4_address_.s_addr;
+ for(int i=0;i<4;i++)
+ ar & ipv6_address_.s6_addr32;
ar & ethernet_address_;
}
};